Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created July 26, 2017 08:37
Show Gist options
  • Save random-robbie/01fc683b3cd6c774b5539cded8aa7811 to your computer and use it in GitHub Desktop.
Save random-robbie/01fc683b3cd6c774b5539cded8aa7811 to your computer and use it in GitHub Desktop.
Credit Card Number Generator
#### Credit Card Generator
#### Made By Random_Robbie
####
#### For testing Websites the data here is scraped from a website and the numbers and details are randomly generated no data is real!!
####
import requests
import re
### Grab Data from http://credit-card-generator.2-ee.com/
session = requests.Session()
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0","Connection":"close","Accept-Language":"en-US,en;q=0.5","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Upgrade-Insecure-Requests":"1"}
response = session.get("http://credit-card-generator.2-ee.com/", headers=headers)
type = re.compile("type: <b>(.+?)</b><br>").findall(response.text)[0]
number = re.compile("number: <b>(.+?)</b><br>").findall(response.text)[0]
cvv = re.compile("cvv: <b>(.+?)</b><br>").findall(response.text)[0]
exp = re.compile("exp: <b>(.+?)</b><br>").findall(response.text)[0]
name = re.compile("name: <b>(.+?)</b></p>").findall(response.text)[0]
print ("[*] Name: "+name+"")
print ("[*] Type: "+type+"")
print ("[*] Number: "+number+"")
print ("[*] CVV: "+cvv+"")
print ("[*] Exp: "+exp+"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment