Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nmap port scan fails when Naabu return no port #1067

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,12 @@ def port_scan(self, hosts=[], ctx={}, description=None):
# Send notification
logger.warning(f'Found opened port {port_number} on {ip_address} ({host})')

if len(ports_data) == 0:
logger.info('Finished running naabu port scan - No open ports found.')
if nmap_enabled:
logger.info('Nmap scans skipped')
return ports_data

# Send notification
fields_str = ''
for host, ports in ports_data.items():
Expand Down
Loading