mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 04:49:02 +00:00
0101e9e0ab45ebb8a99e40492a0938b74ac39f5e
dnet names to WinPcap names) to use the no-nonsense approach of simply calling DnetName2PcapName for every interface returned by getinterfaces. DnetName2PcapName calls intf_get_pcap_devname, which is same function called by eth_open on Windows, so now the output really reflects Nmap's view of the world. This doesn't remove interface aliases, so if you have any aliases enabled, you will see what look like duplicated lines. I have chosen to leave them in for now to assist with debugging if any alias-related problems come up in the future. They could be taken out easily if this is not desired. This brings what may be a startling change: the lo0 loopback interface no longer maps to /Device/NPF_GenericDialupAdapter, but to no adapter at all (signified by "<none>"). I believe the old behavior was wrong, merely an artifact of the way the code happened to line up two lists of interfaces. /Device/NFP_GenericDialupAdapter is for dialup and VPN capture, and the loopback interface isn't supported by WinPcap (or Windows for that matter) at all. See http://www.winpcap.org/misc/faq.htm#Q-5 http://www.winpcap.org/misc/faq.htm#Q-13
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.8%
Lua
28.1%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.2%