Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: vector on July 10, 2008, 05:47 PM

Title: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: vector on July 10, 2008, 05:47 PM
I've pestered Hdx some time back if he'd do a go-ahead and make the next version of the BNCS library named BNCSUtil.dll.

I understand that perhaps the lot of you are pro managed-bncsutil, but I was wondering if any of you know BNCSUtil enough to create a lockdown login sequence for STAR/SEXP and W2BN, who currently use the older check revision method in BNCSUtil, rendering them useless.

Not a lot of bots that I know of rely on a managed BNCS library. I'm only asking for information on the status of releasing a lockdown-enabled BNCSUtil for STAR/SEXP/W2BN.

Thanks.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: MyndFyre on July 10, 2008, 06:28 PM
I wouldn't mind doing it, but I don't have the latest source code to the unmanaged BNCSUtil.

Does anyone?
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: vector on July 10, 2008, 06:30 PM
Due to certain circumstances, I do not have access to my computer, but I have the source.

Ask FrostWraith for it; I'm sure he'd be glad to give it to you.

MyndFyre, you don't know how many people will be happy because of this!

If you don't mind, I will now take the time to say that you are a code God...
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: FrostWraith on July 10, 2008, 07:44 PM
Is this the latest, bncsutil-1.3.1 ?
if so,
http://frostwraith.no-ip.org/bnet/bncsutil/
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: K on July 10, 2008, 08:43 PM
Here is the latest version I could find, which included some fixes that I rolled in + a Makefile for building on Linux.
http://reznor.homelinux.net/~ledbettj/bncsutil.tgz
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Sorc.Polgara on July 10, 2008, 11:44 PM
yay, I've been looking for the the source.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: MyndFyre on July 11, 2008, 12:08 AM
I've imported 1.3.1 into Google Code at http://bncsutil.googlecode.com/.  If anyone wants to be a contributor to the project let me know.

I won't be able to test on Mac for the time being, nor Linux, so folks with that ability should help me to do so when possible ;)
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Barabajagal on July 11, 2008, 12:43 AM
Maybe in a few months when I've gotten better at C, I'll write a Linux bot...
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: MyndFyre on July 11, 2008, 01:00 AM
Does anyone have his modified version of gmp-4.2.1?  I've got the library, but he references a custom include folder in gmp-4.2.1\build.vc8. 

That'd be helpful :)
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: K on July 11, 2008, 09:55 AM
Quote from: MyndFyre[vL] on July 11, 2008, 12:08 AM
I've imported 1.3.1 into Google Code at http://bncsutil.googlecode.com/.  If anyone wants to be a contributor to the project let me know.

I won't be able to test on Mac for the time being, nor Linux, so folks with that ability should help me to do so when possible ;)

If you do a diff between the files you imported and the files I posted you will see the fixes that are missing. IIRC they're in checkrevision.cpp

- not handling mpq0
- missing a checkrevision seed
- not handling the then-new 64-bit checkrevision values.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Hdx on July 11, 2008, 04:07 PM
At the time, I could not get BNCSutil to compile. And didn't have the time to work on it.
Now I don't have the time either. [Might have to work 65+ hours this week]
BUT! I do have a few linux machines I can test on for your guys if needed.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Sorc.Polgara on July 18, 2008, 06:01 PM
Quote from: MyndFyre[vL] on July 11, 2008, 01:00 AM
Does anyone have his modified version of gmp-4.2.1?  I've got the library, but he references a custom include folder in gmp-4.2.1\build.vc8. 

That'd be helpful :)

I'd like to be added to the project- I've got K's copy of the code.  I run linux and I've built the library, browsing the code atm.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: K on July 18, 2008, 06:56 PM
Quote from: Sorc.Polgara on July 18, 2008, 06:01 PM
Quote from: MyndFyre[vL] on July 11, 2008, 01:00 AM
Does anyone have his modified version of gmp-4.2.1?  I've got the library, but he references a custom include folder in gmp-4.2.1\build.vc8. 

That'd be helpful :)

I'd like to be added to the project- I've got K's copy of the code.  I run linux and I've built the library, browsing the code atm.

Feel free to add me to the project too.  (g)mail in my profile.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Sorc.Polgara on July 20, 2008, 03:05 PM
Bleh, I've been looking through iago's lockdown code and it looks like I'm stuck until I can figure out how to port various windows API (i.e. LoadLibrary) and such to Linux.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: brew on July 20, 2008, 10:01 PM
Quote from: Sorc.Polgara on July 20, 2008, 03:05 PM
Bleh, I've been looking through iago's lockdown code and it looks like I'm stuck until I can figure out how to port various windows API (i.e. LoadLibrary) and such to Linux.
dlopen is the equivalent function to LoadLibrary, if that helps at all...
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Sorc.Polgara on July 21, 2008, 06:10 PM
Quote from: brew on July 20, 2008, 10:01 PM
Quote from: Sorc.Polgara on July 20, 2008, 03:05 PM
Bleh, I've been looking through iago's lockdown code and it looks like I'm stuck until I can figure out how to port various windows API (i.e. LoadLibrary) and such to Linux.
dlopen is the equivalent function to LoadLibrary, if that helps at all...

