rysiora Posted December 31, 2005 Share Posted December 31, 2005 Want to write a proxy for a game. I change my game ip-to-connect to my own (127.0.0.1) and game connects to my server. The server on PC is exacly like "mediator / middleman ". It connects to the REAL game server. And game sends packets to my "pseudo-server" , then the proxy recevies it and sends to real game server, and from the other way, all packets from real server must go through/over mine proxy. The good thing of this i s that, i can edit packets before sending them to real server, and before sending to game. Game --> Proxy --> Game Serv Game Serv --> Proxy --> Game Is here anyone who can write a EXAMPLE script for me? Link to comment Share on other sites More sharing options...
rysiora Posted December 31, 2005 Author Share Posted December 31, 2005 (edited) Here's my code, but it doesn't work as it should - don't know why. expandcollapse popupTCPStartUp() $Socket = TCPConnect("123.123.123.123", 8080);connects to game serv If $Socket = -1 Then Exit $Listen = TCPListen("127.0.0.1", 8080, 100);waits for connection on my PC If $Listen = -1 Then Exit Global $ConnectedSocket = -1 $RogueSocket = -1 While 1 If $RogueSocket > 0 Then $Recv = TCPRecv($RogueSocket, 2048) If Not @error Then TCPCloseSocket($RogueSocket) $RogueSocket = -1 EndIf If $ConnectedSocket = -1 Then $ConnectedSocket = TCPAccept($Listen) Else TrayTip("", "Client Connected", 0, 16) $RogueSocket = TCPAccept($Listen) $Client = TCPRecv($Socket, 2048) If $Client <> "" Then TCPSend($ConnectedSocket, $Client) GLobal $Client = "" EndIf $Recv = TCPRecv($ConnectedSocket, 2048) If $Recv <> "" Then TCPSend($Socket, $Recv) ElseIf @error Then TrayTip("", "Client Disconnected", 0, 16) TCPCloseSocket($ConnectedSocket) ;TCPCloseSocket($Socket) $ConnectedSocket = -1 EndIf EndIf WEnd Func OnAutoItExit() If $ConnectedSocket > -1 Then TCPCloseSocket($ConnectedSocket) If $Listen > -1 Then TCPCloseSocket($Listen) TCPShutDown() EndFunc Edited December 31, 2005 by rysiora Link to comment Share on other sites More sharing options...
rysiora Posted December 31, 2005 Author Share Posted December 31, 2005 ???????????????????????????? Link to comment Share on other sites More sharing options...
Bert Posted January 1, 2006 Share Posted January 1, 2006 Can I ask a question: are you trying to get around gamespy's ads? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
pingpong24 Posted January 1, 2006 Share Posted January 1, 2006 http://www.autoitscript.com/forum/index.ph...26entry136026go there, someon created http port80 proxy, you can mod it to your own. NumCR Super Fast EASY NUMBER OCR, easiest and the fastest AUTOIT OCR released on this forum Link to comment Share on other sites More sharing options...
rysiora Posted January 5, 2006 Author Share Posted January 5, 2006 Can I ask a question: are you trying to get around gamespy's ads?No. Just a packet-based MMORPG bot. 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