Valhalla Legends Forums Archive | Battle.net Bot Development | 0x50 problems

AuthorMessageTime
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.
April 21, 2003, 10:24 PM
St0rm.iD
Packet log and compare what you're sending to what the game sends.
April 21, 2003, 11:23 PM
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)
April 22, 2003, 12:24 AM
Fr0z3N
[code][/code][code]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[/code]

Theres mine, find out what you did wrong and fix it
April 22, 2003, 2:00 AM
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
April 22, 2003, 2:38 AM
Fr0z3N
........what?
April 22, 2003, 3:35 AM
kamakazie
He is suggesting you replace "Public Function Send_0x50()" with "Public Sub Send_0x50()" since nothing is returned in the actual function.
April 22, 2003, 3:57 AM
Fr0z3N
Both would work, Either or.
Use what your prefer.
April 22, 2003, 5:17 AM
Camel
[quote author=Arthas link=board=17;threadid=1119;start=0#msg8187 date=1050971081]
Whatever, using XP, no good packet loggers.[/quote]
what are you smoking?
get ethereal
April 22, 2003, 5:47 AM
iago
[quote author=Camel link=board=17;threadid=1119;start=0#msg8200 date=1050990477]
[quote author=Arthas link=board=17;threadid=1119;start=0#msg8187 date=1050971081]
Whatever, using XP, no good packet loggers.[/quote]
what are you smoking?
get ethereal
[/quote]

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
April 22, 2003, 7:10 AM
Skywing
[quote author=iago link=board=17;threadid=1119;start=0#msg8202 date=1050995453]
[quote author=Camel link=board=17;threadid=1119;start=0#msg8200 date=1050990477]
[quote author=Arthas link=board=17;threadid=1119;start=0#msg8187 date=1050971081]
Whatever, using XP, no good packet loggers.[/quote]
what are you smoking?
get ethereal
[/quote]

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
[/quote]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.
April 22, 2003, 4:51 PM
Camel
hehe, but you can copy shit ;)
April 22, 2003, 5:02 PM
Skywing
[quote author=Camel link=board=17;threadid=1119;start=0#msg8215 date=1051030967]
hehe, but you can copy shit ;)
[/quote]You can with Ethereal, too. Ever heard of "Print to File" and "Notepad"?
April 22, 2003, 5:05 PM
iago
[quote author=Skywing link=board=17;threadid=1119;start=0#msg8211 date=1051030261]
[quote author=iago link=board=17;threadid=1119;start=0#msg8202 date=1050995453]
[quote author=Camel link=board=17;threadid=1119;start=0#msg8200 date=1050990477]
[quote author=Arthas link=board=17;threadid=1119;start=0#msg8187 date=1050971081]
Whatever, using XP, no good packet loggers.[/quote]
what are you smoking?
get ethereal
[/quote]

Ethereal is good, but so is WPE (www.fly.to/mtc, I think)
[/quote]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.
[/quote]

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.
April 22, 2003, 5:24 PM
Camel
[quote author=Skywing link=board=17;threadid=1119;start=0#msg8218 date=1051031114]
[quote author=Camel link=board=17;threadid=1119;start=0#msg8215 date=1051030967]
hehe, but you can copy shit ;)
[/quote]You can with Ethereal, too. Ever heard of "Print to File" and "Notepad"?
[/quote]
then you'd be copying with notepad, not ethereal. duh.
April 22, 2003, 9:19 PM
Arthas
Thanks anyways for the help, though I still get IP banned :(
April 22, 2003, 10:27 PM
Arthas
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.
April 22, 2003, 10:38 PM
Arthas
when do you all send chr(1)?
April 22, 2003, 11:39 PM
PaiD
Check out BNetDocs
http://www.valhallalegends.com/arta/bnetdocs/
April 22, 2003, 11:44 PM
Arthas
I dont get IP banned by my 0x50 packet, but rather by my 0x25 packet, wierd I'd say...
April 23, 2003, 12:31 AM
St0rm.iD
Ping value off?
April 23, 2003, 12:33 AM
Camel
[quote author=Arthas link=board=17;threadid=1119;start=15#msg8246 date=1051054742]
when do you all send chr(1)?
[/quote]
that should be the first thing you send, before 0x50
April 23, 2003, 2:19 AM

Search