/py-code-cracker

A simple PIN cracker made in Python 3 with functionality for custom handling of individual possible codes

Primary LanguagePythonMIT LicenseMIT

Simple Python 3 Code Cracker

A simple PIN cracker made in Python 3 with functionality for custom handling of individual possible codes. This is an example which handles such possible codes through a simple if statement, with not much real functionality. However, this very much can be used as a starting point for larger new projects with handlers interacting with other interfaces to test codes.

Features

  • Capacity to (in theory) crack any PIN from 1 to anywhere digits long.

  • A custom code handler callback function for your own method of validation for provided codes.

  • Several PIN cracking methods including one to predict human-made codes.

  • A well-commented code base, acting as an overall good general Python 3 example.

Usage

Getting the Code

You can fork this repository for a new public repository or download the ZIP archive to download it to your device. You can also clone it using HTTPS, SSH or the GitHub CLI, but that's somewhat advanced and unnecessary for this simple example.

Configuration

Once you have this, you can modify some of the code in the main.py to your liking, especially the provided _handle_code function used in the _real_cracker CodeCracker object (it should return a boolean value of whether the code is valid or not, the logic behind it to be made by yourself for any custom use case).

Running

To run this locally, you have to make sure you have Python 3 installed. Then just run py main.py in a command line interface within the directory of this code to run the main file, including any modifications you've made.

License