forked from o7-Fire/General
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcacc.py
More file actions
53 lines (43 loc) · 1.72 KB
/
cacc.py
File metadata and controls
53 lines (43 loc) · 1.72 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
from selenium import webdriver
import time
import random
import string
emailprefix = "planecrazyarchive.tk"
def randomchar(length):
return ''.join(random.choices(string.ascii_uppercase + string.digits, k=length))
def createaccount(emailname, password):
driver = webdriver.Chrome()
action = webdriver.ActionChains(driver)
driver.get("https://github.com/signup?user_email=" + emailname + "%40" + emailprefix + "&source=form-home-signup")
time.sleep(13)
emailbutton = driver.find_element_by_xpath('//*[@id="email-container"]/div[2]/button')
action.move_to_element(emailbutton)
emailbutton.click()
time.sleep(2)
passwordinput = driver.find_element_by_xpath('//*[@id="password"]')
action.move_to_element(passwordinput)
passwordinput.send_keys(password)
time.sleep(2)
passwordbutton = driver.find_element_by_xpath('//*[@id="password-container"]/div[2]/button')
action.move_to_element(passwordbutton)
passwordbutton.click()
time.sleep(2)
nameinput = driver.find_element_by_xpath('//*[@id="login"]')
action.move_to_element(nameinput)
nameinput.send_keys(emailname)
time.sleep(2)
namebutton = driver.find_element_by_xpath('//*[@id="username-container"]/div[2]/button')
action.move_to_element(namebutton)
namebutton.click()
time.sleep(2)
receiveemailinput = driver.find_element_by_xpath('//*[@id="opt_in"]')
action.move_to_element(receiveemailinput)
receiveemailinput.send_keys("n")
time.sleep(2)
receiveemailbutton = driver.find_element_by_xpath('//*[@id="opt-in-container"]/div[2]/button')
action.move_to_element(receiveemailinput)
receiveemailbutton.click()
print(emailname + "@" + emailprefix + ":" + password)
time.sleep(1000000)
print("created accounts:")
createaccount("Nexity" + randomchar(10), randomchar(20))