mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Clarify docs around timing templates [ci skip]
This commit is contained in:
@@ -3092,12 +3092,22 @@ between sending each probe. <option>T1</option> and
|
||||
seconds, respectively, between probes. <option>T3</option><indexterm><primary><literal>normal</literal> (<option>-T3</option>) timing template</primary></indexterm> is Nmap's
|
||||
default behavior, which includes parallelization.
|
||||
<option>-T4</option>
|
||||
does the equivalent of <option>--max-rtt-timeout 1250ms --min-rtt-timeout 100ms
|
||||
--initial-rtt-timeout 500ms --max-retries 6</option> and sets the maximum TCP and SCTP scan delay
|
||||
does the equivalent of <option>
|
||||
--max-rtt-timeout 1250ms
|
||||
--min-rtt-timeout 100ms
|
||||
--initial-rtt-timeout 500ms
|
||||
--max-retries 6
|
||||
</option> and sets the maximum TCP and SCTP scan delay
|
||||
to 10ms. <option>T5</option>
|
||||
does the equivalent of
|
||||
<option>--max-rtt-timeout 300ms --min-rtt-timeout 50ms
|
||||
--initial-rtt-timeout 250ms --max-retries 2 --host-timeout 15m --script-timeout 10m --max-scan-delay</option> as well as
|
||||
<option>
|
||||
--max-rtt-timeout 300ms
|
||||
--min-rtt-timeout 50ms
|
||||
--initial-rtt-timeout 250ms
|
||||
--max-retries 2
|
||||
--host-timeout 15m
|
||||
--script-timeout 10m
|
||||
</option> as well as
|
||||
setting the maximum TCP and SCTP scan delay to 5ms.
|
||||
Maximum UDP scan delay is not set by <option>T4</option> or <option>T5</option>, but it can be set with the <option>--max-scan-delay</option> option.
|
||||
</para>
|
||||
|
||||
10
nmap.cc
10
nmap.cc
@@ -1338,13 +1338,13 @@ void parse_options(int argc, char **argv) {
|
||||
if (*optarg == '0' || (strcasecmp(optarg, "Paranoid") == 0)) {
|
||||
o.timing_level = 0;
|
||||
o.max_parallelism = 1;
|
||||
o.scan_delay = 300000;
|
||||
o.setInitialRttTimeout(300000);
|
||||
o.scan_delay = 300000; // 5 minutes
|
||||
o.setInitialRttTimeout(300000); // 5 minutes, also sets max-rtt-timeout
|
||||
} else if (*optarg == '1' || (strcasecmp(optarg, "Sneaky") == 0)) {
|
||||
o.timing_level = 1;
|
||||
o.max_parallelism = 1;
|
||||
o.scan_delay = 15000;
|
||||
o.setInitialRttTimeout(15000);
|
||||
o.scan_delay = 15000; // 15 seconds
|
||||
o.setInitialRttTimeout(15000); // 15 seconds, also sets max-rtt-timeout
|
||||
} else if (*optarg == '2' || (strcasecmp(optarg, "Polite") == 0)) {
|
||||
o.timing_level = 2;
|
||||
o.max_parallelism = 1;
|
||||
@@ -1365,7 +1365,7 @@ void parse_options(int argc, char **argv) {
|
||||
o.setMinRttTimeout(50);
|
||||
o.setMaxRttTimeout(300);
|
||||
o.setInitialRttTimeout(250);
|
||||
o.host_timeout = 900000;
|
||||
o.host_timeout = 900000; // 15 minutes
|
||||
o.setMaxTCPScanDelay(5);
|
||||
o.setMaxSCTPScanDelay(5);
|
||||
// No call to setMaxUDPScanDelay because of rate-limiting and unreliability
|
||||
|
||||
Reference in New Issue
Block a user