-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcc_checker.py
executable file
·38 lines (35 loc) · 1.12 KB
/
cc_checker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## cc_checker.py - Credit Card Checker
# -*- coding: utf-8 -*-
##
import sys
import requests
from bs4 import BeautifulSoup as bs
__date__ = "29-July-2018"
__author__ = "DedSecTL/DTL"
__team__ = "BlackHole Security"
__codename__ = "Validate the CC!!"
__banner__ = """
################################################
# Credit Card Checker #
# BlackHole Security #
# 29 - July - 2018 #
################################################
"""
def cc_checker(list):
for cc in open(list, 'r').read().split():
r = requests.get('http://validate.creditcard/number/'+cc+'/')
if "Congratulations!" in r.text:
print "[*] CC :",cc
print "[*] Status :",bs(r.text, 'html5lib').find('h2').text+"\n"
elif "Formatting Error" in r.text:
print "[*] CC :",cc
print "[*] Status :",bs(r.text, 'html5lib').find('h3').text+"\n"
else:
print "[*] CC :",cc
print "[*] Status :",bs(r.text, 'html5lib').find('h2').text+"\n"
if __name__ == '__main__':
print __banner__
if len(sys.argv) != 2:
print "Usage: cc_checker creditcardlist.txt"
else:
cc_checker(sys.argv[1])