View Single Post
Posts: 502 | Thanked: 366 times | Joined on Jun 2010 @ /dev/null
#754
Originally Posted by danielpublic View Post
I had this problem as well, that the N900 default code did not work.
Guess its due to the fact I bought it second hand.

Anyway, this is what I did and you should do in five steps!

1: First of all, we need to get into the device. Lets ssh into it!
Install the ssh's client and server. Now ssh into it with a ssh client for your OS. The user to use is: root

2: Now you should be inside your N900 device, once there we want to get the so called DES hash of the password.

Code:
echo root:$(grep -A 13 lock_code /dev/mtd1|tail -1):
Now you get a output something like this:
root:63NCRYqE75Us0:

3: Copy the output and put it in a file on your computer, named: old_maemo_lock_code

4: Make a search for John the ripper and install it.

5: Open up a terminal and write:
Code:
john -format:DES -i:digits /path/to/old_maemo_lock_code
There, now just wait 5-10 minutes
Thanks to however wrote the post with grep part above!
For those of you who have issues enumerating the lock code because your grep command is broken. You can try this instead (you need either busybox-power installed and/or you have installed GNU package which provides a whole bunch of GNU command line tools including strings):

Code:
echo root:$(strings /dev/mtd1 | grep -A 1 lock_code | tail -1):
You basically substitute:
Code:
echo root:$(grep -A 13 lock_code /dev/mtd1|tail -1):
with the command I suggested which should work.
__________________
 

The Following User Says Thank You to tuxsavvy For This Useful Post: