-
Notifications
You must be signed in to change notification settings - Fork 2
/
bin.py
35 lines (32 loc) · 1.24 KB
/
bin.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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#KILL THE NET
from requests import get
from sys import argv
from prettytable import PrettyTable
def _check_(cc):
p =b= None
T = PrettyTable()
r = get(f"https://lookup.binlist.net/{cc}",
headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36',
"Accept-Version": "3"}).json()
try:
if r["prepaid"]: p = r["prepaid"]
if r["bank"]: b = f'{r["bank"]["name"]}({r["bank"]["url"]})'
except: pass
T.field_names = ['CARD NUM','CARD SCHEME', 'CARD TYPE', 'CARD BRAND', 'CARD PREPAID', 'CARD COUNTRY', 'CARD BANK']
T.add_row([cc,r["scheme"], r["type"], r["brand"], p, f'{r["country"]["name"]}({r["country"]["emoji"]} )', b])
print(T)
if __name__ == '__main__':
while 1:
try:
if len(argv)==2:
if len(argv[1]) >= 6: _check_(argv[1]); break
else:
cc = input("[•] PLEASE PUT THE FIRST 6 DIGITS OF YOUR CARD > ").replace(" ", "")
if len(cc) >= 6: _check_(cc); break
else:
cc = input("[•] PLEASE PUT THE FIRST 6 DIGITS OF YOUR CARD > ").replace(" ", "")
if len(cc) >= 6: _check_(cc)
except KeyboardInterrupt: print("\nGOODBYE!"); exit()
except EOFError: print("\nGOODBYE!"); exit()