[HELP] Purification pills packets

07/06/2015 15:04 xana4444#1
So, what I am trying to do is send a packet using AutoIT to use a purification pills located somewhere in my inventory, I snitched the packets using edxAnalyzer and that's what comes up

[C -> S][704C]
21
6C 09

I know the 21 is the location in inventory, I know the 704C is the opcode, I know the 6C 09 is the purification pill's ID and the item's type, what I don't know is how to use them in Auto IT. I tried something else like sending a sit/stand packet and it worked fine, the Analyzer gave me that

[C -> S][704F]
04

And here's what I did in AutoIT for the sit/stand packet

PHP Code:
TCPStartup()

$socket TCPConnect("127.0.0.1"16000)
If 
$socket = -1 Then
    MsgBox
(64"Notice""Connection failed.")
    Exit
 EndIf
Sleep(5000)
TCPSend($socket"0x" "0100" "4F70" "0100" "04") ;0x size opcode direction packetdata

TCPShutdown
() 
Now, what I want is the purification pill's format if I wanted to insert it in AutoIT, for example the sit/stand is this : 0x01004F70010004, I want the purification pill's usage in that same format, no functions or any of that sort. Oh I also tried doing 0x010004C700100216C09 but it gave me a DC, maybe I am putting the wrong direction? I don't know.

Thanks, any help would be appreciated.
07/06/2015 15:29 magicanoo#2
704C should be encrypted. Also 21= slot number
07/06/2015 15:31 xana4444#3
I knew what the 21 is. So 704C being encrypted means I gotta use another direction? if yes what is it?
07/07/2015 01:52 theking200051#4
opcode 704c is encrypted so the direction must be 0003 (if u use PHconnector)

so u will send it like :-
$data ="0x"&"0300"&"4c70"&"0300"&"216c09"
TCPsend($socket,$data)

BTW :- size equal 3 not 1 cause the data field contain 3 bytes not 1
07/07/2015 08:13 xana4444#5
Quote:
Originally Posted by theking200051 View Post
opcode 704c is encrypted so the direction must be 0003 (if u use PHconnector)

so u will send it like :-
$data ="0x"&"0300"&"4c70"&"0300"&"216c09"
TCPsend($socket,$data)

BTW :- size equal 3 not 1 cause the data field contain 3 bytes not 1
I got it to work by doing this.

PHP Code:
TCPStartup()
$socket TCPConnect("127.0.0.1"16000)
$data "0x01004C700300216C09"
TCPSend($socket$data) ;0x size opcode direction packetdata
Sleep
(1
So the size thing is 0(number of fields)00? which means 0300 in my case and 0100 in the sit/stand case since it's one field? thanks, I was hoping someone would explain how the size gets calculated although it's weird it's working with 0100 with 3 fields.
07/07/2015 20:02 theking200051#6
if u mistaken the size it may work and may DC so write it correctly is the best way u insure u build stable tool ,

the size field is the number of bytes in the data field ,the data field start after the direction or security bytes to the end of the packet so in case of sit packet (704f) the data field is 04 and in the purification pills (704c) it is the {216c09}
And :- byte = 2 digits
so u got 2 digits in data field of the sit packet then u got 1 byte ,and u got 6 digits in the purification pills packet so u have 3 bytes and .....etc )

and its easy to make the autoit calculate it automatically , here i will share a function that u just enter the opcode and data field ,and encrypt and it will build the packet for u .

Code:
func SendPacket($txopcode,$encrypt,$data) ; this will reverse the opcode bytes for u 
  $op1=StringMid($txopcode,3,2)
  $op2=StringMid($txopcode,1,2)
$sopcode=$op1&$op2

  $ln=Hex(Int(StringLen($sdata)/2),4)  ; this will calculate the size for u 
  $ln1=StringMid($ln,3,2)
   $ln2=StringMid($ln,1,2)
   $lns=$ln1&$ln2

if $encrypt  = true then
 $security="0300"                                 
else
  $security="0100"
EndIf
$packet=("0x"&$lns&$sopcode&$security&$data)
TCPSend($socket,$packet)
examples :-
sit packet :-
SendPacket("704f",false,"04")
purification pills:-
SendPacket("704c",true,"216c09")

Note this will work only with proxy thats use 0001 for unencrypted and 0003 for encrypted like PHconnector or Nuconnector
07/07/2015 21:22 worldgs#7
704C
slot number
0x096C

should be work.