packet basic

04/01/2012 22:31 snow9#1
so i'm trying to learn about how packets work
i've read a few guides,
now when i try this:

Code:
TCPStartup()

$socket = TCPConnect("127.0.0.1", 15778)
If $socket = -1 Then
	MsgBox(64, "edxAutoitClientless", "Connection Failure.")
	Exit
EndIf
it says connection failure when i run the auto it script
and the sro client is started
so how can i get this basic code working?
i assume it has something to do with hackshield?
04/01/2012 23:24 Schickl#2
the client doesn't wait for a connection, it connects to the server(obviously, because the server can't know the IP of the client)
So you either want to connect to the server directly or use some sort of proxy
I suggest you to take the 2nd one, because you don't have to deal with the handshake

You can, e.g., use nuconnector/srproxy or phconnector
not sure if all of these are still working, but nuconnector for sure

You can just connect to one of these and you will then receive the packets(the security bytes are replaced with some bytes indicating the directing the packet was sent to(depends on the proxy I think)
04/02/2012 11:42 Th3K1nG#3
+1

You need a connector... set in the connector config the server ip exmaple "63.45.67.98"
and you connect via "127.0.0.1" to the proxy

[phConnector]
IP=63.45.67.98 // <- Server IP
Port=15779 // <- Server Port
ListenPort=10001 // <- For EDX Loader to run the Client
BotPort=19345 // <- Your Random IP from your Tool
Developer=0


Code:
$socket = TCPConnect("127.0.0.1", 15778)
Example: it must be like this
Code:
$socket = TCPConnect("127.0.0.1", 19345)