mirror of https://github.com/MatrixTM/MHDDoS.git
Update start.py
This commit is contained in:
parent
74a6d0ca4a
commit
e459de68fd
6
start.py
6
start.py
|
|
@ -93,7 +93,6 @@ with socket(AF_INET, SOCK_DGRAM) as s:
|
|||
s.connect(("8.8.8.8", 80))
|
||||
__ip__ = s.getsockname()[0]
|
||||
|
||||
|
||||
class bcolors:
|
||||
HEADER = '\033[95m'
|
||||
OKBLUE = '\033[94m'
|
||||
|
|
@ -105,14 +104,12 @@ class bcolors:
|
|||
BOLD = '\033[1m'
|
||||
UNDERLINE = '\033[4m'
|
||||
|
||||
|
||||
def exit(*message):
|
||||
if message:
|
||||
logger.error(bcolors.FAIL + " ".join(message) + bcolors.RESET)
|
||||
shutdown()
|
||||
_exit(1)
|
||||
|
||||
|
||||
class Methods:
|
||||
LAYER7_METHODS: Set[str] = {
|
||||
"CFB", "BYPASS", "GET", "POST", "OVH", "STRESS", "DYN", "SLOW", "HEAD",
|
||||
|
|
@ -133,7 +130,6 @@ class Methods:
|
|||
|
||||
ALL_METHODS: Set[str] = {*LAYER4_METHODS, *LAYER7_METHODS}
|
||||
|
||||
|
||||
google_agents = [
|
||||
"Mozila/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
|
||||
"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, "
|
||||
|
|
@ -163,7 +159,6 @@ class Counter:
|
|||
REQUESTS_SENT = Counter()
|
||||
BYTES_SEND = Counter()
|
||||
|
||||
|
||||
class Tools:
|
||||
IP = compile("(?:\d{1,3}\.){3}\d{1,3}")
|
||||
protocolRex = compile('"protocol":(\d+)')
|
||||
|
|
@ -279,7 +274,6 @@ class Tools:
|
|||
if sock:
|
||||
sock.close()
|
||||
|
||||
|
||||
class Minecraft:
|
||||
@staticmethod
|
||||
def varint(d: int) -> bytes:
|
||||
|
|
|
|||
Loading…
Reference in New Issue