-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmega.py
More file actions
164 lines (158 loc) · 8.89 KB
/
mega.py
File metadata and controls
164 lines (158 loc) · 8.89 KB
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
# /usr/bin/python3
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.common.exceptions import NoSuchElementException
from selenium import webdriver
import time
import random
import string
from faker import Faker
fake = Faker()
import os
os.system('cls')
import ctypes
ctypes.windll.kernel32.SetConsoleTitleW("Mega Account Creator - Remastered - Selenium Version/Mod - by thelinuxuser-choice")
import colorama
from colorama import Fore, Style, init
red = Fore.LIGHTRED_EX
cyan = Fore.LIGHTCYAN_EX
magenta = Fore.MAGENTA
blue = Fore.LIGHTBLUE_EX
yellow = Fore.YELLOW
dblue = Fore.BLUE
GREEN = Fore.GREEN
white = Fore.WHITE
colorama.init(autoreset=True)
created = 0
banner = f"""{white}
███▄ ▄███▓▓█████ ▄████ ▄▄▄ ███▄ █ ▒███████▒
{red}▓██▒▀█▀ ██▒▓█ ▀ ██▒ ▀█▒▒████▄ ██ ▀█ █ ▒ ▒ ▒ ▄▀░
▓██ ▓██░▒███ ▒██░▄▄▄░▒██ ▀█▄ ▓██ ▀█ ██▒░ ▒ ▄▀▒░
▒██ ▒██ ▒▓█ ▄ ░▓█ ██▓░██▄▄▄▄██ ▓██▒ ▐▌██▒ ▄▀▒ ░
{blue}▒██▒ ░██▒░▒████▒░▒▓███▀▒ ▓█ ▓██▒ ██▓ ▒██░ ▓██░▒███████▒
░ ▒░ ░ ░░░ ▒░ ░ ░▒ ▒ ▒▒ ▓▒█░ ▒▓▒ ░ ▒░ ▒ ▒ ░▒▒ ▓░▒░▒
░ ░ ░ ░ ░ ░ ░ ░ ▒ ▒▒ ░ ░▒ ░ ░░ ░ ▒░░░▒ ▒ ░ ▒
░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ {cyan} Account Creator
░ ░ {yellow} Remastered
{magenta} Selenium Version/Mod
{GREEN}> Github - thelinuxuser-choice <
"""
print(banner)
input("[ENTER] Click Enter to Start And Make sure to read README.txt >")
with open("emails.txt", "r") as fd:
try:
for line in fd:
#print("\n\n\n[Ready] Debug: STARTING")
#time.sleep(3)
path = "driver\chromedriver.exe"
driver = webdriver.Chrome(path)
time.sleep(3)
os.system('cls')
print(banner)
email = line.split("\n")
domain = "@xitroo.de"
surname = fake.name()
lastname = fake.name()
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for i in range(8))
print(f"{cyan}[Starting] Debug: START")
print(f"{yellow}[Email] Email: " + email[0] + domain)
print(f"{yellow}[Password] Password: " + password)
print(f"{cyan}[Mega] Debug: Open Mega.nz")
driver.get("https://mega.nz/register")
time.sleep(17)
print(f"{GREEN}[Mega] Debug: Cookie")
driver.find_element(By.XPATH,"//*[@id='bodyel']/section[1]/div[4]/div[1]/div[2]/button[1]").click()
time.sleep(2)
print(f"{GREEN}[Mega] Debug: Firstname")
driver.find_element(By.XPATH,"//*[@id='register-firstname-registerpage2']").click()
time.sleep(0.5)
driver.find_element(By.XPATH,"//*[@id='register-firstname-registerpage2']").send_keys(surname)
time.sleep(2)
print(f"{GREEN}[Mega] Debug: Lastname")
driver.find_element(By.XPATH,"//*[@id='register-lastname-registerpage2']").click()
time.sleep(0.5)
driver.find_element(By.XPATH,"//*[@id='register-lastname-registerpage2']").send_keys(lastname)
time.sleep(2)
print(f"{GREEN}[Mega] Debug: Email")
driver.find_element(By.XPATH,"//*[@id='register-email-registerpage2']").click()
time.sleep(0.5)
driver.find_element(By.XPATH,"//*[@id='register-email-registerpage2']").send_keys(email[0] + domain)
time.sleep(2)
print(f"{GREEN}[Mega] Debug: Password")
driver.find_element(By.XPATH,"//*[@id='register-password-registerpage2']").click()
time.sleep(0.5)
driver.find_element(By.XPATH,"//*[@id='register-password-registerpage2']").send_keys(password)
time.sleep(2)
print(f"{GREEN}[Mega] Debug: Verify Password")
driver.find_element(By.XPATH,"//*[@id='register-password-registerpage3']").click()
time.sleep(0.5)
driver.find_element(By.XPATH,"//*[@id='register-password-registerpage3']").send_keys(password)
time.sleep(2)
print(f"{magenta}[Mega] Debug: Checkbox 1")
driver.find_element(By.XPATH,"//*[@id='register_form']/div[8]/label").click()
time.sleep(2)
print(f"{magenta}[Mega] Debug: Checkbox 2")
driver.find_element(By.ID,"register-check-registerpage2").click()
time.sleep(2)
print(f"{magenta}[Mega] Debug: Click Button")
driver.find_element(By.XPATH,"//*[@id='register_form']/button").click()
time.sleep(10)
print(f"{cyan}[Xitroo] Debug: Open Xitroo")
driver.get("https://xitroo.de/#" + email[0])
time.sleep(5)
print(f"{red}>> Waiting for Mail")
time.sleep(3)
print(f"{red}[Xitroo] Debug: Click Email in Inbox")
try:
print(f"{red}>> Trying Desktop Element")
driver.find_element(By.XPATH,"//*[@id='mailList']/tr").click()
pass
except NoSuchElementException:
print(f"{red}>> Trying Mobile Element")
driver.find_element(By.XPATH,"//*[@id='mailListMobile']").click()
pass
except :
print(f"{red}[Warning] Email Confirmation not recieved!")
pass
time.sleep(2)
iframe = driver.find_element(By.ID,"mailContentFrame")
time.sleep(1)
print(f"{cyan}[Xitroo] Debug: Switch to Iframe")
driver.switch_to.frame(iframe)
time.sleep(2)
print(f"{blue}[Xitroo] Debug: Click Verification Button")
driver.find_element(By.XPATH,"//*[@id='frameContent']/table/tbody/tr[1]/td[2]/table/"
"tbody/tr/td/table/tbody/tr/td").click()
time.sleep(3)
print(f"{blue}[Xitroo] Debug: Switch to Parent Iframe")
driver.switch_to.parent_frame()
time.sleep(1)
print(f"{cyan}[Chrome tab] Debug: Switch to Second Tab")
driver.switch_to.window(driver.window_handles[1])
time.sleep(3)
print(f"{blue}[Mega] Debug: Password")
driver.find_element(By.ID,"login-password2").click()
time.sleep(0.5)
driver.find_element(By.ID,"login-password2").send_keys(password)
time.sleep(2)
print(f"{blue}[Mega] Debug: Click Button")
driver.find_element(By.XPATH,"//*[@id='login_form']/button").click()
time.sleep(5)
with open("Accounts.txt", "a+") as f:
f.write(f"{email[0]}{domain}:{password}\n")
created +=1
ctypes.windll.kernel32.SetConsoleTitleW(f"Mega Account Creator - Created accounts : {created} - Remastered - Selenium Version/Mod - by thelinuxuser-choice")
print(f"\n{cyan}[Mega Account Creator] Debug: Done")
driver.quit()
except NoSuchElementException:
os.system('cls')
print(f"{yellow}[Error] An error occured while Creating a Account Reasons are [Names you have entered in emails.txt is taken] ")
time.sleep(2)
print
pass
input("[EXIT] Press Enter to Exit >")
# If you saw the source and learned from this please add a star on this github repo
# Much more coming soon , stay tuned !