/Teensy-Android-Pin-BruteForcer

a BruterForcer for Teensy, works with 4 and 5 digit pins, tested on Android 4.4.2. and Teensy 2.0, but it works on any kind of Teensy, it does not work on new versions of android with temporal blocks that increase according to the attempts

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Teensy-Pin-BruteForcer

a BruterForcer for Teensy, works with 4 and 5 digit pins, tested on Android 4.4.2. and Teensy 2.0, but it works on any kind of Teensy, it does not work on new versions of android with temporal blocks that increase according to the attempts.


Alt text


Although now the Android versions tested are obsolete, in my daily experience as a technician I often fall into old models which require me to bypass the pin. Needless to say, the manual operation is boring at best, and not feasible in most ... Although I have to say that I manually solved about one in five cases, simply using the list of the most used pin or screen lock that you can find here:


https://github.com/JonnyBanana/The-Most-Common-Passwords-Pin-e-ScreenLocks


However, I decided to make this simple code to automate a very boring process ...


Requirements

-Teensy Board
-Otg Adapter
-Micro usb Cable


Compatibility

-Android 4.4.2 or lower (maybe even on some android 5.0 models)
-Teensy 2.0 or higher


How it works???

To realize these scripts I took inspiration from the following articles and codes:

https://jumpespjump.blogspot.com/2013/06/online-brute-forcing-android-pin-lock.html

https://github.com/pissedoffadmins/site_scripts/blob/master/4pin_brute.ino


These examples from which I started but they just try all the possible combinations from 0 to 9999 (in the case of the 4 digit pin), I wanted to optimize the code a little, so as to optimize in most cases the timing of the attack.


4 Digit PIN Attack

The code then performs the following attempts:

  • try the twenty most used combinations
  • try all dates from 1900 to 2019
  • try all dates in reverse from 1900 to 2019 (0091 - 9102)
  • if three others have not been successful, try a brute force attack

5 Digit PIN Attack

The code then performs the following attempts:

  • try the twentyfive most used combinations
  • if two others have not been successful, try a brute force attack

Some Math...

So how long does this attack take?


Alt text


In the above gif it takes two seconds, but of course I have specially inserted one of the 20 most
used pins for demonstration purposes, in reality things are a bit different ...

A few lengths in comparison:

-4 digits, 10000tries, 18.4 hours
-5 digits, 100000tries, 7.7 days
-6 digits, 1000000tries, 77.3 days

It can be inferred why I did not even create the script for the 6 digit pins ...

If you are having trouble charging the battery, you can use a triple otg cable with charging adapter like this:


Alt text


Cheap Otg Adapter


The script was written for Teensy 2, but adapt it to other Teensy and very easy and just change a single line of code,
I left the comments in the code:


Alt text


Alt text