Nmap Development mailing list archives

nmap --resume problem // Zenmap broken XML parsing


From: Hamid Kashfi <hamid () oissg org>
Date: Wed, 22 Jul 2009 21:51:04 +0430

Hi,

Let me thank you Nmap developers for the great 5.00 release .
I've had few problems using nmap , which hope to see them fixed
in next releases , or to get a response on how to solve them .

# nmap --resume problem.

While --resume ouput.gnmap working fine , resuming -oA scan sessions
seems to be broken like -oX ( as stated in documents ) . Doing large
scale scans
I'd be much more happy to have my results with -oA rather than a single
format, while
being able to resume it smoothly.

To resume such scans , I use "nmap --resume output.gnmap" with a header
like below :
-------
# Nmap 5.00 scan initiated Mon Jul 20 21:10:24 2009 as: nmap -T4 -sV -r
-v -n -oA scan -iL ip.txt --max-retries 3 --max-scan-delay 3
--host-timeout 15m --min-rate 300
-------

If everything goes fine I guess nmap should parse this header , resume
scan and append data to all three output formats , but it fails. Nmap
just append a new scan session
to previous output files (all .nmap , .gnmap , .xml ) and dies as below :

-------------------------------------
nmap --resume IRAN.gnmap

Starting Nmap 5.00 ( http://nmap.org ) at 2009-07-22 21:39 Iran Daylight
Time
NSE: Loaded 3 scripts for scanning.
Read data files from: e:\path\nmap
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 1.57 seconds
           Raw packets sent: 0 (0B) | Rcvd: 0 (0B)
-------------------------------------

And here`s what it adds to previous output files :

----------------------------------------

# Nmap 5.00 scan initiated Wed Jul 22 21:39:39 2009 as: nmap
--append-output -T4 -sV -r -v -n -oA scan -iL ip.txt --max-retries 3
--max-scan-delay 3 --host-timeout 15m --min-rate 300
---------------------------------------


I tried to experiment a test ,and result was funny !
I simply removed already-scanned  IPs from input files , and tried to
resume on a clean Ctrl+c ended session .
Nmap nicely resumed scan ! Now I`m wondering what`s going on under the
hood :) would you please clarify ?




## and second problem , Zenmap XML parsing :

Zenmap seems to fail reading XML files that are result of incomplete
scans ( like ended by ctrl+x )
or even XML files being appended by --resume . Is fixing the xml mess
manually , the only way to
have outputs back in Zenmap ?


Sincerely
Hamid.K





_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: