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
|
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.
|
default behavior, which includes parallelization.
|
||||||
<option>-T4</option>
|
<option>-T4</option>
|
||||||
does the equivalent of <option>--max-rtt-timeout 1250ms --min-rtt-timeout 100ms
|
does the equivalent of <option>
|
||||||
--initial-rtt-timeout 500ms --max-retries 6</option> and sets the maximum TCP and SCTP scan delay
|
--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>
|
to 10ms. <option>T5</option>
|
||||||
does the equivalent of
|
does the equivalent of
|
||||||
<option>--max-rtt-timeout 300ms --min-rtt-timeout 50ms
|
<option>
|
||||||
--initial-rtt-timeout 250ms --max-retries 2 --host-timeout 15m --script-timeout 10m --max-scan-delay</option> as well as
|
--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.
|
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.
|
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>
|
</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)) {
|
if (*optarg == '0' || (strcasecmp(optarg, "Paranoid") == 0)) {
|
||||||
o.timing_level = 0;
|
o.timing_level = 0;
|
||||||
o.max_parallelism = 1;
|
o.max_parallelism = 1;
|
||||||
o.scan_delay = 300000;
|
o.scan_delay = 300000; // 5 minutes
|
||||||
o.setInitialRttTimeout(300000);
|
o.setInitialRttTimeout(300000); // 5 minutes, also sets max-rtt-timeout
|
||||||
} else if (*optarg == '1' || (strcasecmp(optarg, "Sneaky") == 0)) {
|
} else if (*optarg == '1' || (strcasecmp(optarg, "Sneaky") == 0)) {
|
||||||
o.timing_level = 1;
|
o.timing_level = 1;
|
||||||
o.max_parallelism = 1;
|
o.max_parallelism = 1;
|
||||||
o.scan_delay = 15000;
|
o.scan_delay = 15000; // 15 seconds
|
||||||
o.setInitialRttTimeout(15000);
|
o.setInitialRttTimeout(15000); // 15 seconds, also sets max-rtt-timeout
|
||||||
} else if (*optarg == '2' || (strcasecmp(optarg, "Polite") == 0)) {
|
} else if (*optarg == '2' || (strcasecmp(optarg, "Polite") == 0)) {
|
||||||
o.timing_level = 2;
|
o.timing_level = 2;
|
||||||
o.max_parallelism = 1;
|
o.max_parallelism = 1;
|
||||||
@@ -1365,7 +1365,7 @@ void parse_options(int argc, char **argv) {
|
|||||||
o.setMinRttTimeout(50);
|
o.setMinRttTimeout(50);
|
||||||
o.setMaxRttTimeout(300);
|
o.setMaxRttTimeout(300);
|
||||||
o.setInitialRttTimeout(250);
|
o.setInitialRttTimeout(250);
|
||||||
o.host_timeout = 900000;
|
o.host_timeout = 900000; // 15 minutes
|
||||||
o.setMaxTCPScanDelay(5);
|
o.setMaxTCPScanDelay(5);
|
||||||
o.setMaxSCTPScanDelay(5);
|
o.setMaxSCTPScanDelay(5);
|
||||||
// No call to setMaxUDPScanDelay because of rate-limiting and unreliability
|
// No call to setMaxUDPScanDelay because of rate-limiting and unreliability
|
||||||
|
|||||||
Reference in New Issue
Block a user