Nmap - the Network Mapper. Github mirror of official SVN repository. https://svn.nmap.org/
Find a file
david 62c2276755 Properly match up directly connect routes with alias interface addresses
in getsysroutes_proc. This was already being done for non–directly
connected routes, those with a gateway. Victor Rudnev reported this bug.

The /proc/net/route file doesn't contain alias qualifications so we must
match them up after the fact with the interface table. When the gateway
address isn't set, use the route destination for matching instead.

For example, with these interfaces and routing table,

eth0      Link encap:Ethernet  HWaddr 00:50:BF:16:11:61
          inet addr:192.168.1.21  Bcast:192.168.1.255 Mask:255.255.255.0

eth0:1    Link encap:Ethernet  HWaddr 00:50:BF:16:11:61
          inet addr:192.168.0.21  Bcast:192.168.0.255 Mask:255.255.255.0

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

nmap --iflist before this commit:

DEV    (SHORT) IP/MASK         TYPE     UP MAC
eth0   (eth0)  192.168.1.21/24 ethernet up 00:50:BF:16:11:61
eth0:1 (eth0)  192.168.0.21/24 ethernet up 00:50:BF:16:11:61

DST/MASK       DEV    GATEWAY
192.168.1.0/24 eth0
192.168.0.0/24 eth0

nmap --iflist after this commit:

DEV    (SHORT) IP/MASK         TYPE     UP MAC
eth0   (eth0)  192.168.1.21/24 ethernet up 00:50:BF:16:11:61
eth0:1 (eth0)  192.168.0.21/24 ethernet up 00:50:BF:16:11:61

