ToKeiChun

Stripe KEY Checker

Jan 16th, 2021
800
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Usage : python checker.py stripekey.txt
  2. import requests
  3. import re
  4. import random
  5. import sys
  6. import os
  7. import threading
  8.  
  9. # COLOR
  10. rancolor = ["\033[32m", "\033[36m", "\033[93m", "\033[0;36m", "\033[35m", "\033[33m"]
  11. red = "\033[31m"
  12. # green = "\033[32m"
  13. # cyan = "\033[36m"
  14. # yellow = "\033[93m"
  15. # blue = "\033[34m"
  16. # purple = "\033[35m"
  17. # orange = "\033[33m"
  18. CEND = "\033[0m"
  19.  
  20. try:
  21.     os.mkdir('OUTPUT')
  22. except:
  23.     pass
  24.  
  25. def stripecheck(key):
  26.     try:
  27.         warna = random.choice(rancolor)
  28.         response = requests.get('https://api.stripe.com/v1/balance', auth=(key, ''))
  29.         if '"available"' in response.text:
  30.             amount = re.findall(r'"amount": (.*?),', response.text)
  31.             currency = re.findall(r'"currency": "(.*?)"', response.text)
  32.             livemode = re.findall(r'"livemode": (.*?),', response.text)
  33.             print('[{}LIVE{}] - [{}]').format(warna,CEND,key)
  34.             open('OUTPUT/LIVE.txt', 'a').write(key + "|amount:" + amount[0] + "|currency:" + currency[0] + "|livemode:" + livemode[0] + "\n")
  35.         else:
  36.             print('[{}API NOT WORKING OR INVALID{}] - [{}]').format(red,CEND,key)
  37.     except:
  38.         pass
  39. def main():
  40.     threads = []
  41.     lists = open(sys.argv[1], 'r').read().splitlines()
  42.     for i in lists:
  43.         go = threading.Thread(target=stripecheck, args=(i,))
  44.         threads.append(go)
  45.         go.start()
  46.     for go in threads:
  47.         go.join()
  48.  
  49. if __name__ == '__main__':
  50.     main()
  51.  
RAW Paste Data