[Question] about Memory bot

08/06/2012 03:42 genesisVI#1
Edit:
now i only nid to connect to Cabal and some defined packets to send :p
hope someone will point me in the right direction :D


PHP Code:

#include <_TCP.au3>
Func InitBot()
$hServer _TCP_Client_Create("222.111.213.25"30001)
_TCP_RegisterEvent($hServer$TCP_CONNECT"Connect")
_TCP_RegisterEvent($hServer$TCP_RECEIVE"Reciv")
_TCP_RegisterEvent($hServer$TCP_DISCONNECT"Discon")
EndFunc

Func Connect
($socket$error)
Global 
$SERVER_SOCKET $socket
ConsoleWrite
("Connected to server!" & @CRLF)
_TCP_Send($socket"0x07")
EndFunc

Func Reciv
($socket$data$error)
ConsoleWrite("Recived: " String($data) & @CRLF)
EndFunc

Func BotWork
($socket$packet)
    
$packet "00123abc00" 
TCPSend($socket_HexToString($packet))
EndFunc

Func Discon
($socket$error)
ConsoleWrite("Disconnected from server" & @CRLF)
Exit
EndFunc

Func Decrypt
($data$key)
    
Decrypt($data$key)
EndFunc
Func _Crypt_DecryptData
($data$key$CALG_AES_256)
 
_Crypt_DecryptData($data$key$CALG_AES_256)
EndFunc

Func 
XOR($a$b$bit 8)
$c BitXOR($a$b$bit)
Return 
Hex($c)
EndFunc 
these code is written in AU3
it connects to a specified ip and sends a specified packet ....
but still i dont know what packet to send and what ip to connect:confused:
Code
PHP Code:
#include <engine.au3>
Global $LINE 0
InitBot
()
while 
1
Sleep
(100)
WEnd 
08/06/2012 15:25 Acid#2
#moved