Skip to content

Commit

Permalink
Refactoring and pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
thehappydinoa committed May 14, 2018
1 parent be20a10 commit 0483d47
Show file tree
Hide file tree
Showing 28 changed files with 447 additions and 462 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.pyc
__pycache__/
venv/

build/
dist/

pins.db
56 changes: 27 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# iOS Restriction Passcode Brute Force
# iOS Restriction Passcode Brute Force ![Version](https://img.shields.io/badge/Version-2.0.0-blue.svg?style=flat-square)

[![Python2.7](https://img.shields.io/badge/Python-2.7-orange.svg?style=flat-square)](https://www.python.org/downloads/release/python-2714/) ![OS](https://img.shields.io/badge/Works%20On-Linux%20|%20macOS%20|%20Windows%20-green.svg?style=flat-square) ![iOS](https://img.shields.io/badge/Tested%20On%20iOS-9.3.5%20|%2010.0.1%20|%2011.2.1-green.svg?style=flat-square) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Code Climate](https://img.shields.io/codeclimate/maintainability/thehappydinoa/iOSRestrictionBruteForce.svg?style=flat-square)](https://codeclimate.com/github/thehappydinoa/iOSRestrictionBruteForce) [![Twitter](https://img.shields.io/twitter/follow/thehappydinoa.svg?style=flat-square&label=Follow%20Me&logo=twitter)](https://twitter.com/thehappydinoa)
[![Python](https://img.shields.io/badge/Python-2.7%20&%203.6-orange.svg?style=flat-square)](https://www.python.org/downloads/release/python-2714/) ![OS](https://img.shields.io/badge/Works%20On-Linux%20|%20macOS%20|%20Windows%20-green.svg?style=flat-square) ![iOS](https://img.shields.io/badge/Tested%20On%20iOS-9.3.5%20|%2010.0.1%20|%2011.2.1-green.svg?style=flat-square) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![Code Climate](https://img.shields.io/codeclimate/maintainability/thehappydinoa/iOSRestrictionBruteForce.svg?style=flat-square)](https://codeclimate.com/github/thehappydinoa/iOSRestrictionBruteForce)

## Overview

Expand All @@ -10,43 +10,39 @@ This version of the application is written in Python, which is used to crack the

## DEPENDENCIES

This has been tested with [Python 2.7](https://www.python.org/downloads/release/python-2714/)
This has been tested with [Python 2.7](https://www.python.org/downloads/release/python-271/) and [Python 3.6](https://www.python.org/downloads/release/python-365/)

Requires [Passlib](https://passlib.readthedocs.io/en/stable/) Install with `pip install passlib`

## How to Use

1. Clone repository
1. Clone repository

```bash
git clone https://github.com/thehappydinoa/iOSRestrictionBruteForce && cd iOSRestrictionBruteForce
```
```bash
git clone https://github.com/thehappydinoa/iOSRestrictionBruteForce && cd iOSRestrictionBruteForce
```

2. Make sure to use [iTunes](https://www.apple.com/itunes/download/) or [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice) to backup the iOS device to computer
2. Make sure to use [iTunes](https://www.apple.com/itunes/download/) or [libimobiledevice](https://github.com/libimobiledevice/libimobiledevice) to backup the iOS device to computer

3. Run `ioscrack.py` with the webserver option
3. Run `ioscrack.py` with the auto option

```
python ioscrack.py -w
```
python ioscrack.py -a

![GIF](docs/ioscrack.gif)

## Usage

```bash
usage: iOSCrack.py [-h] [-v] [-a] [-c] [-w] [-b folder]
usage: iOSCrack.py [-h] [-a] [-c] [-b folder]
a script which is used to crack the restriction passcode of an iPhone/iPad
through a flaw in unencrypted backups allowing the hash and salt to be
discovered
optional arguments:
-h, --help show this help message and exit
-v, --verbose increase output verbosity
-a, --automatically automatically finds and cracks hashes
-c, --cli prompts user for input
-w, --webserver creates webserver running flask
-b folder, --backup folder
where backups are located
```
Expand All @@ -55,40 +51,42 @@ optional arguments:

Done by using the [pbkdf2](http://www.ietf.org/rfc/rfc2898.txt) hash with the Passlib python module

1. Trys the [top 20 four-digit](http://www.datagenetics.com/blog/september32012/index.html) pins
1. Trys the [top 20 four-digit](http://www.datagenetics.com/blog/september32012/index.html) pins

2. Trys birthdays between 1900-2017
2. Trys birthdays between 1900-2017

3. Brute force pins from 1 to 9999
3. Brute force pins from 1 to 9999

4. Adds successful pin to local database

## How to Protect Against

1. Encrpyt backups
1. Encrpyt backups

2. Backup only on trusted computers
2. Backup only on trusted computers

## Contributing

Best ways to contribute

- Star it on GitHub - if you use it and like it please at least star it :)
- [Promote](#promotion)
- Open [issues](https://github.com/thehappydinoa/iOSRestrictionBruteForce/issues)
- Submit fixes and/or improvements with [Pull Requests](http://makeapullrequest.com)
- Star it on GitHub - if you use it and like it please at least star it :)
- [Promote](#promotion)
- Open [issues](https://github.com/thehappydinoa/iOSRestrictionBruteForce/issues)
- Submit fixes and/or improvements with [Pull Requests](http://makeapullrequest.com)

## Promotion

Like the project? Please support to ensure continued development going forward:

- Star this repo on [GitHub](action:files#disambiguate)
- Follow me
- Star this repo on [GitHub](action:files#disambiguate)
- Follow me

- [Twitter](https://twitter.com/thehappydinoa)
- [GitHub](https://github.com/thehappydinoa)
- [Twitter](https://twitter.com/thehappydinoa)
- [GitHub](https://github.com/thehappydinoa)

## Acknowledgments

- [yuejd](https://github.com/yuejd)
- [yuejd](https://github.com/yuejd)

## LICENSE

Expand Down
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller
2 changes: 1 addition & 1 deletion docs/398bc9c2aeeab4cb0c12ada0f52eea12cf14f40b
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</data>
<key>RestrictionsPasswordSalt</key>
<data>
gdJ0YA==
osz+8g==
</data>
</dict>
</plist>
22 changes: 11 additions & 11 deletions docs/398bc9c2aeeab4cb0c12ada0f52eea12cf14f40b.plist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>RestrictionsPasswordKey</key>
<data>
r3JS9BgcHea1hxFIeAAR7z0Il2w=
</data>
<key>RestrictionsPasswordSalt</key>
<data>
gdJ0YA==
</data>
</dict>
</plist>
<dict>
<key>RestrictionsPasswordKey</key>
<data>
r3JS9BgcHea1hxFIeAAR7z0Il2w=
</data>
<key>RestrictionsPasswordSalt</key>
<data>
osz+8g==
</data>
</dict>
</plist>
Loading

0 comments on commit 0483d47

Please sign in to comment.