Clan x86
Technical (Development, Security, etc.) => General Programming => Botdev => Topic started by: Rob 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
-
Want to tell us what this does? I thought iago's was fully functional..
-
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, 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.
-
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
-
Keep in mind that a struct is a class with all public variables :P
-
And a complete lack of methods :P
-
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. :)
-
C++ fails though. Why would anyone use it? Structs are structs, classes are classes. Let's leave it at that, k?
-
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.
-
Simulate something? in java? How absurd!
-
Thats what I did. But it makes copis of each value, increasing the memory usage.
-
Using too much memory? In java? How absurd!
-
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.
-
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
-
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.
I forget -- is Java interpreted or JIT compiled?
-
Interpreted :\
-
Both.
-
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.
Java actually uses less memory than equivalent web languages in the web server context (at least compared to CGI and ASP.NET, I can't compare to PHP since I haven't used it significantly). One VM with many processes is significantly more efficient than a single process for every session.
-
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.
Java actually uses less memory than equivalent web languages in the web server context (at least compared to CGI and ASP.NET, I can't compare to PHP since I haven't used it significantly). One VM with many processes is significantly more efficient than a single process for every session.
At least in the context of web progreamming, I'd say that for ASP .NET you trade memory consumption for functionality. In my opinion, the tools you get to work with in ASP .NET are also far superior to any offering I've seen for Java.
-
http://dan.corlan.net/bench.html
Although, I'm not sure how accurate, or current that is. I seem to remember seeing one that ranked Python fairly high on the charts. Python is also at version 2.5, and not 2.1 anymore (lol). I seem to remember Python ranking faster than Java, and PHP being the slowest of the three.
-
Bad link
-
ah, lame - it worked on the 8th, i swear! :p
-
Worked then and still works for me.
-
Yeah, it's working for me again (wasn't earlier). What kind of loser runs a server that isn't on 24/7? :)