DST/MASK       DEV    GATEWAY
192.168.1.0/24 eth0
192.168.0.0/24 eth0:1
2010-07-04 17:42:49 +00:00
docs Add a section on generating and installing deb files from the RPMs using alien and dpkg on Debian/Ubuntu - thanks to Jason for posting details at http://seclists.org/nmap-dev/2010/q2/982 2010-06-30 05:08:36 +00:00
libdnet-stripped Document r17542 in NMAP_MODIFICATIONS. 2010-05-14 16:53:46 +00:00
liblua Fix all the compiler warnings when building with Visual C++ 2008. 2009-04-29 17:56:30 +00:00
libnetutil Properly match up directly connect routes with alias interface addresses 2010-07-04 17:42:49 +00:00
libpcap o [libpcap] Added a --disable-packet-ring option to force the use of 2010-05-26 20:43:09 +00:00
libpcre Revert mistaken r17962. 2010-06-09 17:20:50 +00:00
macosx Use capital letters in package names. The Snow Leopard PackageMaker seems to 2010-03-07 05:36:26 +00:00
mswin32 Use lzma compression in the winpcap-nmap.nsi too. This reduces the size of the 2010-06-30 15:04:42 +00:00
ndiff regenerate the man pages 2010-05-28 07:14:41 +00:00
nselib Strip newlines from the the portion of the http status line starting after a 2010-07-02 11:35:18 +00:00
scripts Accuracy and speed improvements to irc-unrealircd-backdoor.nse. The main 2010-07-01 00:11:59 +00:00
todo add task about implementing security technologies such as dep and aslr on Win 2010-07-03 21:16:56 +00:00
acinclude.m4 Add a check to see if the libpcap library needs and has a workaround for the 2010-04-20 23:22:48 +00:00
aclocal.m4 Add --enable-nls and --disable-nls options to configure. These are used 2009-11-05 19:50:33 +00:00
BSDmakefile Merged -r13793:HEAD from nmap-exp/dev/nmap branch now that we're opening up trunk development 2009-06-29 23:48:19 +00:00
CHANGELOG Document irc-unrealircd-backdoor.nse in CHANGELOG. 2010-07-01 00:15:28 +00:00
charpool.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
charpool.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
config.guess Update config.sub and config.guess from 2009-08-19 01:16:21 +00:00
config.sub Update config.sub and config.guess from 2009-08-19 01:16:21 +00:00
configure Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
configure.ac Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
COPYING Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
COPYING.OpenSSL
depcomp Delete auxiliary scripts config.guess, config.sub, depcomp, install-sh, 2007-11-27 06:22:46 +00:00
FingerPrintResults.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
FingerPrintResults.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
global_structures.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
HACKING Fixed a couple of trivial errors 2010-05-23 17:42:44 +00:00
idle_scan.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
idle_scan.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
INSTALL URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
ltmain.sh Update ltmain.sh to version 2.2.6 for libdnet. 2009-08-07 17:42:12 +00:00
MACLookup.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
MACLookup.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
main.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
Makefile.in Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
missing Delete auxiliary scripts config.guess, config.sub, depcomp, install-sh, 2007-11-27 06:22:46 +00:00
nmap-header-template.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap-mac-prefixes Update nmap-mac-prefixes to include latest IEEE data 2010-06-30 22:14:12 +00:00
nmap-os-db Small updates to copyright headers in some files which don't have the headers automatically replaced 2010-05-24 23:52:34 +00:00
nmap-payloads Fix two discrepancies in the nmap-payloads compared to old payload.cc: 2010-05-25 18:35:48 +00:00
nmap-protocols URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
nmap-rpc URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
nmap-service-probes New and fixed nmap-service-probes probes from Matt Selsky. 2010-06-18 19:43:23 +00:00
nmap-services Small updates to copyright headers in some files which don't have the headers automatically replaced 2010-05-24 23:52:34 +00:00
nmap.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
nmap.h remove unneeded OS_SCAN_DEFAULT #define (multi-gen support is long gone) 2010-05-06 23:00:09 +00:00
nmap.spec.in Try adding the 0. version number prefix to the nping RPM package. 2010-03-29 20:45:10 +00:00
nmap_amigaos.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_config.h.in Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
nmap_dns.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
nmap_dns.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_error.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_error.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_rpc.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
nmap_rpc.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_tty.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_tty.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nmap_winconfig.h Move the WIN32 definition of __func__ from nmap_winconfig.h to nbase_winconfig.h. 2010-05-06 14:15:27 +00:00
NmapOps.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
NmapOps.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
NmapOutputTable.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
NmapOutputTable.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nse_binlib.cc Updated uses of the ctype function to support explict casting of the arguments 2009-08-06 15:10:00 +00:00
nse_binlib.h added nse_binlib.h 2008-07-31 14:18:21 +00:00
nse_bit.cc Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +00:00
nse_bit.h Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +00:00
nse_debug.cc Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +00:00
nse_debug.h Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +00:00
nse_fs.cc Merge r17640:18062 from /nmap-exp/djalal/nmap, this is a port of the LuaFileSystem directory iterator in order to use Lua code to list scripts. 2010-06-12 21:41:09 +00:00
nse_fs.h Merge r17640:18062 from /nmap-exp/djalal/nmap, this is a port of the LuaFileSystem directory iterator in order to use Lua code to list scripts. 2010-06-12 21:41:09 +00:00
nse_main.cc Merge r17640:18062 from /nmap-exp/djalal/nmap, this is a port of the LuaFileSystem directory iterator in order to use Lua code to list scripts. 2010-06-12 21:41:09 +00:00
nse_main.h Use a list instead of a vector for ScriptResults; it's 8 bytes instead 2009-12-20 03:29:35 +00:00
nse_main.lua Merge r17640:18062 from /nmap-exp/djalal/nmap, this is a port of the LuaFileSystem directory iterator in order to use Lua code to list scripts. 2010-06-12 21:41:09 +00:00
nse_nmaplib.cc Merge r18160:18278 from nmap-exp/djalal/nmap-nse/ to fix NSE not honoring the exclude directive bug. 2010-06-29 21:56:59 +00:00
nse_nmaplib.h Use defines for library names "nmap" and "stdnse.c" 2010-02-06 00:59:33 +00:00
nse_nsock.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
nse_nsock.h Make some changes to nse_ssl_cert.cc for Windows compilation. 2009-08-14 04:44:19 +00:00
nse_openssl.cc Fix a problem in the changes to the openssl NSE library made in r17002 2010-03-28 21:18:02 +00:00
nse_openssl.h Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +00:00
nse_pcrelib.cc Fix a memory leak in nse_pcrelib.cc. A string was being copied with 2009-07-23 02:59:57 +00:00
nse_pcrelib.h Revert r5485. This changes the pcre Lua module back to statically linked 2007-10-23 00:45:00 +00:00
nse_ssl_cert.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
nse_ssl_cert.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
osscan.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
osscan.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
osscan2.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
osscan2.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
output.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
output.h Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
payload.cc just whitespace fixes 2010-06-15 18:02:05 +00:00
payload.h Merge Jay Fink's patch that puts UDP payloads in an external data file 2010-05-25 17:38:23 +00:00
portlist.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
portlist.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
portreasons.cc Ports are now considered open during a SYN scan if a SYN packet (without the ACK 2010-06-08 01:50:45 +00:00
portreasons.h Ports are now considered open during a SYN scan if a SYN packet (without the ACK 2010-06-08 01:50:45 +00:00
protocols.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
protocols.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
README-WIN32 URL change from http://insecure.org/nmap/* to http://nmap.org/* 2008-01-17 07:22:03 +00:00
scan_engine.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
scan_engine.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
service_scan.cc Merge r18160:18278 from nmap-exp/djalal/nmap-nse/ to fix NSE not honoring the exclude directive bug. 2010-06-29 21:56:59 +00:00
service_scan.h Merge r18160:18278 from nmap-exp/djalal/nmap-nse/ to fix NSE not honoring the exclude directive bug. 2010-06-29 21:56:59 +00:00
services.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
services.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
shtool Upgrade shtool to version 2.0.8. This is supposed to fix NLS problems with 2008-08-19 17:49:47 +00:00
Target.cc Make const these methods of Target: 2010-06-07 22:09:37 +00:00
Target.h Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
TargetGroup.cc Fixed small format specifier error that caused a compiler warning 2010-06-22 17:47:32 +00:00
TargetGroup.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
targets.cc Check for target->deviceName == NULL in target_needs_new_hostgroup in 2010-06-25 05:34:08 +00:00
targets.h Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
tcpip.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
tcpip.h Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
timing.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
timing.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
traceroute.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
traceroute.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
utils.cc Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
utils.h Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
xml.cc Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
xml.h Update copyright year from 2009 to 2010 2010-05-03 21:20:25 +00:00
zenmap.spec.in Cope with not having the pysqlite2 or sqlite3 modules in Zenmap by 2009-06-12 22:34:50 +00:00

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 ).