phew Posted November 8, 2007 Share Posted November 8, 2007 hi guys! TCPStartup() $start = 1 $socket = TCPConnect(TCPNameToIP('www.autoitscript.com'), 80) $cmd = 'GET / HTTP/1.1' & @CRLF $cmd &= 'Host: www.autoitscript.com' & @CRLF $cmd &= 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9' & @CRLF $cmd &= 'Connection: close' & @CRLF $cmd &= '' & @CRLF TCPSend($socket, $cmd) While (1) If ($start = 1) Then $srcv = TCPRecv($socket, 512) If ($srcv <> "") Then MsgBox(0, "", $srcv) EndIf EndIf WEnd this is my little script. but how do i make it work with proxy/sock? i read alot about sock5/4 and proxy protocol but i have no clue how to implement a sock/proxy into the script, so that the *.au3 is using a proxy/sock when connecting to the host. help pls! king regards Link to comment Share on other sites More sharing options...
phew Posted November 8, 2007 Author Share Posted November 8, 2007 another question: is this possible at all? is it possible to force the socket, which is already connected to the sock4/5 or proxy, to connect to a website without losing the connection to the sock4/5 or proxy? greetings Link to comment Share on other sites More sharing options...
ptrex Posted November 9, 2007 Share Posted November 9, 2007 @phewMaybe this is a good way to get started.AutoProxyregardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
phew Posted November 9, 2007 Author Share Posted November 9, 2007 (edited) thanks but i already figured out how to use SOCK - i just made a simple mistake in the sock's request synthax!http://www.faqs.org/rfcs/rfc1928.htmlis really helpful to get started with socks, if someone is interested, too regards, phew Edited November 9, 2007 by phew Link to comment Share on other sites More sharing options...
ptrex Posted November 9, 2007 Share Posted November 9, 2007 @phew If you figured it out why don't you post it. We all can still a lot. Regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
AzKay Posted November 9, 2007 Share Posted November 9, 2007 Alternatively, You could use winhttprequest oo # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
phew Posted November 10, 2007 Author Share Posted November 10, 2007 (edited) @phew If you figured it out why don't you post it. We all can still a lot. Regards ptrex 81.x.x.x = sock5 ip 64.111.104.70 = autoitscript.com (...) $socket = TCPConnect('81.x.x.x', 5728) $cmd = 'CMD CONNECT 64.111.104.70:80 GET / HTTP/1.1' & @CRLF (...) CMD CONNECT is explained in the sock5 reference i posted above hope this helps others! Edited November 10, 2007 by phew Link to comment Share on other sites More sharing options...
cypher175 Posted December 30, 2010 Share Posted December 30, 2010 can anyone confirm this works for them..? I tried it, but it don't seem to work for me.. what might I be overlooking..? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now