diff --git a/autorecon.py b/autorecon.py index 51923c5..61816e6 100644 --- a/autorecon.py +++ b/autorecon.py @@ -1535,7 +1535,11 @@ async def main(): lines = f.read() for line in lines.splitlines(): line = line.strip() - if line.startswith('#') or len(line) == 0: continue + if line.startswith('#'): continue + match = re.match('([^#]+)#', line) + if match: + line = match.group(1).strip() + if len(line) == 0: continue if line not in raw_targets: raw_targets.append(line) except OSError: