Care Unlock  
Your online unlock store
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering

GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 05-03-2012, 10:07   #1 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Finding PIN from NAND dump using Python script

I was hoping some clever programmer out there could assist me in finding a pin code from a NAND dump using a Python 3 script.

I came across this blog Bypassing a locked HTC Wildfire S using the JTAG process « copgeek018 and I am somewhat a newbie. I have successfully made my dump but do not know how to execute the script.

If you can help I would greatly appreciate it.

BR
  Reply With Quote
Old 05-03-2012, 12:54   #2 (permalink)
Moderator
 
Gecko_UK's Avatar
 
Join Date: Feb 2009
Posts: 728
Member: 961957
Status: Offline
Sonork: Jabber: gecko@neko.im
Thanks: 206
Thanked 664 Times in 201 Posts
If you've got the NAND dump already, you've done the difficult part


to recovr the pin- install python 3.2.3 with default settings. copy the RecoverAndroidPin.py & BruteForceAndroidPin.py to c:\Python32 . rename your NAND dump "dump.bin" and copy that to this folder as well,

now open up cmd prompt and run the following commands

Code:
cd c:\python32
python.exe RecoverAndroidPin.py -l 5 dump.bin
-l switch is the max number of characters in lock pin to search.
  Reply With Quote
Old 05-04-2012, 07:11   #3 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Hi Gecko UK. Firstly I just want to express my huge thanks for your assistance. Your instructions were dead on and easy. Okay now for my results. It wasn't quite what I thought the outcome would be but I am not discouraged as likely I did missed something and will try an correct it. I entered your command line and this is my screenshot.



The strange thing is I could try using the brute force script but although I have the salt address I still need the hash address which I did not get. Is there something I missed along the way?

Thanks again Gecko for your help.
  Reply With Quote
Old 05-05-2012, 08:03   #4 (permalink)
No Life Poster
 
Join Date: Jun 2004
Age: 28
Posts: 986
Member: 67927
Status: Online
Thanks: 8
Thanked 33 Times in 25 Posts
Try changing the number 5 to something higher like 6, 7 or 8. I think this means the pin code is not <=5
  Reply With Quote
Old 05-05-2012, 10:39   #5 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Yeah I tried 1 through 16 and nothing changed but thanks for the advice.
  Reply With Quote
Old 05-05-2012, 22:20   #6 (permalink)
Moderator
 
Gecko_UK's Avatar
 
Join Date: Feb 2009
Posts: 728
Member: 961957
Status: Offline
Sonork: Jabber: gecko@neko.im
Thanks: 206
Thanked 664 Times in 201 Posts
you sure it's a pin not pattern?

if it's pattern copy both Android_GestureFinder.py and GenerateAndroidGestureRainbowTable.py to c:\Python32 then run

Code:
cd c:\python32
python.exe GenerateAndroidGestureRainbowTable.py
(wait some time for rainbow table to be generated)
python.exe Android_GestureFinder.py dump.bin
if it's a pin and you are sure you've dumped the nand correctly you can try extracting /data/system/password.key from dump and then using bruteforce to crack it since you already got the salt. like below

Code:
cd c:\python32
python.exe BruteForceAndroidPin.py [HASH] [SALT] [MAX PIN LENGTH]
  Reply With Quote
Old 05-07-2012, 10:01   #7 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Yes, I am pretty confident it's a PIN. When I turn on the phone it just ask for PIN no pattern. I did try your recommendation anyway and tried to recover a pattern unlock with your python commands but it came back with no find.

Sorry to ask for more help with this but how to extract /data/system/password.key hash from my dumped file.

Thanks Gecko
  Reply With Quote
Old 05-08-2012, 04:09   #8 (permalink)
Moderator
 
Gecko_UK's Avatar
 
Join Date: Feb 2009
Posts: 728
Member: 961957
Status: Offline
Sonork: Jabber: gecko@neko.im
Thanks: 206
Thanked 664 Times in 201 Posts
Quote:
Yes, I am pretty confident it's a PIN. When I turn on the phone it just ask for PIN no pattern. I did try your recommendation anyway and tried to recover a pattern unlock with your python commands but it came back with no find.

Sorry to ask for more help with this but how to extract /data/system/password.key hash from my dumped file.

Thanks Gecko
parseafphysical.py -n dump.bin..

https://viaforensics.com/?fid=parseAFPhysical.py
  Reply With Quote
Old 05-08-2012, 09:06   #9 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Okay so I downloaded the parseafphysical.py script and copied it to C:
Python32 folder. I ran the script exactly as you typed it but nothing happens. It just goes back to C:\Python32>

I'm certain my dump is good (528MB) and can view in a hex editor. What did I do wrong?

  Reply With Quote
Old 05-08-2012, 09:52   #10 (permalink)
No Life Poster
 
Join Date: Mar 2010
Location: Romania
Age: 29
Posts: 525
Member: 1254271
Status: Offline
Thanks: 43
Thanked 200 Times in 66 Posts
Quote:
Originally Posted by cracker_jack View Post
Okay so I downloaded the parseafphysical.py script and copied it to C:
Python32 folder. I ran the script exactly as you typed it but nothing happens. It just goes back to C:\Python32>

I'm certain my dump is good (528MB) and can view in a hex editor. What did I do wrong?

Remove those .. ( dots ) and leave only
Quote:
parseafphysical.py -n dump.bin
  Reply With Quote
Old 05-08-2012, 10:29   #11 (permalink)
No Life Poster
 
Join Date: Jul 2004
Posts: 511
Member: 72951
Status: Offline
Thanks: 105
Thanked 61 Times in 48 Posts
Yeah I tried that it didn't change anything.
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
thread Thread Starter Forum Replies Last Post
where to find a working program all they have some errors ?? fondas Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 2 12-12-2012 12:26
Eeprom dump lost, help needed. CAMILO Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 6 11-29-2010 18:04
Ringtones from the charts and new Links GM GSM Mobile Links 0 09-26-1999 13:54
FREECALL HACKED SIMS ON SALE FROM FREECELL! FREECELLUK Main Sales Section 0 07-07-1999 23:22
Copy from one 6110 to another Leif Nielsen Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 1 06-10-1999 22:36


All times are GMT +1. The time now is 07:58.



Powered by Searchlight © 2013 Axivo Inc.
- GSM Hosting Ltd. - 1999-2013 -
Page generated in 0.33379 seconds with 11 queries

SEO by vBSEO