As you may have noticed my blog is down and what you see here is the veryold version of it.
I had problems with the provider of my server and he shut down my account.
I’ll now try to bring back my blog with all the latest posts. At least I have a backup
You are currently browsing 0xcb0’s articles.
Marc Lehmann has written a zip Password cracker similar to fzc or zipcrack. It can be used to either bruteforce or try a dictionaty attack on a password protected file.
It’s called fcrackzip and can be found here.
Just follow the instruction given in the Readmefile and compile it. This work’s great for me under 10.5.6 as long as you have X Code installed.
Here’s how I use it:
fcrackzip -b -c aA1 -l 6-8 -v -u file.zip
-b : bruteforce the password
-c : use the following character classes for cracking:
a use all lowercase character
A use all uppercase character
1 use all digits
-l 6-8 : Try passwords between 6 to 8 characters in length
-v be more verbose (this will print out the actual used password)
-u file.zip : Try to decompress first file in file.zip with the generated password.
And when the output starts with ‘PASSWORD FOUND!!!!: pw ==’, I’m happy.
For more command line options see the project page under http://www.goof.com/pcg/marc/fcrackzip.html.
On OS X you can easily decode base64 strings with the openssl command
openssl base64 -d -in <(echo “dGhpcyBpcyBhIHRlc3QKCg==”)
just drop the ‘-d’ if you want to encode things.
I found this here
There is some nice feature called auto-completition in emacs I use to less because the shortcut is real ugly.
At the moment I only work in emacs because I really like it.
Here is the code I put in my ‘~/.emacs’ file so I can use this feature using “Escape”+”Enter”
(define-key global-map (read-kbd-macro "M-RET") 'hippie-expand)
it works great
Marc Liyanage wrote a nice Apple Script which easily allows you to switch from the Finder to the Terminal.
Just download it here and drag the script to the upper free space in the Finder.
Clicking it results in a new Terminal window which location is the same as the Finder location.

Here’s how it looks.
P.S. this works under OS X 10.6
Today I had my first look at javafx. Real nice but you must get used to the syntax.
After 1/2 hour of reading and 1/2 hour of modifying a nice netbeans example (original version from Michal Skvor) i end up with this. Not perfect but it has shown me how the javafx basics work.
screenshot
And after I read this ‘Deploy A Rich Internet Application Developed With JavaFX Technology‘ (another 10 minutes) i was able to deploy it to the web.
If you like it let me know
You can cheat by pressing ‘r’=remove single block. ‘s’=remove more
Source Code can be foundhere
Now I’m sure, it’s been over a week and finally there is no possability to restore anything from the hard drive.
After paying around 160€ for a new smaller main disk the AASP told me that he was not able to save any data and that the hdd even won’t show up in the disk utility.
So what’s the problem with Western Digital HDD’s ? This isn’t the first time I saw an WD disk stop working immediatly without any warnings. If it would be the hard drive of my macbook then ok, this one I carry around a lot. But my iMac is standing at the same position for over 1 1/2 years and wasn’t moved a single time.
this is a dark secret to me ?
what I’ve learned from this ……
BACKUP, daily BACKUP and another daily BACKUP
Imagine you have an hash map where key is an String and value is a integer.
Now you want to sort based on the value of each entry in this hashmap in descanding order.
Here is how I do it:
List<Map.Entry<String, Integer>> list = new Vector<Map.Entry<String, Integer>>(myHashMap.entrySet());
java.util.Collections.sort(list, new Comparator<Map.Entry<String, Integer>>() {
public int compare(Map.Entry<String, Integer> e, Map.Entry<String, Integer> e1) {
return (e.getValue().equals(e1.getValue()) ? 0 : (e.getValue() > e1.getValue() ? 1 : -1));
}});
Now the list contains the sorted entrys from hashmap ‘THashMap myHashMap<String,Integer>’.
Iterate over it or copy it back to ‘myHashMap’ if you need to.
Hope this helps …
Because I have no recent Backup of the big java project I was working I have to decompile the class Files that are in this jar.
I found 3 different java decompilers for mac os x.
- MacJAD (google for Download)
- onyl able to open single class files - JarInspector (http://www.codeland.org/)
+ can open jar files
+ correct
- unable to decompile the anonymous inner classes I use
- seems to be confused by nested catch and try blocks - JD-GUI (http://java.decompiler.free.fr/)
+ can open jar files
+ 90% able to decompiling anonymous inner classes
A big problem all tools share is that if you have nested iterations, for/while loops they all rename the variable you iterate over to ‘i$’. So it’s possible if your code looks like this:
while(iterator.hashNext()) {
...
for(int varA; ....){
for(int varB; ....){.....}
}
...
}
the decompiled code will end up looking this:
while(i$.hashNext()) {
...
for(int i$; ....){
for(int i$; ....){.....}
}
...
}
which isn’t really funny …
My conclusion is that JarInspector seems to be the best but if you need the inner class support use JD-GUI for the parts of the code those are in.
I stoped working yesterday and didn’t try this comercial diskW*** i thought that would be free.
doesn’t look good for my loved iMac, HardDrive doesn’t get detected in FireWire Target mode. Now he’s at the Apple Service provider. I hope I’ll soon get the call that most of the data could be recovered and averything will be fine ….
Meanwhile I’m trying recover the data I could save….
at least the next week I think I’ll only get a mocca cup of sleep ;(