If it was merely the task of finding the Linux equivalent APIs, then I wouldn't be having a problem.  I don't believe one can just use the linux equivalent API to load a Windows PE DLL... I wish it were that simple.

Anyways, the BNCSutil source includes some functionality for using PE formatted files which I'm playing around with.  Although I'm unsure if it's robust enough at the moment, since the lockdown checkrevision is much more involved.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: MyndFyre on July 21, 2008, 06:44 PM
rob released his source code for lockdown which implemented the functionality necessary for reading PE files I believe.

Also, K, your email is hidden in your profile.  PM me?
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: brew on July 21, 2008, 06:55 PM
Quote from: Sorc.Polgara on July 21, 2008, 06:10 PM
Quote from: brew on July 20, 2008, 10:01 PM
Quote from: Sorc.Polgara on July 20, 2008, 03:05 PM
Bleh, I've been looking through iago's lockdown code and it looks like I'm stuck until I can figure out how to port various windows API (i.e. LoadLibrary) and such to Linux.
dlopen is the equivalent function to LoadLibrary, if that helps at all...
If it was merely the task of finding the Linux equivalent APIs, then I wouldn't be having a problem.  I don't believe one can just use the linux equivalent API to load a Windows PE DLL... I wish it were that simple.
Whoops, forgot about that.

What's stopping you from just opening it as a regular file?
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Sorc.Polgara on July 21, 2008, 08:38 PM
Quote from: MyndFyre[vL] on July 21, 2008, 06:44 PM
rob released his source code for lockdown which implemented the functionality necessary for reading PE files I believe.

Also, K, your email is hidden in your profile.  PM me?

Ah, nice, thanks. Yeah, rob's source is much more Linux friendly than iago's source which is what I was using previously.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Joe[x86] on July 22, 2008, 08:32 AM
iago uses exclusively Linux. His code isn't Linux friendly?
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: MyndFyre on July 22, 2008, 10:41 AM
Quote from: Joex86] link=topic=17567.msg179031#msg179031 date=1216733556]
iago uses exclusively Linux. His code isn't Linux friendly?

iago's lockdown code was written in Visual Studio 2005 and was targeted for Windows.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: vector on July 23, 2008, 12:53 PM
Either way, once you can get the original source to compile in windows, then you know that's a dependable source to work on.

So what kinds of things are you guys dealing with to make it compatible with the new lockdown algorithm?
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Joe[x86] on July 23, 2008, 06:24 PM
Quote from: MyndFyre[vL] on July 22, 2008, 10:41 AM
Quote from: Joex86] link=topic=17567.msg179031#msg179031 date=1216733556]
iago uses exclusively Linux. His code isn't Linux friendly?

iago's lockdown code was written in Visual Studio 2005 and was targeted for Windows.

Oh. I'm dumb.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: Mystical on August 24, 2008, 02:34 PM

Has anyone updated this for lockdown?

Some of the links previously posted for the source in this topic don't seem to be working.

Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: l)ragon on September 08, 2008, 11:14 PM
lol the project die?
hows it coming along.
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: c0ol on September 09, 2008, 09:35 AM
I am currently working on this library in an effort to improve some problems I am having with it.  Here is a tenative list of my goals right now and where I stand on them, I started this a few days ago.  1-5 is my progress

4 - 1 ) Remove C++ requirements from all project source
5 - 2 ) Build with MinGW on windows vista
2 - 3 ) Normalize APIs, add prefixes to names, streamline function names
5 - 4 ) Separate PE into its own library
3 - 5 ) Remove unessary win32 calls
2 - 6 ) Rewrite some of the functions to be more in-line with my new style
0 - 7 ) Implement fully doxygen coverage
2 - 8 ) Implement a high level of unit test coverage using cuint
0 - 9 ) Use CMake instead of auto-terrible
1 - 10) Add functionality required to pass Warden and Lockdown challenges
Title: Re: BNCSUtil 1.3.2? Been on my mind for awhile
Post by: vector on October 14, 2008, 09:33 PM
Quote from: c0ol on September 09, 2008, 09:35 AM
I am currently working on this library in an effort to improve some problems I am having with it.  Here is a tenative list of my goals right now and where I stand on them, I started this a few days ago.  1-5 is my progress

4 - 1 ) Remove C++ requirements from all project source
5 - 2 ) Build with MinGW on windows vista
2 - 3 ) Normalize APIs, add prefixes to names, streamline function names
5 - 4 ) Separate PE into its own library
3 - 5 ) Remove unessary win32 calls
2 - 6 ) Rewrite some of the functions to be more in-line with my new style
0 - 7 ) Implement fully doxygen coverage
2 - 8 ) Implement a high level of unit test coverage using cuint
0 - 9 ) Use CMake instead of auto-terrible
1 - 10) Add functionality required to pass Warden and Lockdown challenges
That's quote a lot... Don't freakin change the function names inside the DLL, or all current bots that use it will not be able to use this version..

I assume you know this already.