trung0407 Posted May 17, 2008 Share Posted May 17, 2008 So i wrote a packet sniffer but it doesn't completely work.TCPStartup() Do $main_socket = TCPListen('127.0.0.1', 15778) Until $main_socket > 0 Do $clt_socket = TCPAccept($main_socket) Until $clt_socket > 0 $string &= "Connected to client" & @CRLF GUICtrlSetData($Edit1, $string) Do $svr_socket = TCPConnect("69.64.64.125",15779) Until $svr_socket > 0 $string &= "Connected to server" & @CRLF GUICtrlSetData($Edit1, $string) While 1 $Recv = TCPRecv($svr_socket,4096) If $Recv Then $byte = TCPSend($clt_socket,$Recv) $string &= "[" & $byte & "B][ToClient]:" & Hex($Recv) & @CRLF GUICtrlSetData($Edit1, $string) EndIf $Recv = TCPRecv($clt_socket,4096) If $Recv Then $byte = TCPSend($svr_socket,$Recv) $string &= "[" & $byte & "B][ToServer]:" & Hex($Recv) & @CRLF GUICtrlSetData($Edit1, $string) EndIf WEndSo the problem is, when i launch the game launcher, everything is ok. But when i click start button to run the game, the game starts calling another process and the sniffer stop intercepting the packets... 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