Author Topic: lockdown source  (Read 11053 times)

0 Members and 2 Guests are viewing this topic.

Offline Rob

  • Newbie
  • *
  • Posts: 2
    • View Profile
lockdown source
« on: July 30, 2007, 01:47:37 am »
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
 

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: lockdown source
« Reply #1 on: July 30, 2007, 07:15:59 am »
Want to tell us what this does? I thought iago's was fully functional..
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: lockdown source
« Reply #2 on: July 30, 2007, 10:09:37 am »
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 :)

Offline Rob

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: lockdown source
« Reply #3 on: July 30, 2007, 10:39:25 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.

Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: lockdown source
« Reply #4 on: August 02, 2007, 08:32:26 am »
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.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: lockdown source
« Reply #5 on: August 02, 2007, 07:31:58 pm »
Keep in mind that a struct is a class with all public variables :P

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: lockdown source
« Reply #6 on: August 02, 2007, 09:08:07 pm »
And a complete lack of methods :P

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: lockdown source
« Reply #7 on: August 02, 2007, 09:28:37 pm »
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. :)

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: lockdown source
« Reply #8 on: August 02, 2007, 10:15:31 pm »
C++ fails though.  Why would anyone use it?  Structs are structs, classes are classes.  Let's leave it at that, k?

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: lockdown source
« Reply #9 on: August 02, 2007, 10:42:46 pm »
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.

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: lockdown source
« Reply #10 on: August 03, 2007, 12:04:28 am »
Simulate something? in java? How absurd!

Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: lockdown source
« Reply #11 on: August 03, 2007, 12:55:21 am »
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.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: lockdown source
« Reply #12 on: August 05, 2007, 03:36:49 pm »
Using too much memory? In java? How absurd!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: lockdown source
« Reply #13 on: August 05, 2007, 03:41:33 pm »
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.

Offline Hdx

  • The Hdx!
  • Full Member
  • ***
  • Posts: 311
  • <3 Java/Cpp/VB/QB
    • View Profile
Re: lockdown source
« Reply #14 on: August 05, 2007, 11:00:18 pm »
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.