From 3ecbcd014e0d55fd0cbab667736a54fabe8c8c16 Mon Sep 17 00:00:00 2001 From: Gabe <66077254+MrBrain295@users.noreply.github.com> Date: Wed, 2 Mar 2022 21:37:13 -0600 Subject: [PATCH 1/5] Use an https method of getting the IP address --- start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.py b/start.py index e960144..2ca5230 100644 --- a/start.py +++ b/start.py @@ -37,7 +37,7 @@ ctx.verify_mode = CERT_NONE __version__ = "2.1 SNAPSHOT" __dir__ = Path(__file__).parent -__ip__ = get('http://ip.42.pl/raw').text +__ip__ = get('https://api.my-ip.io/ip').text def exit(*message): From 2f888a89e0b370e7feaed8c8efd61da2b7f2a621 Mon Sep 17 00:00:00 2001 From: code-review-doctor Date: Thu, 3 Mar 2022 09:10:58 +0000 Subject: [PATCH 2/5] Fix issue avoid-missing-comma found at https://codereview.doctor --- start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.py b/start.py index e960144..bed6020 100644 --- a/start.py +++ b/start.py @@ -405,8 +405,8 @@ class HttpFlood(Thread): @staticmethod def getMethodType(method: str) -> str: return "GET" if {method.upper()} & {"CFB", "CFBUAM", "GET", "COOKIE", "OVH", "EVEN", - "STRESS", "DYN", "SLOW", "PPS", "APACHE" - "BOT"} \ + "STRESS", "DYN", "SLOW", "PPS", "APACHE", + "BOT",} \ else "POST" if {method.upper()} & {"POST", "XMLRPC"} \ else "HEAD" if {method.upper()} & {"GSB", "HEAD"} \ else "REQUESTS" From fc9fc0bad7be5daaec7d852b96e1f69016018f73 Mon Sep 17 00:00:00 2001 From: Terion Date: Thu, 3 Mar 2022 22:51:15 +0200 Subject: [PATCH 3/5] fix debug mode for amplification methods --- start.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.py b/start.py index e960144..0d8a658 100644 --- a/start.py +++ b/start.py @@ -1121,9 +1121,9 @@ if __name__ == '__main__': not ToolsConsole.checkRawSocket(): exit("Cannot Create Raw Socket ") if method in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}: - if len(argv) == 7: - logger.setLevel("DEBUG") - if len(argv) == 6: + if len(argv) >= 6: + if len(argv) == 7: + logger.setLevel("DEBUG") refl_li = Path(__dir__ / "files" / argv[5].strip()) 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())) From 5303c60d36913c3d0028fbe6752728ed208c14ad Mon Sep 17 00:00:00 2001 From: Gabe <66077254+MrBrain295@users.noreply.github.com> Date: Thu, 3 Mar 2022 16:20:48 -0600 Subject: [PATCH 4/5] fix grammar --- start.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/start.py b/start.py index e960144..059f323 100644 --- a/start.py +++ b/start.py @@ -895,7 +895,7 @@ class ToolsConsole: 'status: %s') % (r.status_code, "ONLINE" if r.status_code <= 500 else "OFFLINE")) return - print("Error! ") + print("Error!") if cmd == "INFO": while True: @@ -1075,7 +1075,7 @@ if __name__ == '__main__': 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 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 not proxy_li.exists(): @@ -1095,7 +1095,7 @@ if __name__ == '__main__': proxies = ProxyUtiles.readFromFile(proxy_li) if not proxies: - logger.info("Empty Proxy File, Running flood witout proxy") + logger.info("Empty Proxy File, running flood witout proxy") proxies = None if proxies: logger.info(f"Proxy Count: {len(proxies):,}") From e3171077db6af8e85351c353a165bff865f7dc19 Mon Sep 17 00:00:00 2001 From: Gabe <66077254+MrBrain295@users.noreply.github.com> Date: Thu, 3 Mar 2022 16:21:44 -0600 Subject: [PATCH 5/5] fix --- start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.py b/start.py index 059f323..d8f89bf 100644 --- a/start.py +++ b/start.py @@ -1083,7 +1083,7 @@ if __name__ == '__main__': proxy_li.parent.mkdir(parents=True, exist_ok=True) with proxy_li.open("w") as wr: 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) if not Proxies: exit( "Proxy Check failed, Your network may be the problem | The target may not be"