Skip to content

Recovers the restrictions passcode on iOS devices from an iTunes backup

License

Notifications You must be signed in to change notification settings

almoorthi/pinfinder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Restrictions Pin Finder

Build Status

pinfinder is a small application which attempts to to find the restrictions passcode for an iOS device (iPhone, iPad or iPod touch) by brute force examination of its iTunes backup, without needing to jailbreak the device.

It was written after the PIN was forgotten for a kid's iPod Touch and wiping it would of been more work than writing this little program.

NOTE: This program will not help you unlock a locked device - It can only help recover the restrictoins passcode as found in Settings -> General -> Restrictions. More information about Restrictions can be found at Apple's web site.

Download

Binaries for Linux, Mac and Windows can be found at the latest releases page.

Usage

Operating-specifc instructions are below. In most cases, simply running the program (working around OS specific security restrictions) should deliver the right result. Take a look at the Troubleshooting section if you run into issues.

By default, it will print out the passcode for all devices it can find an unencrypted backup for, displaying the most recently backed up first.

Windows

  1. Backup the device using iTunes on a desktop computer. NOTE: The "encrypt backup" option must be disabled in iTunes.
  2. Download pinfinder from the latest releases page.
  3. Select "Open" when prompted by the web browser
  4. Drag pinfinder from the .zip file to the Desktop

For Windows XP/Vista

Double click the pinfinder icon to run the program

For Windows 7, 8 or 10

  • Right-click on the start button, and select Command Prompt
  • Drag the pinfinder icon from the Desktop to the command prompt window, and press return to run it.

Windows screen grab demo

click here for full size version of above image

Mac

  1. Backup the device using iTunes on a desktop computer. NOTE: The "encrypt backup" option must be disabled in iTunes.
  2. Download pinfinder from the latest releases page.
  3. Select the tar.gz file in the download list to open it
  4. Right-click on pinfinder and select Open With -> Terminal - You will receive a warning about the program being written by an unknown developer, which you'll need to accept to use it.

mac screen grab demo

click here for full size version of above image

Linux

Download, extract and run the binary.

$ ./pinfinder
PIN Finder 1.3.0
http://github.com/gwatts/pinfinder

IOS DEVICE                                BACKUP TIME                RESTRICTIONS PASSCODE
John Doe’s iPad Mini                      Nov 25, 2015 01:39 PM PST  1234
John Doe's iPhone 6                       Nov 25, 2015 12:15 PM PST  3456
John Doe's iPhone 5S                      Sep 19, 2014 03:57 PM PDT  No passcode found

Troubleshooting

By default the program will look for the restrictions passcode for every device that has been backed up, and return results of the most recently backed up first.

You can also specify the backup directory explicitly on the command line to examine the backup for a single device:

On Mac it will be in the home directory as /Library/Application Support/MobileSync/Backup/ eg.

/Users/johndoe/Library/Application\ Support/MobileSync/Backup/51957b68226dbc9f59cb5797532afd906ba0a1f8

On Windows Vista or later it will be something like:

\Users\John Doe\AppData\Roaming\Apple Computer\MobileSync\Backup

Use whatever directory is the latest as the argument to pinfinder:

$ pinfinder /Users/johndoe/Library/Application\ Support/MobileSync/Backup/51957b68226dbc9f59cb5797532afd906ba0a1f8

The program will find the plist containing the hashed version of the passcode and will then find the passcode that matches that hash (which can then be used with your device). It shouldn't take more than a few seconds to run.

If the program fails to find the passcode for your device, and you're sure it's searching the right backup, please open an issue and copy and paste the text the program prints in the issue so I can help.

Compiling this program

If you don't want to use one of the pre-compiled binaries you can compile it yourself.

  1. Download and install Go
  2. run go install github.com/gwatts/pinfinder

Other resources

Inspired with thanks by information found here:

https://nbalkota.wordpress.com/2014/04/05/recover-your-forgotten-ios-7-restrictions-pin-code/

Other Notes

Last tested with iOS 8 through 9.2 on OS X 10.10, 10.11, Windows XP and Windows 8 with iTunes 12.3

About

Recovers the restrictions passcode on iOS devices from an iTunes backup

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%