Dude Posted November 18, 2007 Share Posted November 18, 2007 (edited) I use "InetGet" to get a Website. What is the easiest way to set an referer with InetGet ? Edited November 18, 2007 by Dude Link to comment Share on other sites More sharing options...
ptrex Posted November 18, 2007 Share Posted November 18, 2007 @Dude You don't necesarilly need to use InetGet You can use the HTTP protocol level instructions to do a GET statement incl. a referer. Const $nPORT = 80 Const $sIPADDRESS = "10.0.0.X" your local address TCPStartUp() $TCPSocket = TCPConnect($sIPADDRESS,$nPORT) If $TCPSocket = -1 Then Exit ; Construct the TCP Get Message $cmd = 'GET /Test.xml HTTP/1.1' & @CRLF $cmd &= 'HOST: 10.0.0.51:80' & @CRLF $cmd &= 'ACCEPT-LANGUAGE: en' & @CRLF $cmd &= 'CONTENT-TYPE: text/xml; charset=utf-8?' & @CRLF ; Here's the Referer $cmd &= 'Connection: close' & @CRLF $cmd &= @CRLF ConsoleWrite($cmd & @LF& @LF) Sleep (1000) TCPSend($TCPSocket, $cmd) 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...
Dude Posted November 18, 2007 Author Share Posted November 18, 2007 Ok, thanks. But where i have to write the http adresse, for example www.web.de/test.html and the referer www.xy.com ? Link to comment Share on other sites More sharing options...
ptrex Posted November 18, 2007 Share Posted November 18, 2007 (edited) @DudeConst $nPORT = 80 Const $sIPADDRESS = "10.0.0.X" ; your local address TCPStartUp() $TCPSocket = TCPConnect($sIPADDRESS,$nPORT) If $TCPSocket = -1 Then Exit ; Construct the TCP Get Message $cmd = 'GET /test.html HTTP/1.1' & @CRLF $cmd &= 'HOST: www.web.de:80' & @CRLF $cmd &= 'ACCEPT-LANGUAGE: en' & @CRLF $cmd &= 'Referer: www.xy.com' & @CRLF ; Here's the Referer $cmd &= 'Connection: close' & @CRLF $cmd &= @CRLF ConsoleWrite($cmd & @LF& @LF) Sleep (1000) TCPSend($TCPSocket, $cmd)Something like this maybe.More info : HTTP Protocolregardsptrex Edited November 18, 2007 by 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...
Dude Posted November 18, 2007 Author Share Posted November 18, 2007 (edited) Does not work Const $nPORT = 80 Const $sIPADDRESS = "192.168.178.2"; your local address TCPStartUp() $TCPSocket = TCPConnect($sIPADDRESS,$nPORT) If $TCPSocket = -1 Then Exit ; Construct the TCP Get Message $cmd = 'GET /index3.php HTTP/1.1' & @CRLF $cmd &= 'HOST: thomasott.com:80' & @CRLF $cmd &= 'ACCEPT-LANGUAGE: en' & @CRLF $cmd &= 'Referer: http://www.anonym.to' & @CRLF; Here's the Referer $cmd &= 'Connection: close' & @CRLF $cmd &= @CRLF ConsoleWrite($cmd & @LF& @LF) Sleep (1000) TCPSend($TCPSocket, $cmd) Edited November 18, 2007 by Dude 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