BASH – Credit card number generators

Today I want to share a simple command line utility, used to generate random and valid credit cards number for:

- Visa
- Visa13Digit
- MasterCard
- Discover
- AmericanExpress
- DinersClubUSA
- DinersClubCanada
- DinersClubInternational
- DinersClubCarteBlanche
- JCB

How it works?

Is a command line tool, for macOS / unix:

[~]$ ccard
Credit Card number generator v1.0

Card Types:
	 - Visa
	 - Visa13Digit
	 - MasterCard
	 - Discover
	 - AmericanExpress
	 - DinersClubUSA
	 - DinersClubCanada
	 - DinersClubInternational
	 - DinersClubCarteBlanche
	 - JCB

Usage: cc --type cardType

[~]$

To generate a new credit card number simply write:

[~]$ ccard --type AmericanExpress
AmericanExpress: 346587972909807
[~]$

The code is on GitHub, so feel free to clone, open merge requests or download the executable.

Enjoy with numbers!

 

Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.