Skip to content

Commit

Permalink
Merge pull request #1108 from psyray/fix-nmap-results
Browse files Browse the repository at this point in the history
Add source for nmap scan
  • Loading branch information
yogeshojha authored Dec 6, 2023
2 parents 431af55 + a4073df commit 195f8f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/reNgine/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
DALFOX = 'dalfox'
S3SCANNER = 's3scanner'
NUCLEI = 'nuclei'
NMAP = 'nmap'
CRLFUZZ = 'crlfuzz'
WAF_EVASION = 'waf_evasion'
BLIND_XSS_SERVER = 'blind_xss_server'
Expand Down
3 changes: 2 additions & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3233,8 +3233,9 @@ def parse_nmap_results(xml_file, output_file=None):
else:
logger.warning(f'Script output parsing for script "{script_id}" is not supported yet.')

# Add URL to vuln
# Add URL & source to vuln
for vuln in url_vulns:
vuln['source'] = NMAP
# TODO: This should extend to any URL, not just HTTP
vuln['http_url'] = url
if 'http_path' in vuln:
Expand Down

0 comments on commit 195f8f5

Please sign in to comment.