Merge pull request #170 from terion-name/patch-1

fix debug mode for amplification methods
This commit is contained in:
MH_ProDev 2022-03-04 11:20:49 +03:30 committed by GitHub
commit 2cc51ace63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()))