Join us at IRC!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Thursday, May 24, 2012
Navigation
Members Online
Total Online: 36
Web Spiders: 16
Guests Online: 33
Members Online: 3

Registered Members: 70180
Newest Member: RAWRFEARME744798
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:
Hacker Level 2
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.


kbcarte.wordpress.com
Author

RE: Finding My Public IP

Twinkee
Member

Posts: 25
Location:
Joined: 07.10.09
Rank:
Active User
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

only_samurai
[IRC Rockstar]

Posts: 984
Location: idling in some random irc channel
Joined: 18.08.06
Rank:
.|unranked|.
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:

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






The problem with a fool-proof system, is eliminating the fool.

"His name is Cereal Killer...Like Fruitloops."
If you cut me, I bleed binary.

http://blog.psych0tik.net/
http://blog.psych0tik.net
Author

RE: Finding My Public IP

techb
Member



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

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.


kbcarte.wordpress.com
Author

RE: Finding My Public IP

spyware
Member



Posts: 4190
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.

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.




"The chowner of property." - Zeph
“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
http://bitsofspy.net
Author

RE: Finding My Public IP

techb
Member



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





kbcarte.wordpress.com
Author

RE: Finding My Public IP

only_samurai
[IRC Rockstar]

Posts: 984
Location: idling in some random irc channel
Joined: 18.08.06
Rank:
.|unranked|.
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:

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



The problem with a fool-proof system, is eliminating the fool.

"His name is Cereal Killer...Like Fruitloops."
If you cut me, I bleed binary.

http://blog.psych0tik.net/
http://blog.psych0tik.net
Author

RE: Finding My Public IP

spyware
Member



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


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




"The chowner of property." - Zeph
“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
http://bitsofspy.net
Author

RE: Finding My Public IP

stealth-
Member



Posts: 998
Location: Eh?
Joined: 10.04.09
Rank:
God
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.stealth-x.com
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
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.




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

RE: Finding My Public IP

only_samurai
[IRC Rockstar]

Posts: 984
Location: idling in some random irc channel
Joined: 18.08.06
Rank:
.|unranked|.
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


The problem with a fool-proof system, is eliminating the fool.

"His name is Cereal Killer...Like Fruitloops."
If you cut me, I bleed binary.

http://blog.psych0tik.net/
http://blog.psych0tik.net
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
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";

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


?




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

RE: Finding My Public IP

only_samurai
[IRC Rockstar]

Posts: 984
Location: idling in some random irc channel
Joined: 18.08.06
Rank:
.|unranked|.
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.


The problem with a fool-proof system, is eliminating the fool.

"His name is Cereal Killer...Like Fruitloops."
If you cut me, I bleed binary.

http://blog.psych0tik.net/
http://blog.psych0tik.net
Author

RE: Finding My Public IP

stealth-
Member



Posts: 998
Location: Eh?
Joined: 10.04.09
Rank:
God
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:
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.stealth-x.com

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

RE: Finding My Public IP

stealth-
Member



Posts: 998
Location: Eh?
Joined: 10.04.09
Rank:
God
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.

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 scblockedript.

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.stealth-x.com
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
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.


kbcarte.wordpress.com
Author

RE: Finding My Public IP

stealth-
Member



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


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.stealth-x.com
http://www.stealth-x.com
Author

RE: Finding My Public IP

techb
Member



Posts: 384
Location:
Joined: 15.02.09
Rank:
Hacker Level 2
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.


kbcarte.wordpress.com
Author

RE: Finding My Public IP

stealth-
Member



Posts: 998
Location: Eh?
Joined: 10.04.09
Rank:
God
Posted on 27-07-10 21:36
LOL :D

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.stealth-x.com

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:
Hacker Level 2
Posted on 28-07-10 05:09
It made hackaday
http://hackaday.com/2010/07/27/air-freshener-hacking/




kbcarte.wordpress.com
Page 1 of 2 1 2 >
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.