Jump to content

Connecting to IRC trough proxy


Sn0opy
 Share

Recommended Posts

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?

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

@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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...