This Python script generates valid Payment Card Numbers (PANs) by brute forcing the Luhn algorithm. It's a command-line tool that allows you to specify the desired suffix and length of the generated PAN.
Disclaimer: This tool is for educational and testing purposes only. Generating and using fake PANs for fraudulent activities is illegal and unethical. Use this tool responsibly.
The Luhn algorithm (also known as the "modulus 10" or "mod 10" algorithm) is a simple checksum formula used to validate identification numbers, such as credit card numbers. This script works by taking a provided suffix and desired length, calculating the necessary check digit to make the resulting number valid according to the Luhn algorithm.
The script is executed from the command line using the following format:
python3 pan.py [suffix] [length] [--verbose or -v]suffix: The suffix of the PAN to be generated.length: The desired length of the PAN.-vor--verbose: Optional flag to enable verbose output.
python3 pan.py 1234 16- This will generate a PAN with the suffix "1234" and a length of 16.
python3 pan.py "" 19- This will generate a PAN of length 19 with no specific suffix.
python3 pan.py 56 15 -v- This will generate a PAN of length 15 with the suffix "56" and verbose output.
Run pip install -r requirements.txt to install the dependencies.
Contributions are welcome! If you find a bug, have an idea for an improvement, or want to add a new feature, please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License.