diff --git a/autorecon/main.py b/autorecon/main.py index 587ae12..b308f31 100644 --- a/autorecon/main.py +++ b/autorecon/main.py @@ -334,8 +334,7 @@ async def scan_target(target): continue except asyncio.InvalidStateError: pass - - if task.result()['type'] == 'port': + if task.result() and task.result()['type'] == 'port': for service in (task.result()['result'] or []): services.append(service)