Apocalypse Posted May 13, 2007 Share Posted May 13, 2007 I would like to log the raw data of all incoming packets from port = 1234 and ip = 63.241.83.?? , but so far I keep getting errors.My Broken Code:Dim $vPacket = "" TCPStartUp() $iListen = TCPListen("63.241.83.11", 1234) $iSocket = TCPAccept($iListen) While True $vPacket = TCPRecv ($iSocket, 1024) If @error Then $vPacket = 0 _FileWriteLog(@ScriptDir & "\my.log", $vPacket) WEndCan someone please fix this code.Also, I don't know how to select a range of IPs like 63.241.83.?? so the code above specifies 63.241.83.11 . If possible help me fix this too. Link to comment Share on other sites More sharing options...
ChrisL Posted May 13, 2007 Share Posted May 13, 2007 TCPListen("63.241.83.11", 1234) You should be listening to data on your own IP address. Is this your local IP? TCPListen(@IPaddress1, 1234) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire 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