-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathemails.py
executable file
·292 lines (232 loc) · 10.8 KB
/
emails.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# 🚀 This Project is in it's early stages of Development.
# 📌 Working on new features and main menu.
# ⚠️ Any Questions or Suggestions please Mail to: [email protected]
# 🖥 Version: 1.0.0
from selenium import webdriver
from colorama import Fore, Back, Style
import warnings
import time
import random
import string
import urllib.request
import requests
import csv
import sys
from proxyscrape import create_collector
import os
clear = lambda: os.system('clear')
clear()
collector = create_collector('my-collector', 'https')
print ('\033[31m' + """\
____ __ __ ___ _ __
/ __ \_________ / /_____ ____ / |/ /___ _(_) /
/ /_/ / ___/ __ \/ __/ __ \/ __ \/ /|_/ / __ `/ / /
/ ____/ / / /_/ / /_/ /_/ / / / / / / / /_/ / / /
/_/ /_/ \____/\__/\____/_/ /_/_/ /_/\__,_/_/_/
___ __
/ | ______________ __ ______ / /_
/ /| |/ ___/ ___/ __ \/ / / / __ \/ __/
/ ___ / /__/ /__/ /_/ / /_/ / / / / /_
/_/ |_\___/\___/\____/\__,_/_/ /_/\__/
______ __
/ ____/_______ ____ _/ /_____ _____
/ / / ___/ _ \/ __ `/ __/ __ \/ ___/
/ /___/ / / __/ /_/ / /_/ /_/ / /
\____/_/ \___/\__,_/\__/\____/_/
""" + '\033[0m')
time.sleep(15)
restart = 2
while (restart > 1):
# Pick an email for Verification. Replace '[email protected]' with an email adress. (You can use 10min mail for this)
# verifymail = input('\033[31m' + "Enter Email Adress for Verification: " + '\033[0m')
verifymail = ''
# f = open('./input_emails.txt')
# verifymail = f.readline().trim()
# verifymail = '[email protected]'
# Pick an email for Notification. Replace '[email protected]' with an email adress. (You can use 10min mail for this)
# notifymail = input('\033[31m' + "Enter Email Adress for Recovery: " + '\033[0m')
notifymail = ''
# notifymail = '[email protected]'
proxy_status = "false"
while (proxy_status == "false" and False):
# Retrieve only 'us' proxies
proxygrab = collector.get_proxy({'code': ('in')})
proxy = ("{}:{}".format(proxygrab.host, proxygrab.port))
print ('\033[31m' + "Proxy:", proxy + '\033[0m')
try:
proxy_host = proxygrab.host
proxy_port = proxygrab.port
proxy_auth = ":"
proxies = {'http':'http://{}@{}:{}/'.format(proxy_auth, proxy_host, proxy_port)}
requests.get("http://example.org", proxies=proxies, timeout=1.5)
except OSError:
print ('\033[31m' + "Proxy Connection error!" + '\033[0m')
time.sleep(1)
sys.stdout.write("\033[F")
sys.stdout.write("\033[K")
sys.stdout.write("\033[F")
sys.stdout.write("\033[K")
proxy_status = "false"
else:
print ('\033[31m' + "Proxy is working..." + '\033[0m')
time.sleep(1)
sys.stdout.write("\033[F")
sys.stdout.write("\033[K")
sys.stdout.write("\033[F")
sys.stdout.write("\033[K")
proxy_status = "true"
else:
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.select import Select
warnings.filterwarnings("ignore", category=DeprecationWarning)
options = Options()
email_driver = webdriver.Chrome(executable_path='./chromedriver', chrome_options=options)
email_url = 'https://www.guerrillamail.com/'
email_driver.get(email_url)
time.sleep(4)
# # print(driver.find_element_by_id('inbox-id').text)
email = email_driver.find_element_by_id('inbox-id').text + '@';
domain_name = Select(email_driver.find_element_by_id('gm-host-select')).first_selected_option.text
# # domain_name = email_driver.find_element_by_id('gm-host-select').text
email += domain_name
# print(domain_name)
print(email)
# f = open('./input_emails.txt', 'w')
# f.write(email)
verifymail = email
# email_driver.find_element_by_partial_link_text('verification').click()
# options.add_argument('--proxy-server={}'.format(proxy))
# Change Path to Chrome Driver Path (or move your ChromeDriver into the project folder)
driver = webdriver.Chrome(executable_path='./chromedriver', chrome_options=options)
# url = 'http://protonmail.com/signup'
url = 'http://account.protonvpn.com/signup'
#url =
def randomStringDigits(stringLength=13):
# Generate a random string of letters and digits
lettersAndDigits = string.ascii_letters + string.digits
return ''.join(random.choice(lettersAndDigits) for i in range(stringLength))
def getUserName():
f = open('lastused.txt')
val = int(f.readline())
f.close()
f = open('lastused.txt', 'w')
val += 1
f.write(str(val))
return 'wowmainia'+str(val - 1)
rngusername = getUserName()
rngpassword = randomStringDigits(15)
driver.get(url)
# time.sleep(10)
# driver.find_element_by_class_name('pm-button w100 mtauto pm-button--primaryborder').click()
# driver.find_element_by_link_text("Get Free").click()
# driver.find_element_by_xpath("/html/body/div[1]/main/main/div/div[4]/div[1]/div[3]/button").click()
while True:
try:
driver.find_element_by_css_selector("body > div.app-root > main > main > div > div:nth-child(5) > div:nth-child(1) > div.flex-item-fluid-auto.pt1.pb1.flex.flex-column > button").click()
break
except:
time.sleep(1)
continue
# driver.find_element_by_id('freePlan').click()
# driver.find_element_by_css_selector("#username").send_keys(rngusername)
# time.sleep(4)
# driver.switch_to_frame(0)
# time.sleep(3)
# driver.find_element_by_id('username').send_keys(rngusername)
# time.sleep(1)
# driver.find_element_by_css_selector("#username").send_keys(rngusername)
while True:
try:
driver.find_element_by_id("username").send_keys(rngusername)
driver.find_element_by_id("password").send_keys(rngpassword)
driver.find_element_by_id("passwordConfirmation").send_keys(rngpassword)
driver.find_element_by_id("email").send_keys(verifymail)
driver.find_element_by_css_selector("body > div.app-root > main > main > div > div.pt2.mb2 > div > div:nth-child(1) > form > div:nth-child(3) > div > button").click()
break
except:
time.sleep(1)
# driver.switch_to.default_content()
# time.sleep(1)
# driver.find_element_by_id('password').send_keys(rngpassword)
# time.sleep(1)
# driver.find_element_by_id('passwordc').send_keys(rngpassword)
# time.sleep(1)
# driver.switch_to_frame(1)
# time.sleep(1)
# driver.find_element_by_id('notificationEmail').send_keys(notifymail)
while True:
try:
driver.find_element_by_css_selector("body > div.app-root > main > main > div > div.pt2.mb2 > div > div.w100 > div:nth-child(2) > div > div > div:nth-child(2) > form > div:nth-child(2) > button").click()
break
except:
time.sleep(1)
# time.sleep(60)
# time.sleep(1)
# email_driver.find_element_by_partial_link_text('verification').click()
# email_driver.find_element_by_link_text('[email protected] ').click()
while True:
try:
val = email_driver.find_element_by_class_name('email-excerpt').text
if not val[-6:].isnumeric():
raise Exception
print(val[-6:], "verification")
driver.find_element_by_id('code').send_keys(val[-6:])
time.sleep(1)
driver.find_element_by_css_selector('body > div.app-root > main > main > div > div.pt2.mb2 > div > div.w100 > div:nth-child(2) > form > div > div > div:nth-child(4) > button').click()
break
except:
time.sleep(1)
# driver.find_element_by_name('submitBtn').click()
# time.sleep(6)
# driver.find_element_by_id('id-signup-radio-email').click()
# time.sleep(1)
# driver.find_element_by_id('emailVerification').send_keys(verifymail)
# time.sleep(1)
# driver.find_element_by_class_name('codeVerificator-btn-send').click()
# time.sleep(3)
print ('\033[31m' + "Your New Email Adress is: ", rngusername,"@protonmail.com", sep='' + '\033[0m')
print ('\033[31m' + "Your New Email Password is: " + '\033[0m' , rngpassword)
complete = "false"
while (complete == "false"):
complete_q = input("Did you complete the Verification process? y/n: ")
if complete_q == "y":
driver.close()
csvData = [[verifymail, rngpassword]]
with open('list.csv', 'a') as csvFile:
writer = csv.writer(csvFile)
writer.writerows(csvData)
csvFile.close()
print ('Great! We added you account details to the table.')
complete = "true"
else:
print ('Please try verifing and try again')
time.sleep(1)
complete = "false"
else:
restart_s = input("Do you want to restart the Script and create more Accounts? y/n: ")
if restart_s == "y":
restart ++ 1
clear()
print ('\033[31m' + """\
____ __ __ ___ _ __
/ __ \_________ / /_____ ____ / |/ /___ _(_) /
/ /_/ / ___/ __ \/ __/ __ \/ __ \/ /|_/ / __ `/ / /
/ ____/ / / /_/ / /_/ /_/ / / / / / / / /_/ / / /
/_/ /_/ \____/\__/\____/_/ /_/_/ /_/\__,_/_/_/
___ __
/ | ______________ __ ______ / /_
/ /| |/ ___/ ___/ __ \/ / / / __ \/ __/
/ ___ / /__/ /__/ /_/ / /_/ / / / / /_
/_/ |_\___/\___/\____/\__,_/_/ /_/\__/
______ __
/ ____/_______ ____ _/ /_____ _____
/ / / ___/ _ \/ __ `/ __/ __ \/ ___/
/ /___/ / / __/ /_/ / /_/ /_/ / /
\____/_/ \___/\__,_/\__/\____/_/
""" + '\033[0m')
else:
print ("Ok! The script is exiting now.")
time.sleep(1)
exit()
else:
print("something")