Jump to content
Sign in to follow this  
Sn0opy

Connecting to IRC trough proxy

Recommended Posts

Sn0opy

Hey there,

it was easy for me, to connect to IRC with Autoit. But that's not my problem. Is it possible to connect to IRC through a proxy? I tried to use the HTTPSetProxy() function, but failed. It's still connecting with my normal IP. Any ideas?

Share this post


Link to post
Share on other sites
ptrex

@Snoopy

When a client uses a proxy, it typically sends all requests to that proxy, instead of to the servers in the URLs. Requests to a proxy differ from normal requests in one way: in the first line, they use the complete URL of the resource being requested, instead of just the path. For example,

GET http://www.somehost.com/path/file.html HTTP/1.0

That way, the proxy knows which server to forward the request to (though the proxy itself may use another proxy).

Regards,

ptrex

Share this post


Link to post
Share on other sites
Sn0opy

Umm, but i don't want to open a homepage i want to connect to a IRC-Server.

Share this post


Link to post
Share on other sites
ptrex

@snoopy

This is how you would connect to a webpage over a proxy client.

TCPStartup()
$start = 1
$socket = TCPConnect('81.x.x.x', 5728) ; 81.x.x.x = your sock5 ip Proxy
$cmd  = 'CMD CONNECT 64.111.104.70:80 GET / HTTP/1.1' & @CRLF ; 64.111.104.70 = autoitscript.com
TCPSend($socket, $cmd)

While (1)
    If ($start = 1) Then
        $srcv = TCPRecv($socket, 512)
        If ($srcv <> "") Then
            MsgBox(0, "", $srcv)
        EndIf
    EndIf
WEnd

Most likely the procedure for IRC or any other service would be the same.

regards

ptrex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×