diff --git a/NmapOps.cc b/NmapOps.cc index 369fbdbe0..7f0ff9667 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -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() { diff --git a/NmapOps.h b/NmapOps.h index fcd9050fa..3288eda69 100644 --- a/NmapOps.h +++ b/NmapOps.h @@ -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; diff --git a/docs/nmap.1 b/docs/nmap.1 index 9eb0015e6..2b39a039f 100644 --- a/docs/nmap.1 +++ b/docs/nmap.1 @@ -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 diff --git a/nmap.cc b/nmap.cc index 14265fdb4..e02744927 100644 --- a/nmap.cc +++ b/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 diff --git a/service_scan.cc b/service_scan.cc index 57239e361..2a4d23819 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -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; }