Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Arthas on April 21, 2003, 05:24 PM

Title: 0x50 problems
Post by: Arthas on April 21, 2003, 05:24 PM
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.
Title: Re:0x50 problems
Post by: Banana fanna fo fanna on April 21, 2003, 06:23 PM
Packet log and compare what you're sending to what the game sends.
Title: Re:0x50 problems
Post by: Arthas on April 21, 2003, 07:24 PM
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)
Title: Re:0x50 problems
Post by: Fr0z3N on April 21, 2003, 09:00 PM
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
Title: Re:0x50 problems
Post by: TheMinistered on April 21, 2003, 09:38 PM
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
Title: Re:0x50 problems
Post by: Fr0z3N on April 21, 2003, 10:35 PM
........what?
Title: Re:0x50 problems
Post by: dxoigmn on April 21, 2003, 10:57 PM
He is suggesting you replace "Public Function Send_0x50()" with "Public Sub Send_0x50()" since nothing is returned in the actual function.
Title: Re:0x50 problems
Post by: Fr0z3N on April 22, 2003, 12:17 AM
Both would work, Either or.
Use what your prefer.
Title: Re:0x50 problems
Post by: 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
Title: Re:0x50 problems
Post by: 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)
Title: Re:0x50 problems
Post by: 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.
Title: Re:0x50 problems
Post by: Camel on April 22, 2003, 12:02 PM
hehe, but you can copy shit ;)
Title: Re:0x50 problems
Post by: 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"?
Title: Re:0x50 problems
Post by: iago on April 22, 2003, 12:24 PM
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.
Title: Re:0x50 problems
Post by: Camel on April 22, 2003, 04:19 PM
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.
Title: Re:0x50 problems
Post by: Arthas on April 22, 2003, 05:27 PM
Thanks anyways for the help, though I still get IP banned :(
Title: Re:0x50 problems
Post by: Arthas on April 22, 2003, 05:38 PM
I had an old packet logger that owned, but it dosnt work with XP. Nothing to fancy, but it did the job awesome.

I'mm go grab etheral, thanks.
Title: Re:0x50 problems
Post by: Arthas on April 22, 2003, 06:39 PM
when do you all send chr(1)?
Title: Re:0x50 problems
Post by: PaiD on April 22, 2003, 06:44 PM
Check out BNetDocs
http://www.valhallalegends.com/arta/bnetdocs/
Title: Re:0x50 problems
Post by: Arthas on April 22, 2003, 07:31 PM
I dont get IP banned by my 0x50 packet, but rather by my 0x25 packet, wierd I'd say...
Title: Re:0x50 problems
Post by: Banana fanna fo fanna on April 22, 2003, 07:33 PM
Ping value off?
Title: Re:0x50 problems
Post by: Camel on April 22, 2003, 09:19 PM
Quote from: Arthas on April 22, 2003, 06:39 PM
when do you all send chr(1)?
that should be the first thing you send, before 0x50