Nmap - the Network Mapper. Github mirror of official SVN repository. https://svn.nmap.org/
Find a file
david 77119bb4d8 Use the cached value of recv_fd when removing descriptors from the read
and broadcast lists when a connection is broken, instead of re-reading
the descriptor from the fdinfo struct. The problem was that there were
two calls to rm_fd, and the first one invalidated the data that the
struct pointer pointed to.

For some reason this didn't cause any problems in most situations. Mak
Kolybabi reported that it caused a segfault in
	ncat -l --ssl -k -v 5061 > /dev/null < /dev/zero
With SSL, new connections would try to read memory that was previously
freed, as descriptors were not being removed from the broadcast list as
they were removed from the read list.

You can see the error in these debug logs:

NCAT DEBUG: Closing connection.
NCAT DEBUG: Swapping fd[2] (4) with fd[3] (5)
NCAT DEBUG: Removed fd 4 from list, nfds 3, maxfd 5
NCAT DEBUG: Swapping fd[1] (5) with fd[1] (5)
NCAT DEBUG: Removed fd 5 from list, nfds 1, maxfd 4

The "Remove fd X" should have the same X in both lines.
2010-02-23 20:59:31 +00:00
docs minor updates to TODO 2010-02-23 06:35:25 +00:00
libdnet-stripped Include AC_INCLUDES_DEFAULT (which includes <sys/types.h>), in addition 2010-01-14 16:47:28 +00:00
liblua Fix all the compiler warnings when building with Visual C++ 2008. 2009-04-29 17:56:30 +00:00
libpcap Fix a messed-up patch in NMAP_MODIFICATIONS. 2009-11-04 18:50:55 +00:00
libpcre Changed the build system a bit. Removed Makefile.am since we no longer have all the files needed to recreate it in the libpcre directory anyway. I had to edit Makefile.in to remove references to it too. Removed some configure.ac code which lead to removing pcre_chartables.cc; regenerated configure and aclocal 2009-06-07 06:43:32 +00:00
macosx Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping 2010-02-17 01:46:34 +00:00
mswin32 Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping 2010-02-17 01:46:34 +00:00
ndiff latest generated man pages 2010-02-19 06:28:14 +00:00
nselib o [NSE] Added a new library for LDAP and two new scripts: 2010-02-21 08:52:44 +00:00
scripts Remove TRACE from the http-methods.nse "uninteresting" set on a 2010-02-22 21:42:47 +00:00
acinclude.m4
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 Use the cached value of recv_fd when removing descriptors from the read 2010-02-23 20:59:31 +00:00
charpool.cc Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
charpool.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +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 Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping 2010-02-17 01:46:34 +00:00
configure.ac Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping 2010-02-17 01:46:34 +00:00
COPYING Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
COPYING.OpenSSL
depcomp
FingerPrintResults.cc Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS 2009-11-23 21:22:07 +00:00
FingerPrintResults.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
global_structures.h Add a constructor for FingerPrint. 2009-12-18 07:59:31 +00:00
HACKING
idle_scan.cc Change PortList::getPortState to return the default port state if the 2010-01-26 20:46:26 +00:00
idle_scan.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
INSTALL
ltmain.sh Update ltmain.sh to version 2.2.6 for libdnet. 2009-08-07 17:42:12 +00:00
MACLookup.cc Use an std::map instead of a custom hash table for MAC address prefix 2009-11-11 21:25:07 +00:00
MACLookup.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
main.cc Signal handling fixes: fixed nbase configure to actually set HAVE_SIGNAL 2009-08-13 21:54:55 +00:00
Makefile.in Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping 2010-02-17 01:46:34 +00:00
missing
nmap-header-template.cc Remove a stray trailing space from nmap-header-template.cc. 2009-08-19 21:05:21 +00:00
nmap-mac-prefixes update to the latest mac address prefixes from ieee's oui.txt 2009-11-06 07:42:37 +00:00
nmap-os-db Regenerate all the auto-generated Nmap files in prep for the next release 2010-01-15 08:27:21 +00:00
nmap-protocols
nmap-rpc
nmap-service-probes Corrected incorrect match line for SqueezeCenter CLI and added song count 2010-02-16 16:09:54 +00:00
nmap-services Rename port 2000 from callbook to cisco-sccp, include 4190 as sieve (ManageSieve). Patch from Matt Selsky) 2009-12-17 06:32:42 +00:00
nmap.cc o The -v and -d options are now handled in the same way. The three 2010-02-17 19:12:15 +00:00
nmap.h Update version number to 5.21 to reflect the latest Nmap user (even though technically the 5.21 release is coming from the /nmap-exp/stable-5.2 branch 2010-01-27 02:51:09 +00:00
nmap.spec.in Package translated man pages in the RPM spec file. 2009-11-05 22:29:19 +00:00
nmap_amigaos.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
nmap_config.h.in remove PCAP_TIMEOUT_IGNORED define since it isn't used anywhere currently 2009-05-20 21:15:37 +00:00
nmap_dns.cc Fix these compiler warnings with a patch from Solar Designer: 2010-01-28 18:55:08 +00:00
nmap_dns.h Merge from svn://svn.insecure.org/nmap-exp/david/nmap-traceroute. This 2009-09-17 00:03:46 +00:00
nmap_error.cc Revert r16464. 2010-01-15 03:55:23 +00:00
nmap_error.h Fix these compiler warnings with a patch from Solar Designer: 2010-01-28 18:55:08 +00:00
nmap_rpc.cc Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
nmap_rpc.h Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
nmap_tty.cc Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
nmap_tty.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
nmap_winconfig.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
NmapOps.cc Give more information about possible causes and solutions when WinPcap fails to 2010-01-15 05:39:25 +00:00
NmapOps.h Rename the o.pingscan variable to o.noportscan to reflect its true 2009-07-17 01:02:57 +00:00
NmapOutputTable.cc Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
NmapOutputTable.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +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
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 [NSE] Applied change to remove the old nse_macros.h header file. 2009-06-07 01:25:53 +00:00
nse_fs.h [NSE] Applied change to remove the old nse_macros.h header file. 2009-06-07 01:25:53 +00:00
nse_main.cc Use defines for library names "nmap" and "stdnse.c" 2010-02-06 00:59:33 +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 Fix bug where Lua will load original, optional Lua libraries when we have 2010-01-21 18:56:30 +00:00
nse_nmaplib.cc o Added a mac_addr_next_hop member to the host tables used in NSE. 2010-02-13 01:48: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 Revert r16464. 2010-01-15 03:55:23 +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 Corrected many #includes for header files (where they are included). 2009-03-10 05:56:10 +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
nse_ssl_cert.cc Fix a typo in a comment. 2010-01-28 19:12:11 +00:00
nse_ssl_cert.h Add the nmap.get_ssl_certificate NSE function, which returns the peer 2009-08-13 23:32:33 +00:00
osscan.cc Add a constructor for FingerPrint. 2009-12-18 07:59:31 +00:00
osscan.h Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS 2009-11-23 21:22:07 +00:00
osscan2.cc Revert r16464. 2010-01-15 03:55:23 +00:00
osscan2.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
output.cc Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
output.h Print host timing information ("Final times for host" and the times 2009-11-16 08:36:58 +00:00
payload.cc Use the Quake 2 and Quake 3 server status probes as UDP payloads. 2010-01-30 04:41:25 +00:00
payload.h Modified UDP-payload-related code to make it independent of the NmapOps class so it can be reused by other apps like Nping. More info at http://seclists.org/nmap-dev/2009/q3/0051.html 2009-07-07 18:21:30 +00:00
portlist.cc Change PortList::getPortState to return the default port state if the 2010-01-26 20:46:26 +00:00
portlist.h Change PortList::getPortState to return the default port state if the 2010-01-26 20:46:26 +00:00
portreasons.cc Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
portreasons.h Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
protocols.cc Updated uses of the ctype function to support explict casting of the arguments 2009-08-06 15:10:00 +00:00
protocols.h o Added initial SCTP port scanning support to Nmap. SCTP is 2009-06-03 23:15:45 +00:00
README-WIN32
scan_engine.cc Change PortList::getPortState to return the default port state if the 2010-01-26 20:46:26 +00:00
scan_engine.h o Added initial SCTP port scanning support to Nmap. SCTP is 2009-06-03 23:15:45 +00:00
service_scan.cc Only change the port state to PORT_OPEN during service scan if it is not 2010-01-26 20:14:29 +00:00
service_scan.h Add an n parameter to ServiceProbe::testMatch to enable getting all of 2009-12-19 08:30:18 +00:00
services.cc Updated uses of the ctype function to support explict casting of the arguments 2009-08-06 15:10:00 +00:00
services.h o Added initial SCTP port scanning support to Nmap. SCTP is 2009-06-03 23:15:45 +00:00
shtool
Target.cc Make the argument to Target::setTargetName const. 2009-10-26 23:12:20 +00:00
Target.h Fixing compilation when --without-liblua is used. 2010-01-24 08:57:38 +00:00
TargetGroup.cc Return the last host before skipping an octet in an IPv4 range exclude 2009-11-18 01:17:59 +00:00
TargetGroup.h Remove some obsolete syntax from a comment. 2009-11-16 23:17:59 +00:00
targets.cc Keep trace of the list of addresses a name resolved to, and print out 2009-10-27 06:08:04 +00:00
targets.h Split the load_exclude function into load_exclude_file and 2009-09-29 02:06:56 +00:00
tcpip.cc Revert r16464. 2010-01-15 03:55:23 +00:00
tcpip.h Merge from svn://svn.insecure.org/nmap-exp/david/nmap-traceroute. This 2009-09-17 00:03:46 +00:00
timing.cc Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
timing.h Suggest that people send patches to nmap-dev rather than to me directly 2009-04-15 00:37:03 +00:00
traceroute.cc Revert r16464. 2010-01-15 03:55:23 +00:00
traceroute.h Merge from svn://svn.insecure.org/nmap-exp/david/nmap-traceroute. This 2009-09-17 00:03:46 +00:00
utils.cc Replaced nmap's hex dump functions with new hexdump() included in nbase. Before 2009-08-25 18:09:19 +00:00
utils.h Replaced nmap's hex dump functions with new hexdump() included in nbase. Before 2009-08-25 18:09:19 +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 ).