| 1   2     3   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Resetting lock code issues (https://talk.maemo.org/showthread.php?t=54465)

yamanote 2010-05-29 17:07

Resetting lock code issues
 
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 (:eek:)?

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,

vldcnst 2010-05-29 19:56

Re: Resetting lock code issues
 
Either you did not run that command as root (see http://wiki.maemo.org/Root_access) or the file system has been corrupted.

arne.anka 2010-05-29 20:03

Re: Resetting lock code issues
 
Quote:

Originally Posted by yamanote (Post 688330)
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.

anaskr 2010-05-29 20:07

Re: Resetting lock code issues
 
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 !!

yamanote 2010-05-30 05:58

Re: Resetting lock code issues
 
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.

yamanote 2010-05-30 10:36

Re: Resetting lock code issues
 
Quote:

Originally Posted by vldcnst (Post 688592)
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...

yamanote 2010-05-31 14:19

Re: Resetting lock code issues
 
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)

maddler 2010-05-31 14:38

Re: Resetting lock code issues
 
try with:
grep -A 13 lock_code /dev/mtd1| tail -1 > /home/user/MyDocs/old_lockcode

yamanote 2010-06-01 14:52

Re: Resetting lock code issues
 
In a root shell?

R-R 2010-06-01 15:26

Re: Resetting lock code issues
 
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)


| 1   2     3   | Next
All times are GMT. The time now is 09:48.

vBulletin® Version 3.8.8