mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 19:56:37 +08:00
commit
2f072a28ae
8
start.py
8
start.py
|
@ -895,7 +895,7 @@ class ToolsConsole:
|
||||||
'status: %s') % (r.status_code,
|
'status: %s') % (r.status_code,
|
||||||
"ONLINE" if r.status_code <= 500 else "OFFLINE"))
|
"ONLINE" if r.status_code <= 500 else "OFFLINE"))
|
||||||
return
|
return
|
||||||
print("Error! ")
|
print("Error!")
|
||||||
|
|
||||||
if cmd == "INFO":
|
if cmd == "INFO":
|
||||||
while True:
|
while True:
|
||||||
|
@ -1075,7 +1075,7 @@ if __name__ == '__main__':
|
||||||
if not referers: exit("Empty Referer File ")
|
if not referers: exit("Empty Referer File ")
|
||||||
|
|
||||||
if proxy_ty not in {4, 5, 1, 0}: exit("Socks Type Not Found [4, 5, 1, 0]")
|
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 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():
|
||||||
|
@ -1083,7 +1083,7 @@ if __name__ == '__main__':
|
||||||
proxy_li.parent.mkdir(parents=True, exist_ok=True)
|
proxy_li.parent.mkdir(parents=True, exist_ok=True)
|
||||||
with proxy_li.open("w") as wr:
|
with proxy_li.open("w") as wr:
|
||||||
Proxies: Set[Proxy] = ProxyManager.DownloadFromConfig(con, proxy_ty)
|
Proxies: Set[Proxy] = ProxyManager.DownloadFromConfig(con, proxy_ty)
|
||||||
logger.info(f"{len(Proxies):,} Proxies are getting checked, this may take awhile !")
|
logger.info(f"{len(Proxies):,} Proxies are getting checked, this may take awhile!")
|
||||||
Proxies = ProxyChecker.checkAll(Proxies, url.human_repr(), 1, threads)
|
Proxies = ProxyChecker.checkAll(Proxies, url.human_repr(), 1, threads)
|
||||||
if not Proxies: exit(
|
if not Proxies: exit(
|
||||||
"Proxy Check failed, Your network may be the problem | The target may not be"
|
"Proxy Check failed, Your network may be the problem | The target may not be"
|
||||||
|
@ -1095,7 +1095,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):,}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user