From 887cf737d6bd3b2027b33250be406226d0c4cbec Mon Sep 17 00:00:00 2001 From: blockomat2100 Date: Thu, 11 Nov 2021 13:34:47 +0100 Subject: [PATCH] fix port scan NoneType Exception to task result --- autorecon/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)