1
0
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:
colin
2011-11-30 03:09:04 +00:00
parent f103db01f8
commit 5724d88eac
2 changed files with 4 additions and 1 deletions

View File

@@ -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 ********************************************/