• Welcome to Valhalla Legends Archive.
 

Some help sending packets

Started by Logitech, September 23, 2006, 02:48 AM

Previous topic - Next topic

Logitech

Hi all,

I'm working on a new bot project and getting to grips with sending and receiving packets. I wondered if anyone had any thoughts on why I appear to be sending the same packets twice here? I appear to be sending 0x50 ok, but then rather than sending 0x51, it starts again.

The following log will show you:1  10.0.0.3:3654  63.161.183.205:9367  9  Send 
0000  09 00 0E 65 74 65 72 6E 00                         ...logitech.

2  63.161.183.205:9367  10.0.0.3:3654  7  Recv 
0000  07 00 0E D6 C7 2D D3                               .....-.

3  10.0.0.3:3654  63.161.183.205:9367  7  Send 
0000  07 00 0F 71 C1 A5 0E                               ...q...

4  63.161.183.205:9367  10.0.0.3:3654  7  Recv 
0000  07 00 0F 01 00 00 00                               .......

5  10.0.0.3:3655  63.240.202.139:6112  59  Send 
0000  01 FF 50 3A 00 00 00 00 00 36 38 58 49 57 32 42    ..P:.....68XIW2B
0010  4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    N...............
0020  00 00 00 00 00 00 00 00 00 55 53 41 00 55 6E 69    .........USA.Uni
0030  74 65 64 20 53 74 61 74 65 73 00                   ted States.

6  10.0.0.3:3656  63.161.183.205:9367  9  Send 
0000  09 00 0E 65 74 65 72 6E 00                         ...logitech.

7  63.161.183.205:9367  10.0.0.3:3656  7  Recv 
0000  07 00 0E F8 AE ED 82                               .......

8  10.0.0.3:3656  63.161.183.205:9367  7  Send 
0000  07 00 0F 53 48 F8 6D                               ...SH.m

9  63.161.183.205:9367  10.0.0.3:3656  7  Recv 
0000  07 00 0F 01 00 00 00                               .......

10  10.0.0.3:3657  63.240.202.139:6112  59  Send 
0000  01 FF 50 3A 00 00 00 00 00 36 38 58 49 57 32 42    ..P:.....68XIW2B
0010  4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    N...............
0020  00 00 00 00 00 00 00 00 00 55 53 41 00 55 6E 69    .........USA.Uni
0030  74 65 64 20 53 74 61 74 65 73 00                   ted States.


If it helps, here's my code for 0x50
Public Sub 0x50()

    InsertDWORD 0
    InsertNonNTString "68XI" & Game
    'InsertDWORD "&H" & GetVerByte()
    InsertDWORD Val("&H" & GetVerByte())
    InsertDWORD &H0
    InsertDWORD &H0
    InsertDWORD &H0
    InsertDWORD &H0
    InsertDWORD &H0
    InsertNTString "USA"
    InsertNTString "United States"
    sendPacket &H50
    If frmLoginOptions.chk0Ping.Value = vbChecked Then
        InsertDWORD &H0
        sendPacket &H25
    End If
   
End Sub


If you need to see anything else, please say so.

Thanks

[EDIT] - Now appear to have solved the issue of sending these twice, but after sending 0x50, I get a disconnect. Here's the latest log:

1  Hide  Hide  9  Send 
0000  09 00 0E 65 74 65 72 6E 00                         ...logitech.

2  Hide  Hide  7  Recv 
0000  07 00 0E 03 9B 1C F2                               .......

3  Hide  Hide  7  Send 
0000  07 00 0F 38 C1 C2 B3                               ...8...

4  Hide  Hide  7  Recv 
0000  07 00 0F 01 00 00 00                               .......

5  Hide  Hide  59  Send 
0000  01 FF 50 3A 00 00 00 00 00 36 38 58 49 57 32 42    ..P:.....68XIW2B
0010  4E 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    N...............
0020  00 00 00 00 00 00 00 00 00 55 53 41 00 55 6E 69    .........USA.Uni
0030  74 65 64 20 53 74 61 74 65 73 00                   ted States.[/code[


Hdx

Your product is wrong.
Should be NB2W not W2BN, I'm supprised you didn't get IPBanned... Wait no that looks like a ban.
I think thats your problem, Bnet is diconnecting you, and so your bot is just starting the eintire login again. Witch is bad.
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Logitech

Crikey, that was easy enough, thanks. I wasn't getting IP banned though, just a disconnect. Ok, on with the next steps...

(thanks again)