Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: iNsAnE-MS on October 12, 2003, 08:51 AM

Title: Text I know...not binary...
Post by: iNsAnE-MS on October 12, 2003, 08:51 AM
Unfortunately I only dealt with the text/chat gateway of battle.net back before diablo 2 came out and wrote a nice control for it, and in the past few months I developed a pretty functional bot specific to a diablo 2 clan that I joined, but it connects with a diablo 2 CD-KEY through bgate (predecessor to BG3) because I couldn't get them to give me a BG3 key and I was wondering with the patch on the way if I should consider converting my control to binary so I can add more functionality to my bot and avoid a potential disaster if bgate becomes more outdated than it already is (right now it basically only supports diablo II classic logons). Is there anywhere that you can point me to get started learning the binary aspects of Battle.Net? I would most likely only be dealing with logging onto diablo II since my bot was written for it.
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 12, 2003, 08:58 AM
Although it was nice to dig out that control of mine and see that over 4 years it took me maybe a half an hour to update it to perfect working condition again  ;D
Title: Re:Text I know...not binary...
Post by: hismajesty on October 12, 2003, 10:47 AM
Quote from: CupHead on October 12, 2003, 10:41 AM
Use CSB.

iNsAnE[m-s], please /ignore Cuphead.

Edit: Reasoning
CSB is a useful tool, but why use something thats just going to get you flamed?
Title: Re:Text I know...not binary...
Post by: Newby on October 12, 2003, 10:53 AM
I did use CSB  :o

