Nmap Development mailing list archives
[NSE] nmap timing info for scripts
From: "Thomas Buchanan" <TBuchanan () thecompassgrp net>
Date: Thu, 10 Jan 2008 11:15:32 -0600
Here is a quick little patch that exposes the nmap timing option to NSE scripts. A call to nmap.timing() will return a value of 0 - 5 corresponding to the nmap command line option -T0 through -T5 ("Paranoid", "Sneaky", "Polite", "Normal", "Aggressive", "Insane"). Patch tested on Windows XP and Linux. My thought in adding this is that scripts may want to adjust socket timeout values (or other timing variables) based on the timing profile selected by the user. For example, a user that sets -T2 may be willing to wait 20 or 30 seconds for a socket connect call to timeout, but a user that sets -T5 probably wants to get things done a little quicker. As always, questions or comments are welcome. Thomas
Attachment:
NSE-nmap-timing.patch
Description: NSE-nmap-timing.patch
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [NSE] nmap timing info for scripts Thomas Buchanan (Jan 10)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 10)
- RE: [NSE] nmap timing info for scripts Matthew Boyle (Jan 10)
- Re: [NSE] nmap timing info for scripts Kris Katterjohn (Jan 10)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 10)
- RE: [NSE] nmap timing info for scripts Thomas Buchanan (Jan 10)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 12)
- Re: [NSE] nmap timing info for scripts Brandon Enright (Jan 12)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 12)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 10)
- Re: [NSE] nmap timing info for scripts Eddie Bell (Jan 10)