mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 14:39:03 +00:00
[Nping] Make --safe-payloads default, add --include-payloads
Resolving item from todo list:
o [Nping] The --safe-payloads option should be default (though we
should keep it for backward compatability). We could then introduce
--include-payloads for cases where they are desired.
-Documentation has not been updated.
This commit is contained in:
@@ -250,6 +250,7 @@ char errstr[256];
|
||||
{"nc", no_argument, 0, 0},
|
||||
{"once", no_argument, 0, 0},
|
||||
{"safe-payloads", no_argument, 0, 0},
|
||||
{"include-payloads", no_argument, 0, 0},
|
||||
|
||||
/* Timing and performance */
|
||||
{"delay", required_argument, 0, 0},
|
||||
@@ -902,6 +903,8 @@ char errstr[256];
|
||||
o.doCrypto(false);
|
||||
} else if (optcmp(long_options[option_index].name, "safe-payloads")==0 ){
|
||||
o.echoPayload(false);
|
||||
} else if (optcmp(long_options[option_index].name, "include-payloads")==0 ){
|
||||
o.echoPayload(true);
|
||||
|
||||
|
||||
/* TIMING AND PERFORMANCE OPTIONS ********************************************/
|
||||
|
||||
Reference in New Issue
Block a user