From fc9fc0bad7be5daaec7d852b96e1f69016018f73 Mon Sep 17 00:00:00 2001 From: Terion Date: Thu, 3 Mar 2022 22:51:15 +0200 Subject: [PATCH] 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()))