-
Notifications
You must be signed in to change notification settings - Fork 6
/
auto_signup.py
56 lines (35 loc) · 1.37 KB
/
auto_signup.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
import time
import random
from selenium import webdriver
chrome_path = r"C:\Selenium\chromedriver.exe"
number_of_signups = 0
def gen_rand_un():
un = "16JE00"
un += str(random.randint(0, 9)) + str(random.randint(0, 9)) + str(random.randint(0, 9)) + str(random.randint(0, 9))
return un
while 1:
un = gen_rand_un()
driver = webdriver.Chrome(chrome_path)
url = r"http://myshoutbox.ml/signup.php"
driver.get(url)
fname = driver.find_element_by_id("fname1")
fname.send_keys("Hacker")
lname = driver.find_element_by_id("lname1")
lname.send_keys("Bro")
username = driver.find_element_by_id("username1")
username.send_keys(un)
password = driver.find_element_by_id("password1")
password.send_keys("Hello@123")
re_password = driver.find_element_by_id("repass1")
re_password.send_keys("Hello@123")
email = driver.find_element_by_id("email1")
email.send_keys("hacker" + un + "@gmail.com")
outside = driver.find_element_by_id("log")
outside.click()
btn = driver.find_element_by_name("submit")
btn.click()
#Waiting to get registered:
time.sleep(5)
driver.quit()
number_of_signups += 1
print("No. of Signups so far: {}".format(number_of_signups))