1
0
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:
dmiller
2017-06-23 04:44:21 +00:00
parent 984a670c4c
commit bdd67aa68a
3 changed files with 11 additions and 15 deletions

View File

@@ -429,15 +429,11 @@ void NmapOps::ValidateOptions() {
const char *privreq = "root privileges.";
#ifdef WIN32
if (!have_pcap)
privreq = "WinPcap version 3.1 or higher and\n\
iphlpapi.dll. You seem to be missing one or both of these. Winpcap is\n\
available from http://www.winpcap.org. iphlpapi.dll comes with Win98 and\n\
later operating systems and NT 4.0 with SP4 or greater. For previous Windows\n\
versions, you may be able to take iphlpapi.dll from another system and place\n\
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.";
privreq = "Npcap, but it seems to be missing.\n\
Npcap is available from http://www.npcap.org. The Npcap driver service must\n\
be started by an administrator before Npcap can be used. Running nmap.exe\n\
will open a UAC dialog where you can start the service if you have\n\
administrator privileges.";
#endif

View File

@@ -353,17 +353,17 @@ void win_init()
#ifdef _MSC_VER
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;
}
#endif
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
__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;
}
#endif

View File

@@ -352,17 +352,17 @@ void win_init()
#ifdef _MSC_VER
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);
}
#endif
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
__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);
}
#endif