Then I learned hashes :(

I like BNLS though :D
Title: Re:Text I know...not binary...
Post by: Freeware on October 12, 2003, 11:55 AM
Quote from: Newby on October 12, 2003, 10:53 AM
I did use CSB  :o

Then I learned hashes :(

I like BNLS though :D

I agree, but now im using my own quickhash routine similar to BNLS with my control called QuickHash. It downloads a less than 1KB ini file that has the newest version bytes, checksums and exe info. So basically its still localhashed, but not requiring the actual files
Title: Re:Text I know...not binary...
Post by: Banana fanna fo fanna on October 12, 2003, 08:56 PM
Quote from: Freeware on October 12, 2003, 11:55 AM
Quote from: Newby on October 12, 2003, 10:53 AM
I did use CSB  :o

Then I learned hashes :(

I like BNLS though :D

I agree, but now im using my own quickhash routine similar to BNLS with my control called QuickHash. It downloads a less than 1KB ini file that has the newest version bytes, checksums and exe info. So basically its still localhashed, but not requiring the actual files

How did you accomplish this amazing feat of hashing files that don't exist?
Title: Re:Text I know...not binary...
Post by: UserLoser on October 12, 2003, 10:09 PM
Quote from: St0rm.iD on October 12, 2003, 08:56 PM
How did you accomplish this amazing feat of hashing files that don't exist?

The same way he sends packet 0xFU.
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 13, 2003, 02:49 AM
Whoa there, all that and still nobody really even tried to point me in the right direction? You gotta remember I'm not familiar with 99% of the actual bot development scene, therefore I really don't know where to start learning this stuff!
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 13, 2003, 02:52 AM
And what the heck is CSB, or BNLS for that matter?
Title: Re:Text I know...not binary...
Post by: hismajesty on October 13, 2003, 03:16 AM
QuoteAlthough it was nice to dig out that control of mine and see that over 4 years it took me maybe a half an hour to update it to perfect working condition again  

I thought you fixed it.

QuoteAnd what the heck is CSB, or BNLS for that matter?

CSB stands for 'Clean Slate Bot' it is an OCX developed by Cuphead to connect to the BNLS server with little or no coding.

BNLS is... (from skywings page)
Quote
Battle.Net Logon Server (BNLS)
Codeveloped by Yoni, BNLS provides a powerful interface to bot developers for running key functions required to log on to Battle.net.
BNLS supports encoding CD-keys for all CD-keyed Blizzard products, and running the version check for all CD-keyed Blizzard products.
Additionally, BNLS supports hashing logon data with both the modified SHA-1 implementation used with legacy products on Battle.net, and the so-called "New Logon System (NLS)" in use with Warcraft III (and other products in the near future).
The protocol specification is available for download. Bot authors are welcome to implement support for the BNLS server on www.valhallalegends.com, provided they follow the protocol specification and acquire their own unique bot ID/bot password.
Title: Re:Text I know...not binary...
Post by: Adron on October 13, 2003, 07:53 AM
Quote from: St0rm.iD on October 12, 2003, 08:56 PM

How did you accomplish this amazing feat of hashing files that don't exist?

If the hash parameters didn't change so often I'd see something in his idea.
Title: Re:Text I know...not binary...
Post by: Grok on October 13, 2003, 07:56 AM
Quote from: UserLoser on October 12, 2003, 10:09 PM
Quote from: St0rm.iD on October 12, 2003, 08:56 PM
How did you accomplish this amazing feat of hashing files that don't exist?

The same way he sends packet 0xFU.

This made me laff.
Title: Re:Text I know...not binary...
Post by: Adron on October 13, 2003, 07:58 AM
Quote from: Grok on October 13, 2003, 07:56 AM
Quote from: UserLoser on October 12, 2003, 10:09 PM
Quote from: St0rm.iD on October 12, 2003, 08:56 PM
How did you accomplish this amazing feat of hashing files that don't exist?

The same way he sends packet 0xFU.

This made me laff.

Me too, but then, a lot of these posts do. Even the ones that aren't intended to be funny.
Title: Re:Text I know...not binary...
Post by: MrRaza on October 13, 2003, 12:04 PM
This whole forum is a joke.
Title: Re:Text I know...not binary...
Post by: Grok on October 13, 2003, 12:31 PM
Quote from: MrRaza on October 13, 2003, 12:04 PM
This whole forum is a joke.

Uh oh.  Mr Poopy Pants?
Title: Re:Text I know...not binary...
Post by: Banana fanna fo fanna on October 13, 2003, 06:52 PM
/me sends an 0xFU packet to grok :P
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 13, 2003, 10:29 PM
The control I fixed after 4 years was for the text interface, I still need to learn how to use this BNLS thing :(
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 13, 2003, 11:39 PM
Hmm, I think I'm gonna do it the hard way and skip BNLS, I'm gonna try to use local hashing if I can and I'm starting to understand about the binary logon stuff. Thanks for pointing me in the right direction, I didn't realize where the docs for it was until I looked harder.
Title: Re:Text I know...not binary...
Post by: iNsAnE-MS on October 13, 2003, 11:39 PM
SHA-1 is cool
Title: Re:Text I know...not binary...
Post by: Freeware on October 21, 2003, 06:18 PM
Quote from: iNsAnE[m-s] on October 13, 2003, 11:39 PM
SHA-1 is cool

but not cool enough
Title: Re:Text I know...not binary...
Post by: Yoni on October 22, 2003, 01:53 AM
Quote from: iNsAnE[m-s] on October 13, 2003, 11:39 PM
SHA-1 is cool
I'm glad you think so! I agree. Hey, it's really cool. Why not try to put it to a good use (something unrelated to Battle.net)? Perhaps develop some kind of Internet file comparison protocol, where each side sends the SHA-1 hash of a file to the other side? That could be useful and a fun project, and would gain you programming skills and knowledge that would be helpful should you still want to develop a binary bot.
Title: Re:Text I know...not binary...
Post by: Dark-Feanor on October 22, 2003, 09:26 AM
What would actually be sent, if you tried to send a hex character that does not exist, such as 'U'?
Title: Re:Text I know...not binary...
Post by: Yoni on October 22, 2003, 09:58 AM
Data is not sent in a hexadecimal string, it is sent in bits ('0' or '1'). Hex is simply a common representation of this data.
Title: Re:Text I know...not binary...
Post by: Grok on October 22, 2003, 11:50 AM
Quote from: Yoni on October 22, 2003, 09:58 AM
Data is not sent in a hexadecimal string, it is sent in bits ('0' or '1'). Hex is simply a common representation of this data.

I can only show you the door.  You must choose to walk through it.
Title: Re:Text I know...not binary...
Post by: Adron on October 22, 2003, 06:21 PM
Quote from: DaRk-FeAnOr on October 22, 2003, 09:26 AM
What would actually be sent, if you tried to send a hex character that does not exist, such as 'U'?

You could just not send it. Think of it as me telling you to hold up 47 fingers.
Title: Re:Text I know...not binary...
Post by: Grok on October 22, 2003, 11:35 PM
Quote from: Adron on October 22, 2003, 06:21 PM
Quote from: DaRk-FeAnOr on October 22, 2003, 09:26 AM
What would actually be sent, if you tried to send a hex character that does not exist, such as 'U'?

You could just not send it. Think of it as me telling you to hold up 47 fingers.

I'll try ...

^J^J^J^J^J^J^J^J

damn.  I cannot get past 10.