Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: l2k-Shadow on October 12, 2004, 03:05 AM

Title: Ping Spoof
Post by: l2k-Shadow on October 12, 2004, 03:05 AM
Yeah :P, I am just wondering if ther is a way to spoof ping aside of -1 and 0ms, a custom ping. I tried delaying the answer to 0x25 and the highest i set the timer was 453 ms.. then bnet gave me -1ms. As i went higher with the timer, up to 453 ms, it spoofed around 550-600ms ping. Would there be a way to spoof 1000-ish ping or even ping thats lower than your actual response to 0x25, like 10ms?
Just wondering :)

Also another question. When I connect my bot with hashes for any game, i usually get a ping that's 78-110ms... while if i connect through BNLS, i get 31-47. Would this have to do anything with my response to 0x25, incorrect packet sending, or simply the program's time to connect with the hash files?

Thanks for help.
Title: Re: Ping Spoof
Post by: Soul Taker on October 12, 2004, 04:31 AM
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
Would there be a way to spoof 1000-ish ping
Of course, it involves simple math.
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
or even ping thats lower than your actual response to 0x25, like 10ms?
I suppose so, but this one requires a psychic median.
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
Also another question. When I connect my bot with hashes for any game, i usually get a ping that's 78-110ms... while if i connect through BNLS, i get 31-47. Would this have to do anything with my response to 0x25, incorrect packet sending, or simply the program's time to connect with the hash files?
My guess is slow handling/response times in your program when it recieves the packet.
Title: Re: Ping Spoof
Post by: MyndFyre on October 12, 2004, 07:51 AM
Quote from: Soul Taker on October 12, 2004, 04:31 AM
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
Would there be a way to spoof 1000-ish ping
Of course, it involves simple math.
Not necessarily.  With this "simple math" you have to predict to the millisecond (not particularly easy) the latency between your computer and Battle.net.  Not particularly easy, because this can vary from one millisecond to the next.  But when you've figured it out Soul Taker, let us know.

Quote from: Soul Taker on October 12, 2004, 04:31 AM
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
or even ping thats lower than your actual response to 0x25, like 10ms?
I suppose so, but this one requires a psychic median.
It doesn't require a psychic median, but it does require that you simply delay a 0-ms-ping-style response a little bit, still not waiting to actually get the 0x25 challenge.
Quote from: Soul Taker on October 12, 2004, 04:31 AM
Quote from: l2k-Shadow on October 12, 2004, 03:05 AM
Also another question. When I connect my bot with hashes for any game, i usually get a ping that's 78-110ms... while if i connect through BNLS, i get 31-47. Would this have to do anything with my response to 0x25, incorrect packet sending, or simply the program's time to connect with the hash files?
My guess is slow handling/response times in your program when it recieves the packet.
Your local hashing is probably extremely slow.  However, you ought to create a separate thread; you can respond to 0x25 without having done any of the hashing, and should have your incoming message processing loop on its own thread.
Title: Re: Ping Spoof
Post by: Soul Taker on October 12, 2004, 09:28 AM
Quote from: MyndFyre on October 12, 2004, 07:51 AM
Not necessarily.  With this "simple math" you have to predict to the millisecond (not particularly easy) the latency between your computer and Battle.net.  Not particularly easy, because this can vary from one millisecond to the next.  But when you've figured it out Soul Taker, let us know.
Considering Bnet pings are not literal pings, and usually follow a trend (ie, people tend to get the same ping most of the time), its *really* simple, and tons of bots have been doing it forever.
Title: Re: Ping Spoof
Post by: Tuberload on October 12, 2004, 11:44 AM
This is documented in the BNBDR:
http://forum.valhallalegends.com/phpbbs/index.php?board=45;action=display;threadid=690