AutoIt Forums: passive tcp proxy - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

passive tcp proxy can anyone help!

#1 User is offline   7h331337 

  • Advanced Member
  • PipPip
  • Group: Full Members
  • Posts: 179
  • Joined: 09-June 08
  • Location:cyber space

Posted 07 November 2009 - 07:57 PM

i started to make a passive proxy in autoit but it is not fully functional and i am out of ideas i was wondering if any one could help thanks
[ autoIt ]    ( ExpandCollapse - Popup )
$timer= 1 $timer1 = 1 TCPStartup() Global $proxyin, $proxyout, $proxyin1 $proxyin1 = TCPListen("127.0.0.1", 89) Do     $proxyin = TCPAccept($proxyin1)     Sleep(10) Until $proxyin > 0 While 1     Sleep(100)     $inrecv = TCPRecv($proxyin, 10000)     If $inrecv > "" Then         ConsoleWrite($inrecv)         Do             $proxyout = TCPConnect(_site($inrecv), 80)             Sleep(10)         Until $proxyout <> -1         ConsoleWrite(0)         TCPSend($proxyout, $inrecv)         $ourrecv = ""         $timer1 = 0         Do             Sleep(500)             $r = TCPRecv($proxyout, 10000)             $ourrecv &= $r             $timer1 = $timer1 + 1         Until $r > " " or $timer1 = 10         Do             Sleep(100)             $r = TCPRecv($proxyout, 10000)             $ourrecv &= $r         Until $r = ""         ConsoleWrite($ourrecv)         TCPSend($proxyin, $ourrecv)         $inrecv = TCPRecv($proxyin, 10000)         TCPCloseSocket($proxyin)         Do             $proxyin = TCPAccept($proxyin1)             Sleep(10)         Until $proxyin > 0     EndIf WEnd Func _site($string)     Local $site = StringSplit($string, @CRLF)     If $site[2] < " " Then         $site = StringSplit($site[3], ":", 1)     Else         $site = StringSplit($site[2], ":", 1)     EndIf     Return TCPNameToIP(StringStripWS($site[2], 8)) EndFunc   ;==>_site  

0

#2 User is offline   7h331337 

  • Advanced Member
  • PipPip
  • Group: Full Members
  • Posts: 179
  • Joined: 09-June 08
  • Location:cyber space

Posted 08 November 2009 - 10:10 PM

bump :D
0

#3 User is offline   BrettF 

  • If the worlds end is today, its already tommorow in AUS
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 7,191
  • Joined: 02-October 06
  • Location:Brisbane, Australia

Posted 08 November 2009 - 11:04 PM

Help with what? :mellow:
0

#4 User is offline   7h331337 

  • Advanced Member
  • PipPip
  • Group: Full Members
  • Posts: 179
  • Joined: 09-June 08
  • Location:cyber space

Posted 09 November 2009 - 01:17 AM

View PostBrettF, on 08 November 2009 - 02:04 PM, said:

Help with what? :mellow:

basically the proxy will only half load images and some times dose not fully load all of the content from a page i was wondering if anyone could see anything wrong or could suggest anything
0

#5 User is offline   BinaryBrother 

  • Resourceful
  • PipPipPipPip
  • Group: Full Members
  • Posts: 572
  • Joined: 15-July 07
  • Gender:Male

Posted 10 November 2009 - 10:14 PM

Check here... :P

http://www.autoitscript.com/forum/index.php?showtopic=44138
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users