News:

Holy shit, it's 2018 2019 2020 2021 2022 2023 2024, and the US isn't a fascist country! What a time to be alive.

Main Menu

lockdown source

Started by Rob, July 30, 2007, 01:47:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rob

Based from the code that iago released.

This should work on any x86 system.  Tested on windows/linux/freebsd.

http://www.onlythechosen.com/lockdown-src.zip

Joe

Want to tell us what this does? I thought iago's was fully functional..
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Mine was fully functional, but not especially clean. I got lazy on the last few functions and did a straight asm -> C conversion, with little of the original logic clean/intact.

Rob, do you mind if I mirror that? I'd like to put a link to it in my Wiki, and I don't like linking other people's sites (since stuff sometimes moves around and breaks links).

Maybe Hdx will release his Java version, that'd be sweet :)

Rob

Quote from: iago on July 30, 2007, 10:09:37 AM
Rob, do you mind if I mirror that? I'd like to put a link to it in my Wiki, and I don't like linking other people's sites (since stuff sometimes moves around and breaks links).

I don't mind.  Go ahead and mirror it.

Hdx

http://jbls.org/downloads/JBLS.jar
Hashing/CheckRevisonV3.java
util/PEFiles/*
It's a bit ugly in the PE section, as it got tedious after a while. I'll clean it up eventually but meh. To bad java doesn't have structs :*(
~Hdx
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
[19:59:04.000] <DeadHelp> We don't like customers.
[19:59:05.922] <DeadHelp> They're assholes
[19:59:08.094] <DeadHelp> And they're never right.

iago

Keep in mind that a struct is a class with all public variables :P

rabbit

And a complete lack of methods :P

iago

In C++, I think you can put methods in structs. Of course, C++ isn't a good example of a language. :P

I suppose you could do function pointers, which is basically a method. :)

rabbit

C++ fails though.  Why would anyone use it?  Structs are structs, classes are classes.  Let's leave it at that, k?

iago

There's nothing wrong with C++, it's the language where structs and classes came from, so I think it's a good one to talk about if you want to discuss those.

It would be great to simply it to what you said, but like Hdx said, Java doesn't have structs. However, like I said (and you improved), a struct is just a class with only public member variable and no functions. As a result, you can simulate structs in Java fairly easily.

Chavo

Simulate something? in java? How absurd!

Hdx

Thats what I did. But it makes copis of each value, increasing the memory usage.
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
[19:59:04.000] <DeadHelp> We don't like customers.
[19:59:05.922] <DeadHelp> They're assholes
[19:59:08.094] <DeadHelp> And they're never right.

Joe

Using too much memory? In java? How absurd!
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


iago

Quote from: Joex86/64] link=topic=9889.msg126416#msg126416 date=1186342609]
Using too much memory? In java? How absurd!
Java doesn't use a lot of memory unless you're using a graphical interface, such as Swing. But console Java doesn't use much more memory than equivalent languages.

Hdx

The very basic java app that I wrote that does ntohing but have a single thread and do some math used a whole 8k memory.
It's the fact that I'm loading ~1mb per lockdown, (I should really look and see if I can make that more efficient by useing 1 file.)
And ~20mb in other hashes..
It's pretty gay.
I'll optimize it eventually.
~Hdx
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
[19:59:04.000] <DeadHelp> We don't like customers.
[19:59:05.922] <DeadHelp> They're assholes
[19:59:08.094] <DeadHelp> And they're never right.