Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMAC - 006 - 🔥 Version 1.0.0 Release 🔥 #10

Merged
merged 4 commits into from
Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

🚀 Create endless amounts of free ProtonMail Accounts. 🚀

📌 Ver. 0.4 📌
📌 Ver. 1.0.0 📌

🤖 Full Proxy Support 🤖

Expand All @@ -24,7 +24,7 @@ Any problems with running the script and any questions please cantact me via Twi

### Prerequisites

You need python 3 or python 2.7 installed on your System.
You need python 3 installed on your System.

Get a copy of the Project. Open your Terminal and enter:

Expand Down Expand Up @@ -58,7 +58,6 @@ python emails.py

## Built With

* [jg-fisher](https://github.com/jg-fisher/protonMailGenerator) - Original Code
* [ProxyScraper](https://github.com/JaredLGillespie/proxyscrape) - Tool for Proxy Scraping

## Authors
Expand All @@ -81,13 +80,12 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
* Print account details to in console ✅
* Add more information to console when running ✅
* Add ProxyScrape for Porxy Support ✅
* Create requirements.txt file for easy installation ✅
* Use 10 Minute Mail Api for verification and recovery email
* Create requirements.txt file for easy installation

## Known Bugs 🐛

* The crawled proxies don't always work. ✅
* Proxy can be too slow and timeout script. ✅
* Verification process still needs to be done manually. ⚠️
* Also auto input can create a block for that email adress. ⚠️

220 changes: 132 additions & 88 deletions emails.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 🚀 This Project is in it's early stages of Development.
# 📌 Also I am working on a way to auto verfiy account via 10min mail api.
# 📌 Working on new features and main menu.
# ⚠️ Any Questions or Suggestions please Mail to: hendriksdevmail@gmail.com
# 🖥 Version: 0.3
# 🖥 Version: 1.0.0

from selenium import webdriver
from colorama import Fore, Back, Style
Expand All @@ -11,9 +11,11 @@
import string
import urllib.request
import requests
import csv
import sys
from proxyscrape import create_collector
import os
clear = lambda: os.system('clear') #on Linux System
clear = lambda: os.system('clear')
clear()

collector = create_collector('my-collector', 'https')
Expand All @@ -38,131 +40,173 @@
\____/_/ \___/\__,_/\__/\____/_/
""" + '\033[0m')

restart = 2
while (restart > 1):
# Pick an email for Verification. Replace 'YourEmail@Mail.com' with an email adress. (You can use 10min mail for this)
verifymail = input('\033[31m' + "Enter Email Adress for Verification: " + '\033[0m')

proxy_status = "false"
while (proxy_status == "false"):



# Retrieve only 'us' proxies
proxygrab = collector.get_proxy({'code': 'us'})
proxy = ("{}:{}".format(proxygrab.host, proxygrab.port))
print ('\033[31m' + "Proxy:", proxy + '\033[0m')
# Pick an email for Notification. Replace 'YourEmail@Mail.com' with an email adress. (You can use 10min mail for this)
notifymail = input('\033[31m' + "Enter Email Adress for Recovery: " + '\033[0m')
proxy_status = "false"
while (proxy_status == "false"):

# Retrieve only 'us' proxies
proxygrab = collector.get_proxy({'code': ('us', 'uk')})
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"

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=3.05)

except OSError:
print ('\033[31m' + "Proxy Connection error!" + '\033[0m')
proxy_status = "false"
else:
print ('\033[31m' + "Proxy is working..." + '\033[0m')
proxy_status = "true"


else:
from selenium.webdriver.chrome.options import Options

warnings.filterwarnings("ignore", category=DeprecationWarning)
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument('--proxy-server={}'.format(proxy)) # <-- Enter your Proxy here [Proxy:Port]
warnings.filterwarnings("ignore", category=DeprecationWarning)

# Change Path to Chrome Driver Path (or move your ChromeDriver into the project folder)
driver = webdriver.Chrome(executable_path='/Users/hendrik/Development/ProtonMail-Account-Creator/driver/chromedriver', chrome_options=options)
options = Options()
options.add_argument('--proxy-server={}'.format(proxy))

print ('\033[31m' + "ProtonMail Account Creator is Starting..." + '\033[0m')
# Change Path to Chrome Driver Path (or move your ChromeDriver into the project folder)
driver = webdriver.Chrome(executable_path='/driver/chromedriver', chrome_options=options)

url = 'http://protonmail.com/signup'
url = 'http://protonmail.com/signup'

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 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))

rngusername = randomStringDigits(13)
rngpassword = randomStringDigits(15)
rngusername = randomStringDigits(13)
rngpassword = randomStringDigits(15)

# Pick an email for Verification. Replace 'YourEmail@Mail.com' with an email adress. (You can use 10min mail for this)
verifymail = "YourEmail@Mail.com"

# Pick an email for Notification. Replace 'YourEmail@Mail.com' with an email adress. (You can use 10min mail for this)
notifymail = "YourEmail@Mail.com"

driver.get(url)
driver.get(url)

time.sleep(15)
time.sleep(4)

driver.find_element_by_class_name('panel-heading').click()
driver.find_element_by_class_name('panel-heading').click()

time.sleep(4)
time.sleep(1)

driver.find_element_by_id('freePlan').click()
driver.find_element_by_id('freePlan').click()

time.sleep(3)
time.sleep(4)

driver.switch_to_frame(0)
driver.switch_to_frame(0)

time.sleep(2)
time.sleep(3)

driver.find_element_by_id('username').send_keys(rngusername)
driver.find_element_by_id('username').send_keys(rngusername)

print ('\033[31m' + "Used ", rngusername,"as Username" + '\033[0m')
time.sleep(1)

time.sleep(1)
driver.switch_to.default_content()

driver.switch_to.default_content()
time.sleep(1)

time.sleep(1)
driver.find_element_by_id('password').send_keys(rngpassword)

driver.find_element_by_id('password').send_keys(rngpassword)
time.sleep(1)

time.sleep(1)
driver.find_element_by_id('passwordc').send_keys(rngpassword)

driver.find_element_by_id('passwordc').send_keys(rngpassword)
time.sleep(1)

print ('\033[31m' + "Used ", rngpassword,"as Password" + '\033[0m')
driver.switch_to_frame(1)

time.sleep(1)
time.sleep(1)

driver.switch_to_frame(1)
driver.find_element_by_id('notificationEmail').send_keys(notifymail)

time.sleep(1)
time.sleep(1)

# Pick an email for Recovery. Replace 'YourEmail@Mail.com' with your email adress.
driver.find_element_by_id('notificationEmail').send_keys(notifymail)
driver.find_element_by_name('submitBtn').click()

time.sleep(1)
time.sleep(6)

driver.find_element_by_name('submitBtn').click()
driver.find_element_by_id('id-signup-radio-email').click()

time.sleep(6)
time.sleep(1)

driver.find_element_by_id('id-signup-radio-email').click()
driver.find_element_by_id('emailVerification').send_keys(verifymail)

time.sleep(1)
time.sleep(1)

driver.find_element_by_id('emailVerification').send_keys(verifymail)
driver.find_element_by_class_name('codeVerificator-btn-send').click()

print ('\033[31m' + "Send the Verification Code to: ", verifymail + '\033[0m')
time.sleep(3)

time.sleep(1)
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)

driver.find_element_by_class_name('codeVerificator-btn-send').click()
complete = "false"

time.sleep(3)
while (complete == "false"):
complete_q = input("Did you complete the Verification process? y/n: ")

print ('\033[31m' + "Your New Email Adress is: ", rngusername,"@protonmail.com", sep='' + '\033[0m')
print ('\033[31m' + "Your New Email Password is: ", rngpassword + '\033[0m')
print ('\033[31m' + "Enter Verification Code and Click 'Complete Setup'" + '\033[0m')
if complete_q == "y":
driver.close()
csvData = [[rngusername + '@protonmail.com', 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')

file2write=open("users.txt",'w')
file2write.write(verifymail + '\n')
file2write.write(notifymail + '\n')
file2write.write(rngpassword + '\n')
file2write.write(rngusername + '\n')
file2write.close()
else:
print ("Ok! The script is exiting now.")
time.sleep(1)
exit()
else:
print("something")
1 change: 1 addition & 0 deletions list.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Empty file removed users.txt
Empty file.