Valhalla Legends Forums Archive | Battle.net Bot Development | BNCSUtil 1.3.2? Been on my mind for awhile

AuthorMessageTime
vector
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.
July 10, 2008, 10:47 PM
Myndfyr
I wouldn't mind doing it, but I don't have the latest source code to the unmanaged BNCSUtil.

Does anyone?
July 10, 2008, 11:28 PM
vector
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...
July 10, 2008, 11:30 PM
FrostWraith
Is this the latest, bncsutil-1.3.1 ?
if so,
http://frostwraith.no-ip.org/bnet/bncsutil/
July 11, 2008, 12:44 AM
K
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
July 11, 2008, 1:43 AM
bethra
yay, I've been looking for the the source.
July 11, 2008, 4:44 AM
Myndfyr
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 ;)
July 11, 2008, 5:08 AM
Barabajagal
Maybe in a few months when I've gotten better at C, I'll write a Linux bot...
July 11, 2008, 5:43 AM
Myndfyr
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 :)
July 11, 2008, 6:00 AM
K
[quote author=MyndFyre[vL] link=topic=17567.msg178900#msg178900 date=1215752883]
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 ;)
[/quote]

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.
July 11, 2008, 2:55 PM
HdxBmx27
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.
July 11, 2008, 9:07 PM
bethra
[quote author=MyndFyre[vL] link=topic=17567.msg178902#msg178902 date=1215756047]
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 :)
[/quote]

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.
July 18, 2008, 11:01 PM
K
[quote author=Sorc.Polgara link=topic=17567.msg179003#msg179003 date=1216422063]
[quote author=MyndFyre[vL] link=topic=17567.msg178902#msg178902 date=1215756047]
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 :)
[/quote]

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.
[/quote]

Feel free to add me to the project too.  (g)mail in my profile.
July 18, 2008, 11:56 PM
bethra
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.
July 20, 2008, 8:05 PM
BreW
[quote author=Sorc.Polgara link=topic=17567.msg179016#msg179016 date=1216584312]
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.
[/quote]
dlopen is the equivalent function to LoadLibrary, if that helps at all...
July 21, 2008, 3:01 AM
bethra
[quote author=brew link=topic=17567.msg179018#msg179018 date=1216609268]
[quote author=Sorc.Polgara link=topic=17567.msg179016#msg179016 date=1216584312]
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.
[/quote]
dlopen is the equivalent function to LoadLibrary, if that helps at all...
[/quote]

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.
July 21, 2008, 11:10 PM
Myndfyr
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?
July 21, 2008, 11:44 PM
BreW
[quote author=Sorc.Polgara link=topic=17567.msg179026#msg179026 date=1216681835]
[quote author=brew link=topic=17567.msg179018#msg179018 date=1216609268]
[quote author=Sorc.Polgara link=topic=17567.msg179016#msg179016 date=1216584312]
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.
[/quote]
dlopen is the equivalent function to LoadLibrary, if that helps at all...
[/quote]
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.
[/quote]
Whoops, forgot about that.

What's stopping you from just opening it as a regular file?
July 21, 2008, 11:55 PM
bethra
[quote author=MyndFyre[vL] link=topic=17567.msg179027#msg179027 date=1216683873]
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?
[/quote]

Ah, nice, thanks. Yeah, rob's source is much more Linux friendly than iago's source which is what I was using previously.
July 22, 2008, 1:38 AM
JoeTheOdd
iago uses exclusively Linux. His code isn't Linux friendly?
July 22, 2008, 1:32 PM
Myndfyr
[quote author=Joe[x86] link=topic=17567.msg179031#msg179031 date=1216733556]
iago uses exclusively Linux. His code isn't Linux friendly?
[/quote]

iago's lockdown code was written in Visual Studio 2005 and was targeted for Windows.
July 22, 2008, 3:41 PM
vector
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?
July 23, 2008, 5:53 PM
JoeTheOdd
[quote author=MyndFyre[vL] link=topic=17567.msg179034#msg179034 date=1216741300]
[quote author=Joe[x86] link=topic=17567.msg179031#msg179031 date=1216733556]
iago uses exclusively Linux. His code isn't Linux friendly?
[/quote]

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

Oh. I'm dumb.
July 23, 2008, 11:24 PM
MyStiCaL

Has anyone updated this for lockdown?

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

August 24, 2008, 7:34 PM
dRAgoN
lol the project die?
hows it coming along.
September 9, 2008, 4:14 AM
c0ol
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
September 9, 2008, 2:35 PM
vector
[quote author=c0ol link=topic=17567.msg179751#msg179751 date=1220970928]
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
[/quote]
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.
October 15, 2008, 2:33 AM

Search