Nmap Development mailing list archives
Re: [NSE] scan traceroute hops
From: Henri Doreau <henri.doreau () gmail com>
Date: Mon, 6 Sep 2010 19:48:13 +0200
On 09/04/10 09:33, Djalal Harouni wrote: Pls find attached a new version of the script with some small improvements. * I've added a small check to not add the current scanned IP (host.ip). * I've improved some debug messages.
Thanks for the improvements Djalal! I agree that the name isn't as relevant as it could be. I like the name "targets-traceroute.nse" David suggested. Concerning the target.add() feature, I faced a behavior I wasn't expecting. If I try to add the current host.ip to the queue, it will work once and then fail. This is reproducible with the attached script and the command line : # ./nmap --datadir . --script add-self -sP -v --script-args newtargets scanme.insecure.org Starting Nmap 5.35DC18 ( http://nmap.org ) at 2010-09-06 19:42 CEST NSE: Loaded 1 scripts for scanning. NSE: Script Pre-scanning. Initiating Ping Scan at 19:42 Scanning scanme.insecure.org (64.13.134.52) [4 ports] Completed Ping Scan at 19:42, 0.20s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 19:42 Completed Parallel DNS resolution of 1 host. at 19:42, 0.00s elapsed NSE: Script scanning 64.13.134.52. NSE: Starting runlevel 1 (of 1) scan. Initiating NSE at 19:42 NSE: ADD-SELF: Added new target 64.13.134.52 Completed NSE at 19:42, 0.00s elapsed Nmap scan report for scanme.insecure.org (64.13.134.52) Host is up (0.19s latency). rDNS record for 64.13.134.52: scanme.nmap.org Initiating Ping Scan at 19:42 Scanning 64.13.134.52 [4 ports] Completed Ping Scan at 19:42, 0.20s elapsed (1 total hosts) NSE: Script scanning 64.13.134.52. NSE: Starting runlevel 1 (of 1) scan. Initiating NSE at 19:42 NSE: ADD-SELF: Error: failed to add targets, post-scanning phase or no resources. Completed NSE at 19:42, 0.00s elapsed Nmap scan report for scanme.nmap.org (64.13.134.52) Host is up (0.19s latency). NSE: Script Post-scanning. Read data files from: . Nmap done: 2 IP addresses (2 hosts up) scanned in 0.44 seconds Raw packets sent: 8 (304B) | Rcvd: 2 (56B) NSE: Script Post-scanning. Read data files from: . Nmap done: 2 IP addresses (2 hosts up) scanned in 0.46 seconds Raw packets sent: 8 (304B) | Rcvd: 2 (56B) Is this behavior expected? Am I missing something? Regards -- Henri Doreau
Attachment:
add-self.nse
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE] scan traceroute hops Henri Doreau (Sep 02)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 04)
- Re: [NSE] scan traceroute hops Kris Katterjohn (Sep 04)
- Re: [NSE] scan traceroute hops David Fifield (Sep 04)
- Re: [NSE] scan traceroute hops Henri Doreau (Sep 06)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 06)
- Re: [NSE] scan traceroute hops Henri Doreau (Sep 08)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 10)
- Re: [NSE] scan traceroute hops Kris Katterjohn (Sep 04)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 04)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 06)
- Re: [NSE] scan traceroute hops David Fifield (Sep 06)
- Re: [NSE] scan traceroute hops Djalal Harouni (Sep 09)
