Follow us on Twitter!
Capitalism is an Island of wealth in a sea of poverty
Monday, April 21, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 23
Guests Online: 22
Members Online: 1

Registered Members: 82851
Newest Member: darthvador
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Page 1 of 2 1 2 >
Author

Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 24-07-10 20:59
I want to find my public ip address with out going to whatsmyip.com
My problem is; at work we have a computer in the back, internet access is blocked. It however doesn't block telnet or irc servers running on port 6667. I want to transfer files via irc to the work computer from the bot running on mine. MP3's and whatnot. One of the DCC commands argument is my public ip.

Is there a way to find it in the cmd? ipconfig gives me the privet ip for the network, but not the public.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Finding My Public IP

Twinkee
Member

Your avatar

Posts: 27
Location:
Joined: 07.10.09
Rank:
Newbie
Posted on 24-07-10 23:09
MoshBat wrote:

Also, if it's a local network, wouldn't the local IP suffice?
No experience here, just guessing


That's what I would think too. Idk anything about IRC, however.
Author

RE: Finding My Public IP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-07-10 23:38
techb wrote:
One of the DCC commands argument is my public ip.


DCC also takes an IRC nick as a parameter, is there a reason you can't simply have the bot do:
Code

DCC SEND <yournick> /path/to/music.mp3









Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 25-07-10 00:44
I've tried with no success, I think I'm sending the command wrong or something.
Code

irc.send("PRIVMSG #BotRoom :DCC SEND techb C:\Users\owner\Desktop\Insane\music.mp3")




Is that wrong?
This is what told me I need the ip address.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Finding My Public IP

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 25-07-10 00:45
techb wrote:
I've tried with no success, I think I'm sending the command wrong or something.
Code

irc.send("PRIVMSG #BotRoom :DCC SEND techb C:\Users\owner\Desktop\Insane\music.mp3")




Is that wrong?
This is what told me I need the ip address.


Try backward slashes.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
“Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.”
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 25-07-10 01:06
Still nothing.
Code
"PRIVMSG #BotRoom :DCC SEND techb C:/Users/owner/Desktop/Insane/music.mp3"







www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Finding My Public IP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-07-10 08:10

"PRIVMSG #BotRoom :DCC SEND techb C:/Users/owner/Desktop/Insane/music.mp3"


I may be wrong/being pedantic here, but I think there's supposed to be a space between the colon(:) and DCC

Corrected to be:
Code

"PRIVMSG #BotRoom : DCC SEND techb C:/Users/owner/Desktop/Insane/music.mp3"






Author

RE: Finding My Public IP

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 25-07-10 20:44
MoshBat wrote:
http://en.wikiped. . ./Backslash
Small note. Irrelevant.


They should totally switch those names. Small note: isn't irrelevant.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
“Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.”
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Finding My Public IP

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 26-07-10 02:32
I'm assuming you've done the necessary port forwarding/firewall port opening, right?


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 26-07-10 06:57
There shouldn't be any port forwarding issues. The DCC command in something like mIRC worked, I just can't seem to command right or something.

And I tried it with a space between ':' and 'DCC SEND' still nothing...

I did notice I needed the '\r\n' after the command, I felt stupid lol.


www.userbars.com/74460/665255/337-7865-ubda3219.gif


Edited by techb on 26-07-10 06:58
kbcarte.wordpress.com
Author

RE: Finding My Public IP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-07-10 07:15
Out of curiosity, why are you appending # to the nick you want to DCC to? I haven't seen that format before and it doesn't really fit with the way the rest of the protocol. '#' is used to denote a channelname


Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 26-07-10 07:21
Like you said, the channel name. techb is the nickname I'm sending the file to. Its after the DCC SEND command.

Or should I send it to the person as a "privet chat";
Code

irc.send("PRIVMSG techb : DCC SEND path\to\file")




?


www.userbars.com/74460/665255/337-7865-ubda3219.gif


Edited by techb on 26-07-10 07:22
kbcarte.wordpress.com
Author

RE: Finding My Public IP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 26-07-10 16:33
DCC is meant to transfer files between users, not to entire channels (afaik.) I'd say give it a try directed at a user, rather than a channel.


Author

RE: Finding My Public IP

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 26-07-10 22:02
CTCP (Client to Client Protocol) requests, which DCC generally relies on, require a ^A (\001) character surrounding the request. Maybe try that?

Example:
Code
irc.send("PRIVMSG #techb :\001DCC SEND path\to\file\001\r\n")







The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .

Edited by stealth- on 26-07-10 22:11
http://www.stealth-x.com
Author

RE: Finding My Public IP

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 26-07-10 22:44
Alrighty, nevermind, I know what's going on. I actually looked up the code from my old IRC bot and the DCC requests are actually a lot more complicated than they seem.

Code
PRIVMSG stealth- :\x01DCC SEND Filename LongIP Port filesize SomeIncrementingNumber\x01




LongIP - Your IP in long format
Port - Duh
Filesize - In bytes
SomeIncrementingNumber - I have not the slightest clue what I was doing when I coded this, but it's a number starting at 100 that increments with every new connection

Unfortunately, I pretty much gave up mid-way through coding the DCC feature, as I really was only doing it for the fun of it (it wasn't related to the bots real purpose), so I don't really know a *whole* lot, but enough to say that if you have port 6667 access, just port forward that port at home and manually send everything over sockets. If you can get a IRC client at your office, I'm sure you can get a small python script.

I hope this helped, somehow >.>


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 27-07-10 07:36
It was a nice idea; but like you it was for a side project and is loosing my interest real fast.

I decided to go a different route with my IRC bot. It is something that has never been done before. I will post a write up on what I did after I document everything.

I work at Sub Way btw lol. My office is a prep table. Like I said before, they have the computer in the backed locked down. I forgot the name of the program, but I found the MD5 hashes for the firewalls login info; haven't gotten around to cracking them yet. Anyway.... Thanks for trying to help out.

@Mosh:
Irrelevant == Interesting.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Finding My Public IP

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 27-07-10 08:09
No problem man.
I'll look forward to this new app, it sounds interesting Smile


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 27-07-10 10:37
And here is the link to the write up. The video is best viewed full screen to see whats going on.


www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Author

RE: Finding My Public IP

stealth-
Member



Posts: 1003
Location: Eh?
Joined: 10.04.09
Rank:
Mad User
Posted on 27-07-10 21:36
LOL Grin

That's a sweet idea. It's well documented and looks simple enough for beginners, too (unlike a lot of the writeups for hardware hacks out there).

Nicely done


The irony of man's condition is that the deepest need is to be free of the anxiety of death and annihilation; but it is life itself which awakens it, and so we must shrink from being fully alive.
http://www.stealt. . .

Edited by stealth- on 27-07-10 21:38
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Moderate
Posted on 28-07-10 05:09
It made hackaday
http://hackaday.com/2010/07/27/air-freshener-hacking/




www.userbars.com/74460/665255/337-7865-ubda3219.gif
kbcarte.wordpress.com
Page 1 of 2 1 2 >