You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M1: Fix NmapAdapter two-stage correctness and remove the raw_flags fallback #70
tools/nmap/adapter.py still has the legacy raw_flags regex fallback and several two-stage edge cases: an attached output flag such as -oXout.xml is not detected, so -oX - is appended as well; -p ranges are stripped by _strip_version_flags(); and Stage 1 can report false opens.
Acceptance criteria
Append -oX - only when no XML output flag is present.
Preserve -p and port ranges across the Stage 1/Stage 2 split.
Remove the raw_flags fallback and require typed parameters.
Emit cancellation events and keep per-stage timeouts separate.
Add regression tests with a recorded Stage 1/Stage 2 transcript.
Additional observed behaviors during Stage 1/2 nmap runs against a target (192.0.2.10):
Non-standard HTTP ports (e.g., :8080) can be misclassified as http-proxy in Stage 1 and tcpwrapped (banner: null) in Stage 2 (subsequent http_probe on :8080 corrects the network.service node).
Even when Nmap XML includes <hostname name="host.example.com" type="PTR"/> and ostype="Linux", the persisted network.host node leaves hostname: null and os: null.
Activity
h45sh commentedon Dec 1, 2026
Additional observed behaviors during Stage 1/2
nmapruns against a target (192.0.2.10)::8080) can be misclassified ashttp-proxyin Stage 1 andtcpwrapped(banner: null) in Stage 2 (subsequenthttp_probeon:8080corrects thenetwork.servicenode).<hostname name="host.example.com" type="PTR"/>andostype="Linux", the persistednetwork.hostnode leaveshostname: nullandos: null.