-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
192 lines (138 loc) · 5.18 KB
/
main.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
## total mailbox death - , . :3
## a losbagos . d https://github.com/losbagos
# consider donating!!
# XMR/Monero: 432cg1Mhzg4esHifrrifvsgQYWHHwsceDEoK79gvVmMENuhge72b53q8m5ZNHE3f8U5ogpJPA2gYfM7EV85ikzC6SvciivS
from math import trunc
import random
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from settings import *
import sys
import time
import tkinter
import tkinter as tk
from tkinter import ttk
# ⚘ ᠃ -- definitions
options = Options()
driver = webdriver.Chrome() # replace this with ur preferred driver
options.page_load_strategy = 'eager'
driver = webdriver.Chrome(options=options)
wait = WebDriverWait(driver,5)
prefs = {
"download.default_directory": "./",
"credentials_enable_service": False,
"profile.password_manager_enabled": False,
"excludeSwitches": ["disable-popup-blocking"]
}
options.add_experimental_option("prefs", prefs)
options.page_load_strategy = 'none'
tmdApp = tk.Tk()
tmdApp.title('total mailbox death')
tmdApp.geometry('280x200')
tmdApp.configure(background=LightPink, highlightbackground=Pink)
tmdApp.iconbitmap("kitty.ico")
def tmdGoob():
global shnooEmail
global shnooFirstname
global shnooLastname
shnooEmail= tmdEmail_entry.get()
shnooFirstname= tmdName_entry.get()
shnooLastname= tmdLastName_entry.get()
tmdWeb()
## ˋ°•*⁀➷ shnooie for all email element variants
def tmdShnooie_email(sn_Email):
try:
driver.implicitly_wait(1)
sn_Email_element = driver.find_element(By.NAME, sn_Email) # goes through list and finds the name element that matches
sn_Email_element.send_keys(shnooEmail)
except:
pass # will pass any lieek umm ones it can't find
## ˋ°•*⁀➷ shnooie for all first name element variants
def tmdShnooie_firstName(sn_firstName):
try:
driver.implicitly_wait(1)
sn_Email_element = driver.find_element(By.NAME, sn_firstName)
sn_Email_element.send_keys(shnooFirstname)
except:
pass
finally:
time.sleep(1)
def tmdShnooie_lastName(sn_lastname):
try:
driver.implicitly_wait(1)
sn_Email_element = driver.find_element(By.NAME, sn_lastname)
sn_Email_element.send_keys(shnooLastname)
except:
pass
finally:
time.sleep(1)
# -- ᠃ ⚘ finding email input ⚘ ᠃ --
emaillist = ["email", "EMAIL", "contact[email]"]
def tmdSnorrey_email():
for i in emaillist:
tmdShnooie_email(i)
# -- ᠃ ⚘ finding first name input ⚘ ᠃ --
firstNamelist = ["name", "NAME", "first_name", "FNAME", "firstname"]
def tmdSnorrey_firstName():
for i in firstNamelist:
tmdShnooie_firstName(i)
# -- ᠃ ⚘ finding last time input ⚘ ᠃ --
lastNamelist = ["lastname", "LNAME", "last_name"]
def tmdSnorrey_lastName():
for i in lastNamelist:
tmdShnooie_lastName(i)
# -- ᠃ ⚘ list.txt into a list and randomizing a bit ⚘ ᠃ --
my_file = open("list.txt", "r") # list of all da urls n shiet
data = my_file.read()
websitesList = data.split("\n")
random.shuffle(websitesList)
# -- ᠃ ⚘ opening da website ⚘ ᠃ --
def tmdWebsite(website):
driver.get(website)
print(" ⚘᠂ ⚘ The current url is: " + website)
tmdSnorrey_email()
tmdSnorrey_firstName()
tmdSnorrey_lastName()
time.sleep(1)
# -- ᠃ ⚘ entering link ⚘ ᠃ --
step = trunc(100/len(websitesList))
def tmdWeb():
for i in websitesList:
tmdWebsite(i)
webdriver.ActionChains(driver).send_keys(Keys.ENTER).perform()
time.sleep(2)
progress.step(step)
progress.update()
# -- ᠃ ⚘ exit button ⚘ ᠃ --
def tmdExit():
driver.close()
sys.exit()
# https://github.com/losbagos
# -- ᠃ ⚘ application thingy ⚘ ᠃ --
tmdEmail_label = tkinter.Label(tmdApp, text="Email Address", background=LightPink)
tmdName_label = tkinter.Label(tmdApp, text="First Name", background=LightPink )
tmdLastName_label = tkinter.Label(tmdApp, text="Last Name", background=LightPink)
tmdEmail_entry = tkinter.Entry(tmdApp)
tmdName_entry = tkinter.Entry(tmdApp)
tmdLastName_entry = tkinter.Entry(tmdApp)
tmdSubmit_label = tkinter.Label(tmdApp, text="Total Mailbox Death!", background=LightPink)
tmdSubmit_button = tkinter.Button (tmdApp, text="run newsletter spammer", background=Pink, command = tmdGoob)
tmdExit_button = tkinter.Button(tmdApp, text="quit script :3", background=Pink, command=tmdExit)
tmdSubmit_label.grid(row=0, column=0, columnspan=2)
tmdName_label.grid(row=1, column=0)
tmdName_entry.grid(row=1, column=1)
tmdLastName_label.grid(row=2, column=0)
tmdLastName_entry.grid(row=2, column=1)
tmdEmail_label.grid(row=4, column=0)
tmdEmail_entry.grid(row=4, column=1)
tmdSubmit_button.grid(row=6, column=0, columnspan=2, pady=1)
tmdExit_button.grid(row=8, column=0, columnspan=2, pady=2)
#-- progress bar
progress_label = tkinter.Label(tmdApp, text="Progress Bar!", background=LightPink)
progress_label.grid(row=9, column=0)
progress = ttk.Progressbar(tmdApp, length=100)
progress.grid(row=10, column=0, columnspan=2, pady=1)
tmdApp.mainloop()