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.
Packet log and compare what you're sending to what the game sends.
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)
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
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
........what?
He is suggesting you replace "Public Function Send_0x50()" with "Public Sub Send_0x50()" since nothing is returned in the actual function.
Both would work, Either or.
Use what your prefer.
Quote from: Arthas on April 21, 2003, 07:24 PM
Whatever, using XP, no good packet loggers.
what are you smoking?
get ethereal
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)
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.
hehe, but you can copy shit ;)
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"?
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.
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.
Thanks anyways for the help, though I still get IP banned :(
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.
when do you all send chr(1)?
Check out BNetDocs
http://www.valhallalegends.com/arta/bnetdocs/
I dont get IP banned by my 0x50 packet, but rather by my 0x25 packet, wierd I'd say...
Ping value off?
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