feat: Add hostname resolution to Nmap scans

- Add -R flag to Nmap scan options to enable reverse DNS lookup.
- Modify the Nmap processing logic to extract and store hostnames.
- Update PROGRESS.md to reflect the completion of the task.
This commit is contained in:
2025-08-21 12:32:40 -05:00
parent 7e24379fa1
commit 83b25d81a6
3 changed files with 3 additions and 2 deletions

View File

@@ -171,6 +171,7 @@ def get_nmap_scan_results():
host_info = {
"ip": host,
"status": scan_data.get("status", {}).get("state", "unknown"),
"hostname": scan_data.get("hostnames", [{}])[0].get("name", ""),
"open_ports": []
}
if "tcp" in scan_data: