mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Update some error messages to refer to Npcap, not WinPcap.
This commit is contained in:
14
NmapOps.cc
14
NmapOps.cc
@@ -429,15 +429,11 @@ void NmapOps::ValidateOptions() {
|
|||||||
const char *privreq = "root privileges.";
|
const char *privreq = "root privileges.";
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (!have_pcap)
|
if (!have_pcap)
|
||||||
privreq = "WinPcap version 3.1 or higher and\n\
|
privreq = "Npcap, but it seems to be missing.\n\
|
||||||
iphlpapi.dll. You seem to be missing one or both of these. Winpcap is\n\
|
Npcap is available from http://www.npcap.org. The Npcap driver service must\n\
|
||||||
available from http://www.winpcap.org. iphlpapi.dll comes with Win98 and\n\
|
be started by an administrator before Npcap can be used. Running nmap.exe\n\
|
||||||
later operating systems and NT 4.0 with SP4 or greater. For previous Windows\n\
|
will open a UAC dialog where you can start the service if you have\n\
|
||||||
versions, you may be able to take iphlpapi.dll from another system and place\n\
|
administrator privileges.";
|
||||||
it in your system32 dir (e.g. c:\\windows\\system32).\n\
|
|
||||||
On Windows Vista and Windows 7, The WinPcap NPF service must be started by an\n\
|
|
||||||
administrator before WinPcap can be used. Running nmap.exe will open a UAC\n\
|
|
||||||
dialog where you can start NPF if you have administrator privileges.";
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -353,17 +353,17 @@ void win_init()
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if(FAILED(__HrLoadAllImportsForDll("wpcap.dll")))
|
if(FAILED(__HrLoadAllImportsForDll("wpcap.dll")))
|
||||||
{
|
{
|
||||||
error("WARNING: your winpcap is too old to use. Nmap may not function.\n");
|
error("WARNING: Failed to load wpcap.dll. Nmap may not function.\n");
|
||||||
o.have_pcap = false;
|
o.have_pcap = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(o.debugging)
|
if(o.debugging)
|
||||||
printf("Winpcap present, dynamic linked to: %s\n", pcap_lib_version());
|
printf("wpcap.dll present, library version: %s\n", pcap_lib_version());
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
__except (1) {
|
__except (1) {
|
||||||
error("WARNING: Could not import all necessary Npcap functions. You may need to upgrade to version 0.07 or higher from http://www.npcap.org. Resorting to connect() mode -- Nmap may not function completely");
|
error("WARNING: Could not import all necessary Npcap functions. You may need to upgrade to the latest version from http://www.npcap.org. Resorting to connect() mode -- Nmap may not function completely");
|
||||||
o.have_pcap=false;
|
o.have_pcap=false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -352,17 +352,17 @@ void win_init()
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if(FAILED(__HrLoadAllImportsForDll("wpcap.dll")))
|
if(FAILED(__HrLoadAllImportsForDll("wpcap.dll")))
|
||||||
{
|
{
|
||||||
error("WARNING: your winpcap is too old to use. Nping may not function.\n");
|
error("WARNING: Failed to load wpcap.dll. Nmap may not function.\n");
|
||||||
o.setHavePcap(false);
|
o.setHavePcap(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(o.getDebugging() >= DBG_1)
|
if(o.getDebugging() >= DBG_1)
|
||||||
printf("Winpcap present, dynamic linked to: %s\n", pcap_lib_version());
|
printf("wpcap.dll present, library version: %s\n", pcap_lib_version());
|
||||||
|
|
||||||
}
|
}
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
__except (1) {
|
__except (1) {
|
||||||
error("WARNING: Could not import all necessary Npcap functions. You may need to upgrade to version 0.07 or higher from http://www.npcap.org. Resorting to connect() mode -- Nping may not function completely");
|
error("WARNING: Could not import all necessary Npcap functions. You may need to upgrade to the latest version from http://www.npcap.org. Resorting to connect() mode -- Nmap may not function completely");
|
||||||
o.setHavePcap(false);
|
o.setHavePcap(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user