[AutoIT] TCP Client for Playforia TinyTown

04/29/2014 14:15 hilavitkutin#1
I have been trying to do something like this:
.
I tried doing an TCP listener:
Code:
TCPStartup()
$ip = "195.143.118.113"
$port = "4217"
Global $TCPL = TCPListen($ip, $port)
Do
	Global $TCPA = TCPAccept($TCPL)
Until $TCPA <> -1
Do
	Global $TCPR = TCPRecv($TCPA, 9999999)
Until $TCPR <> ""
MsgBox(0, "Data", $TCPR)
and a TCP sender:
Code:
TCPStartup()
$ip = "195.143.118.113"
$port = "4217"
Global $tcp = TCPConnect($ip, $port)
TCPSend($tcp, '{"type":"conn","data":{"cmd":"hello"}}')
The codes above are just a test if the server answers, but when i run the listener and then sender, nothing happens.

Link to the game: [Only registered and activated users can see links. Click Here To Register...]

Sourcecode of the game: [Only registered and activated users can see links. Click Here To Register...]

Edit: It seems that the sender actually works, but the server is not responding for some reason.
04/29/2014 15:36 hilavitkutin#2
Here is some traffic I sniffed from the original client:

Crypted:
[Only registered and activated users can see links. Click Here To Register...]

Decrypted:
[Only registered and activated users can see links. Click Here To Register...]