Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: l)ragon on November 24, 2006, 07:05 PM

Title: BNLS.dll and sample app.
Post by: l)ragon on November 24, 2006, 07:05 PM
Supported list, mostly untested aswell.

#define BNLS_NULL                       (0x00) //supported
#define BNLS_CDKEY                      (0x01) //supported
#define BNLS_LOGONCHALLENGE             (0x02) //supported
#define BNLS_LOGONPROOF                 (0x03) //supported
#define BNLS_CREATEACCOUNT              (0x04) //supported
#define BNLS_CHANGECHALLENGE            (0x05) //supported
#define BNLS_CHANGEPROOF                (0x06) //supported
#define BNLS_UPGRADECHALLENGE           (0x07) //supported
#define BNLS_UPGRADEPROOF               (0x08) //supported
#define BNLS_CONFIRMLOGON               (0x0a) //supported
#define BNLS_HASHDATA                   (0x0b) //supported
#define BNLS_CDKEY_EX                   (0x0c) //supported, not fully
#define BNLS_CHOOSENLSREVISION          (0x0d) //supported
#define BNLS_AUTHORIZE                  (0x0e) //supported
#define BNLS_AUTHORIZEPROOF             (0x0f) //supported
#define BNLS_REQUESTVERSIONBYTE         (0x10) //supported
#define BNLS_VERIFYSERVER               (0x11) //supported
#define BNLS_VERSIONCHECKEX2            (0x1a) //supported


Link: is in my profile go there and click files.

Link above is to the BNLS dll I have been building, it also includes a sample app.
Sample app includes a Function name DebugOutPut, you can thank Grok for that function.
Its primary use is for Checkrevision ATM, read the readme.
Title: Re: BNLS.dll and sample app.
Post by: l2k-Shadow on November 24, 2006, 07:27 PM
... this was uncalled for.
Title: Re: BNLS.dll and sample app.
Post by: Ersan on November 24, 2006, 08:05 PM
Not again...

EDIT: nvm this is useless.  Why did you write a dll to handle one packet?
Title: Re: BNLS.dll and sample app.
Post by: Joe[x86] on November 24, 2006, 08:42 PM
Ersan, you know damned well that half the bots are going to use it, though, right? :P.
Title: Re: BNLS.dll and sample app.
Post by: l2k-Shadow on November 24, 2006, 08:45 PM
Quote from: Newby on November 21, 2006, 06:09 PM
To speed that process up, release a DLL with VB6.0 example code.

Newby should get a job telling the future.
Title: Re: BNLS.dll and sample app.
Post by: Sorc.Polgara on November 24, 2006, 08:51 PM
Wait, so this DLL does what BNLS does CheckRevision-wise?
Title: Re: BNLS.dll and sample app.
Post by: warz on November 24, 2006, 08:52 PM
Quote from: Sorc.Polgara on November 24, 2006, 08:51 PM
Wait, so this DLL does what BNLS does CheckRevision-wise?

No, this dll uses bnls.
Title: Re: BNLS.dll and sample app.
Post by: Sorc.Polgara on November 24, 2006, 08:54 PM
Oh, then it's nothing to get excited about, heh.

Reading l2k's post is misleading then
Title: Re: BNLS.dll and sample app.
Post by: Ersan on November 24, 2006, 09:05 PM
No, this dll does what checkrevision does BNLS-wise, and nothing more (keep in mind this takes like 9 lines of code max to actually do.)
Title: Re: BNLS.dll and sample app.
Post by: l2k-Shadow on November 24, 2006, 09:22 PM
Quote from: Sorc.Polgara on November 24, 2006, 08:54 PM
Oh, then it's nothing to get excited about, heh.

Reading l2k's post is misleading then

i was referring to the "DLL with VB6 example" part.
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 24, 2006, 10:30 PM
Is there nomore gratitude left on this forum or what you should be thankfull that I released this, after all this useless nonsense so keep your ungreatfull comments to your self (yes you know who you are).
Title: Re: BNLS.dll and sample app.
Post by: l2k-Shadow on November 24, 2006, 11:03 PM
yeah but you're basically saying, "here people stop trying to do stuff yourself, you can rip my code right here!" I think we as a community are against people doing that...
Title: Re: BNLS.dll and sample app.
Post by: MyndFyre on November 24, 2006, 11:13 PM
Quote from: l)ragon on November 24, 2006, 10:30 PM
Is there nomore gratitude left on this forum or what you should be thankfull that I released this, after all this useless nonsense so keep your ungreatfull comments to your self (yes you know who you are).

That depends.  Does this DLL actually implement the checkrevision functionality, or do you do the CR over BNLS?
Title: Re: BNLS.dll and sample app.
Post by: Hero on November 24, 2006, 11:58 PM
Quote from: MyndFyre[vL] on November 24, 2006, 11:13 PM
Quote from: l)ragon on November 24, 2006, 10:30 PM
Is there nomore gratitude left on this forum or what you should be thankfull that I released this, after all this useless nonsense so keep your ungreatfull comments to your self (yes you know who you are).

That depends.  Does this DLL actually implement the checkrevision functionality, or do you do the CR over BNLS?
Uses BNLS as stated above.
Title: Re: BNLS.dll and sample app.
Post by: Ersan on November 25, 2006, 12:50 AM
hence the name








