From d5b3122d8fcdea353e9c536682b7d9ad29d11a52 Mon Sep 17 00:00:00 2001 From: Tib3rius <48113936+Tib3rius@users.noreply.github.com> Date: Mon, 10 Feb 2020 15:03:51 -0500 Subject: [PATCH] Removing extra whitespace from lines in target file. --- autorecon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autorecon.py b/autorecon.py index 8d1f05a..3727d84 100755 --- a/autorecon.py +++ b/autorecon.py @@ -756,6 +756,7 @@ if __name__ == '__main__': with open(args.target_file, 'r') as f: lines = f.read() for line in lines.splitlines(): + line = line.strip() if line.startswith('#') or len(line) == 0: continue if line not in raw_targets: raw_targets.append(line)