Skip to content

Commit 0483d47

Browse files
committed
Refactoring and pyinstaller
1 parent be20a10 commit 0483d47

28 files changed

+447
-462
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.pyc
2+
__pycache__/
3+
venv/
4+
5+
build/
6+
dist/
7+
8+
pins.db

README.md

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# iOS Restriction Passcode Brute Force
1+
# iOS Restriction Passcode Brute Force ![Version](https://img.shields.io/badge/Version-2.0.0-blue.svg?style=flat-square)
22

3-
[![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)
3+
[![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)
44

55
## Overview
66

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

1111
## DEPENDENCIES
1212

13-
This has been tested with [Python 2.7](https://www.python.org/downloads/release/python-2714/)
13+
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/)
1414

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

1717
## How to Use
1818

19-
1. Clone repository
19+
1. Clone repository
2020

21-
```bash
22-
git clone https://github.com/thehappydinoa/iOSRestrictionBruteForce && cd iOSRestrictionBruteForce
23-
```
21+
```bash
22+
git clone https://github.com/thehappydinoa/iOSRestrictionBruteForce && cd iOSRestrictionBruteForce
23+
```
2424

25-
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
25+
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
2626

27-
3. Run `ioscrack.py` with the webserver option
27+
3. Run `ioscrack.py` with the auto option
2828

29-
```
30-
python ioscrack.py -w
31-
```
29+
python ioscrack.py -a
3230

3331
![GIF](docs/ioscrack.gif)
3432

3533
## Usage
3634

3735
```bash
38-
usage: iOSCrack.py [-h] [-v] [-a] [-c] [-w] [-b folder]
36+
usage: iOSCrack.py [-h] [-a] [-c] [-b folder]
3937
4038
a script which is used to crack the restriction passcode of an iPhone/iPad
4139
through a flaw in unencrypted backups allowing the hash and salt to be
4240
discovered
4341
4442
optional arguments:
4543
-h, --help show this help message and exit
46-
-v, --verbose increase output verbosity
4744
-a, --automatically automatically finds and cracks hashes
4845
-c, --cli prompts user for input
49-
-w, --webserver creates webserver running flask
5046
-b folder, --backup folder
5147
where backups are located
5248
```
@@ -55,40 +51,42 @@ optional arguments:
5551

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

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

60-
2. Trys birthdays between 1900-2017
56+
2. Trys birthdays between 1900-2017
6157

62-
3. Brute force pins from 1 to 9999
58+
3. Brute force pins from 1 to 9999
59+
60+
4. Adds successful pin to local database
6361

6462
## How to Protect Against
6563

66-
1. Encrpyt backups
64+
1. Encrpyt backups
6765

68-
2. Backup only on trusted computers
66+
2. Backup only on trusted computers
6967

7068
## Contributing
7169

7270
Best ways to contribute
7371

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

7977
## Promotion
8078

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

83-
- Star this repo on [GitHub](action:files#disambiguate)
84-
- Follow me
81+
- Star this repo on [GitHub](action:files#disambiguate)
82+
- Follow me
8583

86-
- [Twitter](https://twitter.com/thehappydinoa)
87-
- [GitHub](https://github.com/thehappydinoa)
84+
- [Twitter](https://twitter.com/thehappydinoa)
85+
- [GitHub](https://github.com/thehappydinoa)
8886

8987
## Acknowledgments
9088

91-
- [yuejd](https://github.com/yuejd)
89+
- [yuejd](https://github.com/yuejd)
9290

9391
## LICENSE
9492

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pyinstaller

docs/398bc9c2aeeab4cb0c12ada0f52eea12cf14f40b

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</data>
99
<key>RestrictionsPasswordSalt</key>
1010
<data>
11-
gdJ0YA==
11+
osz+8g==
1212
</data>
1313
</dict>
1414
</plist>
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plist version="1.0">
3-
<dict>
4-
<key>RestrictionsPasswordKey</key>
5-
<data>
6-
r3JS9BgcHea1hxFIeAAR7z0Il2w=
7-
</data>
8-
<key>RestrictionsPasswordSalt</key>
9-
<data>
10-
gdJ0YA==
11-
</data>
12-
</dict>
13-
</plist>
3+
<dict>
4+
<key>RestrictionsPasswordKey</key>
5+
<data>
6+
r3JS9BgcHea1hxFIeAAR7z0Il2w=
7+
</data>
8+
<key>RestrictionsPasswordSalt</key>
9+
<data>
10+
osz+8g==
11+
</data>
12+
</dict>
13+
</plist>

0 commit comments

Comments
 (0)