mirror of
https://github.com/nmap/nmap.git
synced 2026-01-28 09:09:02 +00:00
Adding support for NSE + Ping Scan (-sP) for executing host scripts. So "-sPC", "-sP --script all" and "-sP --script ripeQuery" all work correctly
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -1622,7 +1622,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (currenths->flags & HOST_UP && !o.listscan)
|
||||
o.numhosts_up++;
|
||||
|
||||
if ((o.pingscan && !o.traceroute) || o.listscan) {
|
||||
if ((o.pingscan && !o.traceroute && !o.script) || o.listscan) {
|
||||
/* We're done with the hosts */
|
||||
log_write(LOG_XML, "<host>");
|
||||
write_host_status(currenths, o.resolve_all);
|
||||
|
||||
Reference in New Issue
Block a user