• Welcome to Valhalla Legends Archive.
 

0x50 problems

Started by Arthas, April 21, 2003, 05:24 PM

Previous topic - Next topic

Arthas

I get IP Banned whenever I send it... Here's the packet I am sending:

Public Function Packet0x50()
   With PacketBuf
       sckBnet.SendData Chr(1)
       .InsertDWORD 0
       .InsertNonNTString "68XIPX2D"
       .InsertDWORD &H9
       .InsertDWORD &H0
       .InsertDWORD 0
       .InsertDWORD 0
       .InsertDWORD 0
       .InsertDWORD 0
       .InsertNTString "USA"
       .InsertNTString "United States"
       .SendPacket sckBnet, &H50
   End With
End Function

It returns 0x50 then IP bans. Look like there's any problems?

Any help is appreciated, thanks.

Banana fanna fo fanna

Packet log and compare what you're sending to what the game sends.

Arthas

Whatever, using XP, no good packet loggers.

Also, I decided to copy and paste my friend's code into my bot just to test, and same problem. It IP bans half way through the recieve 0x50 case. Here's the code the that:

       Case &H50
           MsgBox PacketID
           Dim sessionid As String
           Dim hash As String
           Dim MPQName As String
           servers = Val("&h" & StrToHex(StrReverse(Mid(data, 9, 4))))
           sessionid = Mid(data, 2 * 4, 4)
           hash = Mid(data, 38, Len(data) - 2)
           MPQName = Mid(data, InStr(1, data, "IX86ver"), Len(data))
           MPQName = Mid(MPQName, 1, 12)
           Packet0x51 hash, MPQName, CVL(sessionid)

Fr0z3N

Public Function Send_0x50()
Packet.InsertDWORD &H0
Packet.InsertNonNTString "68XI"
Packet.InsertNonNTString DB.Product
Packet.InsertDWORD "&H" & VerByte
Packet.InsertDWORD &H0
Packet.InsertDWORD &H0
Packet.InsertDWORD &H0
Packet.InsertDWORD &H0
Packet.InsertDWORD &H0
Packet.InsertNTString "USA"
Packet.InsertNTString "United States"
Packet.SendPacket &H50
Funct.AddChat True, True, &HFFFFC0, "Sent 0x50"
End Function


Theres mine, find out what you did wrong and fix it

TheMinistered

Nothing related to the actual problem, however, you might want to make those subs instead of functions.  Unless you plan on returning some value, I recommend a sub.  Your welcome :D

Fr0z3N


dxoigmn

He is suggesting you replace "Public Function Send_0x50()" with "Public Sub Send_0x50()" since nothing is returned in the actual function.

Fr0z3N

Both would work, Either or.
Use what your prefer.

Camel

Quote from: Arthas on April 21, 2003, 07:24 PM
Whatever, using XP, no good packet loggers.
what are you smoking?
get ethereal

iago

Quote from: Camel on April 22, 2003, 12:47 AM
Quote from: Arthas on April 21, 2003, 07:24 PM
Whatever, using XP, no good packet loggers.
what are you smoking?
get ethereal

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Skywing

#10
Quote from: iago on April 22, 2003, 02:10 AM
Quote from: Camel on April 22, 2003, 12:47 AM
Quote from: Arthas on April 21, 2003, 07:24 PM
Whatever, using XP, no good packet loggers.
what are you smoking?
get ethereal

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
Unless I'm mistaken, WPE doesn't give much low level information, which often seriously limits it's uses.  For instance, you can't tell if the other side has actually received your data without being able to see ACKs.

Camel

hehe, but you can copy shit ;)

Skywing

Quote from: Camel on April 22, 2003, 12:02 PM
hehe, but you can copy shit ;)
You can with Ethereal, too.  Ever heard of "Print to File" and "Notepad"?

iago

Quote from: Skywing on April 22, 2003, 11:51 AM
Quote from: iago on April 22, 2003, 02:10 AM
Quote from: Camel on April 22, 2003, 12:47 AM
Quote from: Arthas on April 21, 2003, 07:24 PM
Whatever, using XP, no good packet loggers.
what are you smoking?
get ethereal

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
Unless I'm mistaken, WPE doesn't give much low level information, which often seriously limits it's uses.  For instance, you can't tell if the other side has actually received your data without being able to see ACKs.

I use them both, I use WPE for quick checks (ie, if I just want to check something) or ethereal if I actually need ACK or whatever.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Camel

Quote from: Skywing on April 22, 2003, 12:05 PM
Quote from: Camel on April 22, 2003, 12:02 PM
hehe, but you can copy shit ;)
You can with Ethereal, too.  Ever heard of "Print to File" and "Notepad"?
then you'd be copying with notepad, not ethereal. duh.