HENCE IT!
Title: Re: BNLS.dll and sample app.
Post by: Ringo on November 25, 2006, 07:45 AM
Quote from: l)ragon on November 24, 2006, 10:30 PM
Is there nomore gratitude left on this forum or what you should be thankfull that I released this, after all this useless nonsense so keep your ungreatfull comments to your self (yes you know who you are).
Nice of you to release this, l)ragon. Im sure some will find it usefull.
Dont take the attitude your getting persionaly, the troll is hungry to leach meat, and you just threw him fruit.
Give him time to calm down :)

Aside, how does this dll of yours work?
Does it call back or does it release the call to the function after BNLS has responded?
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 25, 2006, 02:11 PM
Quote from: Ringo on November 25, 2006, 07:45 AM
Quote from: l)ragon on November 24, 2006, 10:30 PM
Is there nomore gratitude left on this forum or what you should be thankfull that I released this, after all this useless nonsense so keep your ungreatfull comments to your self (yes you know who you are).
Nice of you to release this, l)ragon. Im sure some will find it usefull.
Dont take the attitude your getting persionaly, the troll is hungry to leach meat, and you just threw him fruit.
Give him time to calm down :)

Aside, how does this dll of yours work?
Does it call back or does it release the call to the function after BNLS has responded?
I wanted to have data on demand so it will return the function after the response.
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 25, 2006, 02:16 PM
also if you deside to use the auth your returns will be the following.

#define STATUS_AUTHORIZED               (0x00)
#define STATUS_UNAUTHORIZED             (0x01)
#define STATUS_UNKNOWEN_NAME            (-2)
#define STATUS_UNKNOWEN_PASS            (-3)
#define FUNCTION_FAIL    (-1)
Title: Re: BNLS.dll and sample app.
Post by: Hero on November 25, 2006, 04:12 PM
Works good, hope no one abuses it, and they should stop bashing it too.
Title: Re: BNLS.dll and sample app.
Post by: Ersan on November 25, 2006, 08:31 PM
You realize all the DLL does is:
connect to bnls
send 0x1a
recv 0x1a
disconnect from bnls

you can do that with 6 lines of code and a winsock control, somehow he's turned it into 25 or so, and he's probably got a packetbuffer implementation in the DLL, so that's TWO packetbuffers for one program plus the added bonus of yet another external library, yes how useful.
Title: Re: BNLS.dll and sample app.
Post by: Hero on November 25, 2006, 09:30 PM
Quote from: Ersan on November 25, 2006, 08:31 PM
You realize all the DLL does is:
connect to bnls
send 0x1a
recv 0x1a
disconnect from bnls

you can do that with 6 lines of code and a winsock control, somehow he's turned it into 25 or so, and he's probably got a packetbuffer implementation in the DLL, so that's TWO packetbuffers for one program plus the added bonus of yet another external library, yes how useful.

If you have nothing good to say don't say it at all, son.
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 26, 2006, 05:31 AM
Edited and updated link, if you were useing the dll, you will want to fix your outbuf processing for BNLS_VERSIONCHECKEX2 as I have removed the header from the send back.
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 28, 2006, 10:06 PM
Updated dll and class yet again, it will now give you the exact data from BNLS_VERSIONCHECKEX2 (-) the header and (-) the extra null's.

Edit: I have supplyed a crude sample bot which use's the dll on our webpage (under my name) as requested the DataArrival could use some work, but you get what you payed for.
Title: Re: BNLS.dll and sample app.
Post by: UserLoser on November 29, 2006, 01:00 PM
Quote from: l)ragon on November 25, 2006, 02:16 PM
also if you deside to use the auth your returns will be the following.

#define STATUS_AUTHORIZED               (0x00)
#define STATUS_UNAUTHORIZED             (0x01)
#define STATUS_UNKNOWEN_NAME            (-2)
#define STATUS_UNKNOWEN_PASS            (-3)
#define FUNCTION_FAIL    (-1)


Where do you get these unknown* status codes from?
Title: Re: BNLS.dll and sample app.
Post by: Ersan on November 29, 2006, 02:48 PM
BNLS_AUTHORIZEPROOF probably.  I think unknown means invalid.

Dunno how you'd figure out if the botid is valid or not since BNLS sends BNLS_AUTHORIZE even if the botid is invalid now.

The last three constants are likely specific to his DLL, what exactly are you asking?
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 29, 2006, 04:57 PM
Quote from: UserLoser on November 29, 2006, 01:00 PM
Quote from: l)ragon on November 25, 2006, 02:16 PM
also if you deside to use the auth your returns will be the following.

#define STATUS_AUTHORIZED               (0x00)
#define STATUS_UNAUTHORIZED             (0x01)
#define STATUS_UNKNOWEN_NAME            (-2)
#define STATUS_UNKNOWEN_PASS            (-3)
#define FUNCTION_FAIL    (-1)


Where do you get these unknown* status codes from?
Its so i know where to look if there were to ever be any problems.
Title: Re: BNLS.dll and sample app.
Post by: UserLoser on November 29, 2006, 06:19 PM
Was just wondering because to my knowledge those status codes are not in BNLS, perhaps JBLS supports them?
Title: Re: BNLS.dll and sample app.
Post by: warz on November 29, 2006, 06:25 PM
I think he just made them up for his use with his dll.
Title: Re: BNLS.dll and sample app.
Post by: l)ragon on November 29, 2006, 06:50 PM
Quote from: warz on November 29, 2006, 06:25 PM
I think he just made them up for his use with his dll.
Yes -2,-3 are possible internal errors, which I doubt anyone will see anyways.
Edit -1, should be pretty obvious.