mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
o Fixed a bug which caused -PN to erronously bail out for unprivileged
users. Thanks to Jabra (jabra(a)spl0it.org) for the report. [Kris] This was introduced when the ping probes were reorganized and moved out of NmapOps (the o.pingtype check wasn't copied over)
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -468,7 +468,7 @@ void validate_scan_lists(scan_lists &ports, NmapOps &o){
|
||||
assert(ports.ack_ping_count > 0);
|
||||
}
|
||||
|
||||
if (!o.isr00t || o.pf() != PF_INET) {
|
||||
if ((o.pingtype & PINGTYPE_TCP) && (!o.isr00t || o.pf() != PF_INET)) {
|
||||
// We will have to do a connect() style ping
|
||||
if (ports.syn_ping_count && ports.ack_ping_count) {
|
||||
fatal("Cannot use both SYN and ACK ping probes if you are nonroot or using IPv6");
|
||||
|
||||
Reference in New Issue
Block a user