diff --git a/CHANGELOG b/CHANGELOG index e4e132a6f..d5bb31ef5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ # Nmap Changelog ($Id$); -*-text-*- +o [Nping] Nping now skips localhost targets for privileged pings (with + an error message) because those generally don't work. + [David Fifield] + o [Ncat] Ncat now keeps running in connect mode after receiving EOF from the remote socket, unless --recv-only is in effect. [Tomas Hozza] diff --git a/nping/NpingTargets.cc b/nping/NpingTargets.cc index 5d33e7d21..7e69cf0fd 100644 --- a/nping/NpingTargets.cc +++ b/nping/NpingTargets.cc @@ -277,7 +277,13 @@ int NpingTargets::processSpecs(){ delete mytarget; continue; } - +#ifdef WIN32 + if (rnfo.ii.device_type == devt_loopback){ + outError(QT_2, "Skipping %s because Windows does not allow localhost scans (try --unprivileged).", mytarget->getTargetIPstr() ); + delete mytarget; + continue; + } +#endif /* Determine next hop */ if( rnfo.direct_connect ){ mytarget->setDirectlyConnected(true);