Skip to content

Latest commit

 

History

History
91 lines (80 loc) · 3.56 KB

File metadata and controls

91 lines (80 loc) · 3.56 KB

import os import sys import requests import subprocess from googlesearch import search

R = '\033[31m' # red G = '\033[32m' # green C = '\033[36m' # cyan W = '\033[0m' # white

version = '1.0'

def banner(): os.system('clear') banner = r'''


/ __ \ | | ___
| / / __ _ _ __ | | |/ / ___ __ | | / | '__/ _ | _/\ \ /\ / / '
| _
/\ (| | | | (| | | \ V V /| | | | _
/_,|| _,_| _/_/ || ||''' print(G + banner + W + '\n') print(G + '[>] ' + R + 'Created by : ' + W + 'Hacker Destination') print(G + '[>] ' + R + 'Version : ' + W + version)

def updater(): print (G + '[+]' + R + ' Checking for updates...' + W + '\n') updated_version = requests.get('https://raw.githubusercontent.com/itsmehacker/cardpwn/master/version.txt', timeout = 5) updated_version = updated_version.text.split(' ')[1] updated_version = updated_version.strip() if updated_version != version: print (G + '[!]' + R + ' A New Version is Available : ' + W + updated_version) ans = input(G + '[!]' + R + ' Update ? [y/n] : ' + W) if ans == 'y': print ('\n' + G + '[+]' + R + ' Updating...' + '\n' + W) subprocess.check_output(['git', 'reset', '--hard', 'origin/master']) subprocess.check_output(['git', 'pull']) print (G + '[+]' + R + ' Script Updated...Please Execute Again...' + W) exit() else: print (G + '[+]' + R + ' Script is up-to-date...' + '\n' + W)

def cardpwn(): urls = [] card = input(G + '[+] ' + R +'Enter Card No. -> ' + W) try: val = int(card) if len(str(val)) >= 12 and len(str(val)) <= 19: for url in search('pastebin {}'.format(card) , stop=10): urls.append(url) print('\n' + G + '[>]' + R + ' Getting Dumps...' + W + '\n') for item in urls: if 'pastebin.com' in item: new = item.split('.com') newurl = '.com/raw'.join(new) print(G + '[+] ' + C + newurl + W) else: pass else: print('\n' + R + '[!] ' + G + 'Invaild Card Number' + W + '\n') return cardpwn()

            total = len(urls)
            if total == 0:
                    print (R + '[-] No Open Leaks for this Card Number Found.' + W + '\n')
            else:
                    print('\n' + G + '[+]' + R + ' Total Dumps Found : ' + W + str(total) + '\n')

    except ValueError:
            print('\n' + R + '[!] Invaild Card Number Entered...' + W + '\n')

def network(): try: requests.get('https://github.com/', timeout = 5) print ('\n' + G + '[+]' + R + ' Checking Internet Connection...' + W, end = '') print (G + ' Working' + W + '\n') except requests.ConnectionError: print (R + '[!]' + R + ' You are Not Connected to the Internet...Quiting...' + W) sys.exit()

try: banner() network() updater() cardpwn() except KeyboardInterrupt: print ('\n' + R + '[!]' + R + ' Keyboard Interrupt.' + W) exit()# newcard