Reply
Thread Tools
Posts: 11 | Thanked: 0 times | Joined on May 2010
#1
Hey,

I bought a used Nokia N900 from a local phone store. It came with the box with matching IMEIs so no it wasn't stolen.

When I tried resetting all settings, it asked for a passcode. Found that the default code was 12345 but it didn't work. Rang up the store and they swear that the code was 12345 when the previous owner sold it [to them] and I must have set it by myself ()?

Okay, no problem. Followed the instructions here and when I get to the bit where I enter the line in xterm to get the DES hash I get stuck.

I tried in the console in winscp but that, after entering the code, showed 'root::'. Thinking it was an error I tried this line in xterm:

Code:
echo root:$(grep -A 13 lock_code /dev/mtd1|tail -1): > /home/user/MyDocs/old_lockcode
The resulting file, when opened in Notepad, also shows 'root::' as well (thus, John the Ripper cannot 'crack' the code).

N900, running Maemo 5 version 10.2010.19-1. Hong Kong official version which I believe is the same as the Global variant.

Cheers,

Last edited by yamanote; 2010-05-29 at 17:43.
 
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Romania
#2
Either you did not run that command as root (see http://wiki.maemo.org/Root_access) or the file system has been corrupted.

Last edited by vldcnst; 2010-05-29 at 20:08.
 

The Following User Says Thank You to vldcnst For This Useful Post:
Posts: 198 | Thanked: 76 times | Joined on Mar 2010
#3
Originally Posted by yamanote View Post
I tried in the console in winscp but that, after entering the code, showed 'root::'. Thinking it was an error I tried this line in xterm:

Code:
echo root:$(grep -A 13 lock_code /dev/mtd1|tail -1): > /home/user/MyDocs/old_lockcode
looks, like the grep does not return anything.
try to execute the command separately:

grep -A 13 lock_code /dev/mtd1

and check if it returns something.
you most likely need to be root, as pointed out already.
 

The Following User Says Thank You to arne.anka For This Useful Post:
Posts: 190 | Thanked: 19 times | Joined on May 2010
#4
dude call the guy who sold it !! i have had some problems like that when i flashed my phone 2-3 times due to some other reason !! an i tried 12345 even after flashing!! but then i tried the code in root still waste!! then i suddenly thought my previous code which i made and it worked !!

hope so this helps if nothing else works !! you need to ask the guy what the code was !!
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#5
After running

Code:
grep -A 13 lock_code /dev/mtd1
in a root shell the following is output:

Code:
lock_code


?????,


12345

_ _

lock_code



(


*

:j?\?
The '?'s a diamond-shaped icons with a ? 'inside' them.

Then I tried the original script

Code:
echo root:$(grep -A 13 lock_code /dev/mtd1|tail -1): > /home/user/MyDocs/old_lockcode
in root this time. The resulting file, when opened in Notepad, also shows 'root::'.

@anaskr I don't know who sold it to the shop. The shop swears that the code was 12345 when they sold it to me. Not sure how I'm going to contact the original owner.
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#6
Originally Posted by vldcnst View Post
Either you did not run that command as root (see http://wiki.maemo.org/Root_access) or the file system has been corrupted.
I just reflashed both the eMMC and the main memory before trying to hack the code. Is it likely that the flash corrupted something? Everything else seems to be fine...
 
Posts: 11 | Thanked: 0 times | Joined on May 2010
#7
No one? Last resort would be to take it to Nokia Care... but I'd prefer not to (why should I have to pay just to find the code)
 
Posts: 68 | Thanked: 16 times | Joined on Feb 2007
#8
try with:
grep -A 13 lock_code /dev/mtd1| tail -1 > /home/user/MyDocs/old_lockcode
 

The Following User Says Thank You to maddler For This Useful Post:
Posts: 11 | Thanked: 0 times | Joined on May 2010
#9
In a root shell?
 
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#10
uhm that's the one liner i originally wrote to help people recover... maybe the HK version has it's code placed somewhere else... try to play with -A 50 or -B 50 and see if you can spot a 13 caracter long string with [a-z][A-Z] and maybe "." and other chars...

But in any case it has to be 13 chars long...(DES)
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:13.