• Welcome to Valhalla Legends Archive.
 

Local Lockdown only possible on windows machines?

Started by ThePro, July 15, 2009, 09:24 AM

Previous topic - Next topic

ThePro

Currently I'm trying to write a python lib for handling the lockdown for Starcraft locally.
One problem is, that I couldn't find any documentation about the lockdown system, so I downloaded the c sourcecode of skull securtiy, where it is implementated.

When Checkrevision is called, it opens the dll file (lockdown-IX86-xx.dll) using LoadLibrary. On a linux machines this will not work, so am I fucked now, or is there still a way?

MyndFyre

I won't speak for other people's implementations, and C# isn't going to be portable to Python more than likely, but my C# implementation of Lockdown imports the necessary PE file headers and would run on non-Windows platforms because it performs all of the loading on its own.

It's certainly possible to do without LoadLibrary().
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Hdx

As MyndFyre has said, All you would have to do is implement the proper PE loading procedures yourself and it's perfectly feasible to run lockdown on any other OS. JBLS does it, pretty badly I may add, but, it does it. Learn how it interacts with PE files, you'll be glad you did.
I'm pretty sure the reason the C code on Ron's site uses LoadLibrary() is that it would be stupid to re-implement that part if you didn't have to.

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Rob

Rob@USEast

aton

rob, your code segfaults on 64 bit linux, i posted that already i think