Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 27th, 2006, 8:19 AM   #1
Ipslore
Newbie
 
Join Date: Jan 2006
Posts: 4
Rep Power: 0 Ipslore is on a distinguished road
Perl IRC bot - connecting through tor?

Hey there,

I'm currently working a perl IRC bot. At the moment it just connects to a specified IRC server. But I would like to make a step forward, and make it connect through tor. How would I do that? I'm guessing I just have to connect to tor (I don't know how to do that yet), but what request should the bot send?

Ipslore
Ipslore is offline   Reply With Quote
Old Jan 29th, 2006, 11:18 AM   #2
swestres
Newbie
 
Join Date: Dec 2005
Posts: 13
Rep Power: 0 swestres is on a distinguished road
Well... I know Tor uses the SOCKS protocol, and I guess (guessing is good) that it uses v5, but I'm not certain. Anyway, more info about the SOCKS protocol in the RFC (where else ). RFC1928 to be exact. http://www.ietf.org/rfc/rfc1928.txt

EDIT:
I had a look at CPAN, and they have a module that I think will fit you needs: IO:ocket:ocks. It makes the job so much easier. Check it out: http://search.cpan.org/~reatmon/IO-S...ocket/Socks.pm
__________________
Here comes the SWAT team, and the M-16,
shoot the walls in, destroy the building.
Wolverine was sad and it made him mad,
every single cop got a bullet in the head.

Last edited by swestres; Jan 29th, 2006 at 11:21 AM. Reason: Checked CPAN
swestres is offline   Reply With Quote
Old Jan 31st, 2006, 8:52 AM   #3
Ipslore
Newbie
 
Join Date: Jan 2006
Posts: 4
Rep Power: 0 Ipslore is on a distinguished road
Thanks!

I'll take a look at that and read it through ASAP.

By the way, I think it's Socks4.. I'll check that, though.

Last edited by Ipslore; Jan 31st, 2006 at 8:52 AM. Reason: Typo.
Ipslore is offline   Reply With Quote
Old Feb 3rd, 2006, 1:56 PM   #4
swestres
Newbie
 
Join Date: Dec 2005
Posts: 13
Rep Power: 0 swestres is on a distinguished road
Yeah, so it seems. socks4a to be precise, never heard of it. It could complicate things a lot. It seems that it supports socks5 too. More info on http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ

Quote:
So, how do you make your application pass the hostname directly to Tor? You can't use SOCKS 4, since SOCKS 4 proxies require an IP from the client (a web browser is an example of a SOCKS client). Even though SOCKS 5 can accept either an IP or a hostname, most applications supporting SOCKS 5 try to resolve the name before passing it to the SOCKS proxy. SOCKS 4a, however, always accepts a hostname: You'll need to use SOCKS 4a.
It looks as if you might have to write a module in XS since there's no support for that protocol in perl. Might have to use socat. I've never really cared about that, but it looks intresting suddently
__________________
Here comes the SWAT team, and the M-16,
shoot the walls in, destroy the building.
Wolverine was sad and it made him mad,
every single cop got a bullet in the head.
swestres is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC