Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

This Python script generates valid Payment Card Numbers (PANs) using a reverse-engineered Luhn algorithm. It's a command-line tool allowing specification of the desired suffix and length of the generated PAN. This tool is for educational and testing purposes only; misuse is strictly prohibited.

License

Notifications You must be signed in to change notification settings

gbburleigh/quick-pans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luhn PAN Generator

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.

How it works

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.

Usage

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.
  • -v or --verbose: Optional flag to enable verbose output.

Example

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.

Installation

Run pip install -r requirements.txt to install the dependencies.

Contributing

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.

License

This project is licensed under the MIT License.

About

This Python script generates valid Payment Card Numbers (PANs) using a reverse-engineered Luhn algorithm. It's a command-line tool allowing specification of the desired suffix and length of the generated PAN. This tool is for educational and testing purposes only; misuse is strictly prohibited.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages