fix port scan NoneType Exception to task result
This commit is contained in:
parent
03f11f6e9b
commit
887cf737d6
|
|
@ -334,8 +334,7 @@ async def scan_target(target):
|
||||||
continue
|
continue
|
||||||
except asyncio.InvalidStateError:
|
except asyncio.InvalidStateError:
|
||||||
pass
|
pass
|
||||||
|
if task.result() and task.result()['type'] == 'port':
|
||||||
if task.result()['type'] == 'port':
|
|
||||||
for service in (task.result()['result'] or []):
|
for service in (task.result()['result'] or []):
|
||||||
services.append(service)
|
services.append(service)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue