mirror of
https://github.com/nmap/nmap.git
synced 2026-12-02 04:20:59 +00:00
Update flag name
This commit is contained in:
parent
2c948ffdfd
commit
0dc3dbd803
5 changed files with 7 additions and 7 deletions
|
|
@ -338,7 +338,7 @@ void NmapOps::Initialize() {
|
|||
proxy_chain = NULL;
|
||||
resuming = false;
|
||||
discovery_ignore_rst = false;
|
||||
force_sqlping = false;
|
||||
sqlping-payload = false;
|
||||
}
|
||||
|
||||
bool NmapOps::SCTPScan() {
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ class NmapOps {
|
|||
|
||||
nsock_proxychain proxy_chain;
|
||||
bool discovery_ignore_rst; /* host discovery should not consider TCP RST packet responses as a live asset */
|
||||
bool force_sqlping;
|
||||
bool sqlping-payload;
|
||||
|
||||
#ifndef NOLUA
|
||||
bool script;
|
||||
|
|
|
|||
|
|
@ -1161,7 +1161,7 @@ This causes Nmap to print out extensive debugging info about what version scanni
|
|||
\fB\-\-packet\-trace\fR\&.
|
||||
.RE
|
||||
.PP
|
||||
\fB\-\-force\-sqlping\fR
|
||||
\fB\-\-sqlping\-payload\fR
|
||||
.RS 4
|
||||
This option overrides the default \fBno-payload\fR behavior of the \fBSqlping\fR UDP probe. It ensures the probe is sent during UDP scans (\fB-sU\fR) and version scans (\fB-sV\fR). This can be used to help change a UDP port's state from \fIopen|filtered\fR to \fIopen\fR by eliciting a response, and it ensures the specific MS-SQL server check is performed during a version scan.
|
||||
.RE
|
||||
|
|
|
|||
6
nmap.cc
6
nmap.cc
|
|
@ -568,7 +568,7 @@ void parse_options(int argc, char **argv) {
|
|||
{"proxies", required_argument, 0, 0},
|
||||
{"proxy", required_argument, 0, 0},
|
||||
{"discovery-ignore-rst", no_argument, 0, 0},
|
||||
{"force-sqlping", no_argument, 0, 0},
|
||||
{"sqlping-payload", no_argument, 0, 0},
|
||||
{"osscan-limit", no_argument, 0, 0}, /* skip OSScan if no open ports */
|
||||
{"osscan-guess", no_argument, 0, 0}, /* More guessing flexibility */
|
||||
{"fuzzy", no_argument, 0, 0}, /* Alias for osscan_guess */
|
||||
|
|
@ -812,8 +812,8 @@ void parse_options(int argc, char **argv) {
|
|||
fatal("Invalid proxy chain specification");
|
||||
} else if (strcmp(long_options[option_index].name, "discovery-ignore-rst") == 0) {
|
||||
o.discovery_ignore_rst = true;
|
||||
} else if (strcmp(long_options[option_index].name, "force-sqlping") == 0) {
|
||||
o.force_sqlping = true;
|
||||
} else if (strcmp(long_options[option_index].name, "sqlping-payload") == 0) {
|
||||
o.sqlping-payload = true;
|
||||
} else if (strcmp(long_options[option_index].name, "osscan-limit") == 0) {
|
||||
o.osscan_limit = true;
|
||||
} else if (strcmp(long_options[option_index].name, "osscan-guess") == 0
|
||||
|
|
|
|||
|
|
@ -1167,7 +1167,7 @@ void ServiceProbe::setProbeDetails(char *pd, int lineno) {
|
|||
}
|
||||
|
||||
if (probename && strcmp(probename, "Sqlping") == 0) {
|
||||
if (o.force_sqlping) {
|
||||
if (o.sqlping-payload) {
|
||||
log_write(LOG_STDOUT, "User-forced Sqlping: overriding no-payload directive.\n");
|
||||
notForPayload = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue