Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.