Nmap Development mailing list archives
Re: [NSE] nmap timing info for scripts
From: "Eddie Bell" <ejlbell () gmail com>
Date: Thu, 10 Jan 2008 18:04:10 +0000
Good idea, maybe we could provide a variable/function that automatically gets set to a standardized value at each timing level so script developers could just do something like... set_timeout(tlevel_timeout) On 10/01/2008, Thomas Buchanan <TBuchanan () thecompassgrp net> wrote:
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 _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
_______________________________________________ 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)