mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 15:39:05 +00:00
adab33deb905ba52486672a9f7dab15acabcf251
need to have all the routes available before assigning interfaces to handle a situation like the following: # nmap --iflist ************************INTERFACES************************ DEV (SHORT) IP/MASK TYPE UP MAC lo0 (lo0) 127.0.0.1/8 loopback up ppp0 (ppp0) YY.YY.YY.YY/16 point2point up # netstat -rn Destination Gateway Flags Refs Use Netif Expire default XX.XX.XX.XX UGSc 7 16 ppp0 XX.XX.XX.XX YY.YY.YY.YY UH 8 0 ppp0 Here the second route can be matched up immediately with the ppp0 device, because the YY.YY.YY.YY gateway address matches the YY.YY.YY.YY/16 IP and mask of ppp0. But the first route (default) needs to go through the second route in order to find its interface. So we don't reject the default route immediately, but save it an try to match it with an interface after all routes have been found. See http://seclists.org/nmap-dev/2008/q4/0576.html for more information.
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%