mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
f103db01f8
commit
5724d88eac
2 changed files with 4 additions and 1 deletions
|
|
@ -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 ********************************************/
|
||||
|
|
|
|||
|
|
@ -337,7 +337,7 @@ NpingOps::NpingOps() {
|
|||
|
||||
do_crypto=true;
|
||||
|
||||
echo_payload=true;
|
||||
echo_payload=false;
|
||||
|
||||
echo_server_once=false;
|
||||
echo_server_once_set=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue