Nmap - the Network Mapper. Github mirror of official SVN repository. https://svn.nmap.org/
Find a file
david 23625913a8 Create (and close) a new socket in rpc Connect, don't reuse one.
It appears that connecting more than one with the same nse_nsock socket
leaks socket descriptor. For example,

local s = nmap.new_socket()
s:connect(host, port) --> TIMEOUT
s:connect(host, port) --> TIMEOUT
s:close()

leaks a socket descriptor, the one used in the first connect. Nsock
should really take care of this, but let's do this workaround because
rpc-grind has been causing problems due to using the above pattern:

http://seclists.org/nmap-dev/2012/q3/864
http://seclists.org/nmap-dev/2012/q3/872
http://seclists.org/nmap-dev/2012/q3/949

The difficulty is that the rpc library will tolerate around 400 of those
timeouts per RPC connection, which leads to rapidly running out of
descriptors.
2012-09-21 01:08:14 +00:00
docs Move copyright year from 2011 to 2012 (I suppose I should have done this in January rather than September, but better late than never 2012-09-18 09:04:54 +00:00
libdnet-stripped Skip over entire ifreq struct in NEXTIFR. 2012-09-10 01:17:28 +00:00
liblinear Changed the active(release) compile setting from MT to MD to bring it in line with all of the other Nmap projects to fix the ' 2012-06-21 05:06:34 +00:00
liblua Fixed the LNK4006 warning from http://seclists.org/nmap-dev/2006/q3/22 2012-06-21 04:33:09 +00:00
libnetutil Uniformity and style in resolve functions. 2012-09-15 17:56:16 +00:00
libpcap Rearrange libpcap patch files for AIX compatibility. 2012-04-13 15:50:15 +00:00
libpcre Merge from /nmap-exp/luis/nmap-os6. 2011-09-19 18:31:46 +00:00
macosx Our Zenmap packages don't run on PowerPC Macs anymore (since 5.61TEST4). 2012-05-22 20:13:15 +00:00
mswin32 Removed nmap_rpc imports from windows vc++ build file. 2012-08-17 18:47:23 +00:00
nbase Regen with Autoconf 2.68 and aclocal 1.11.6. 2012-09-19 16:41:35 +00:00
ncat Regen with Autoconf 2.68 and aclocal 1.11.6. 2012-09-19 16:41:35 +00:00
ndiff Get rid of ndiff.py symlink. 2012-08-02 18:35:36 +00:00
nmap-update Move -Wno-deprecated-declarations from Makefile.in to configure.ac. 2012-09-19 15:33:56 +00:00
nping Fix a bug in the argparser. When users pass 'random' as an IPv6 address, the randomly generated address never gets stored. This was reported and fixed by Mark Atkinson. More info: http://seclists.org/nmap-dev/2012/q3/950 2012-09-20 20:40:38 +00:00
nselib Create (and close) a new socket in rpc Connect, don't reuse one. 2012-09-21 01:08:14 +00:00
nsock Regen with Autoconf 2.68 and aclocal 1.11.6. 2012-09-19 16:41:35 +00:00
scripts Add cassandra scripts from Vlatko Kosturjak. 2012-09-20 06:30:48 +00:00
todo Note a finished task 2012-09-18 09:01:04 +00:00
zenmap Make all host filters case-insensitive 2012-09-13 20:24:19 +00:00
acinclude.m4 Don't use exit in PCAP_IS_SUITABLE. 2012-09-08 19:44:24 +00:00
aclocal.m4 Regen with Autoconf 2.68 and aclocal 1.11.6. 2012-09-19 16:41:35 +00:00
BSDmakefile
CHANGELOG Add cassandra scripts from Vlatko Kosturjak. 2012-09-20 06:30:48 +00:00
charpool.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
charpool.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
config.guess
config.sub
configure Regen with Autoconf 2.68 and aclocal 1.11.6. 2012-09-19 16:41:35 +00:00
configure.ac Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
COPYING One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
depcomp
FingerPrintResults.cc Change "perfect match" test in FingerPrintResults::populateClassification. 2012-03-07 18:23:33 +00:00
FingerPrintResults.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
FPEngine.cc Don't allow matching probes that haven't been sent. 2012-03-22 01:30:47 +00:00
FPEngine.h Fixed the compile time warning of warning: deleting object of polymorphic class type ‘FPHost6’ which has non-virtual destructor might cause undefined behaviour by making the destructor virtual. 2012-07-21 00:56:13 +00:00
FPModel.cc Some OS classification changes. 2012-03-07 17:59:55 +00:00
global_structures.h First commit from rpc-grind branch. 2012-08-17 18:30:11 +00:00
HACKING Updated information and procedures from the project's HACKING file. 2012-07-09 22:53:46 +00:00
idle_scan.cc Show gai_strerror in some error messages. 2012-09-15 17:56:14 +00:00
idle_scan.h Style in idle_scan.{cc,h}. 2012-08-28 07:50:09 +00:00
INSTALL
ltmain.sh
MACLookup.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
MACLookup.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
main.cc Moved the setuid check from main.cc to nmap.cc after option parsing so that I can use error() and have it write to output file with --log-errors, etc. I did receive a complaint that the setuid warning isn't converted to script kiddie mode when -oS is enabled. If we decide that we want script kiddify error messages, we'll have to add that support to error() 2012-06-02 18:08:39 +00:00
Makefile.in Add a lua-format Makefile target to format scripts/*.nse. 2012-09-13 00:17:42 +00:00
missing
nmap-header-template.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap-mac-prefixes Update to the latest MAC prefixes from IEEE as of right now 2012-03-09 00:45:55 +00:00
nmap-os-db just auto-sorting 2012-09-18 09:02:29 +00:00
nmap-payloads
nmap-protocols
nmap-rpc Added missing service name for Inter-Language Unification in nmap-rpc. 2012-07-24 12:32:31 +00:00
nmap-service-probes Fix broken service matches 2012-09-20 19:21:34 +00:00
nmap-services rebuilt nmap-services to include memcachedb on 21201/tcp 2012-06-26 23:59:19 +00:00
nmap.cc Show gai_strerror in some error messages. 2012-09-15 17:56:14 +00:00
nmap.h Added an extra level of indirection to let the compiler properly expand the macro. 2012-09-03 13:39:43 +00:00
nmap.spec.in Split nmap-update into its own RPM. 2012-02-25 02:23:55 +00:00
nmap_amigaos.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap_config.h.in Define SOLARIS_BPF_PCAP_CAPTURE for Solaris 11. 2012-04-07 08:07:41 +00:00
nmap_dns.cc Show gai_strerror in some error messages. 2012-09-15 17:56:14 +00:00
nmap_dns.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap_error.cc Remove some redundant code now that --log-errors is gone. 2012-06-30 01:51:30 +00:00
nmap_error.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap_tty.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap_tty.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nmap_winconfig.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
NmapOps.cc Make magic_port_set a bool. 2012-08-28 13:07:19 +00:00
NmapOps.h Use an unsigned int for --max-retries and related values. 2012-08-28 14:29:11 +00:00
NmapOutputTable.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
NmapOutputTable.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nse_binlib.cc Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_binlib.h
nse_bit.cc Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_bit.h
nse_debug.cc Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_debug.h
nse_dnet.cc Let dnet:ip_send take a destination address. 2012-09-15 17:56:19 +00:00
nse_dnet.h Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_fs.cc Applied a patch provided by jah that solves a problem with includes on windows. 2012-07-21 13:08:34 +00:00
nse_fs.h Add parts of LuaFileSystem to NSE (support for mkdir, rmdir, link). 2012-07-17 18:07:28 +00:00
nse_main.cc Handle NSE-returned strings with null characters 2012-08-17 20:14:44 +00:00
nse_main.h Handle NSE-returned strings with null characters 2012-08-17 20:14:44 +00:00
nse_main.lua Provide a default {} value for script categories. 2012-08-28 12:17:36 +00:00
nse_nmaplib.cc Index nmap.list_intefaces return value from 1, not 0. 2012-09-01 03:19:00 +00:00
nse_nmaplib.h Remove references to obsolete stdnse.c library. 2012-08-08 19:21:44 +00:00
nse_nsock.cc Fixed memory leak. 2012-08-04 16:05:24 +00:00
nse_nsock.h Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_openssl.cc RC4 cipher for work Ron is doing. 2012-07-19 02:47:01 +00:00
nse_openssl.h
nse_pcrelib.cc Don't strdup (and fail to free) pattern passed to pcre_compile. 2012-06-05 21:09:01 +00:00
nse_pcrelib.h
nse_ssl_cert.cc Lua 5.2 upgrade [1] for NSE. 2012-05-27 08:53:32 +00:00
nse_ssl_cert.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
nse_utility.cc Add an nseU_opttarget function. 2012-09-15 17:56:17 +00:00
nse_utility.h Add an nseU_opttarget function. 2012-09-15 17:56:17 +00:00
osscan.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
osscan.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
osscan2.cc Remove some dead commented code. 2012-08-28 07:50:30 +00:00
osscan2.h Get rid of "using namespace std". 2012-03-19 16:48:27 +00:00
output.cc Show OS scan guesses in XML even without --osscan-guess. 2012-09-18 17:03:47 +00:00
output.h Structured script output. 2012-08-14 16:36:25 +00:00
payload.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
payload.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
portlist.cc Second commit from rpc-grind branch. Removing old implementation from output and portlist. 2012-08-17 18:31:50 +00:00
portlist.h Second commit from rpc-grind branch. Removing old implementation from output and portlist. 2012-08-17 18:31:50 +00:00
portreasons.cc Use less memory for ip_addr in port_reason. 2012-06-26 03:23:14 +00:00
portreasons.h Use less memory for ip_addr in port_reason. 2012-06-26 03:23:14 +00:00
protocols.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
protocols.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
README-WIN32
scan_engine.cc Use smartly chosen destination ports instead of o.magic_port in -sO. 2012-09-02 22:47:45 +00:00
scan_engine.h Removing pos_scan from scan engine as it is not used anymore. 2012-08-17 18:33:07 +00:00
service_scan.cc Added handling for WSAENETRESET (same as ENETRESET). Currently we just catch it and send the next probe. I wrapped the catch for ENETRESET in the #ifdef WIN32 incase we later want to different handling for WASENETREST and ENETRESET 2012-07-01 17:32:07 +00:00
service_scan.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
services.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
services.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
shtool
struct_ip.h More attempted header rearrangement for AIX compatibility. 2012-03-19 16:26:39 +00:00
Target.cc Structured script output. 2012-08-14 16:36:25 +00:00
Target.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
TargetGroup.cc Make it a warning (not a fatal error) when there's a problem with an IPv4 spec. 2012-04-27 06:27:01 +00:00
TargetGroup.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
targets.cc Do ARP/ND scan with -PR --disable-arp-ping. 2012-07-16 18:26:39 +00:00
targets.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
tcpip.cc Let setTargetNextHopMAC call getNextHopMAC instead of duplicating code. 2012-09-15 14:57:35 +00:00
tcpip.h Change hostname parameter to const char *. 2012-03-04 07:26:16 +00:00
timing.cc Don't set max parallelism when only --min-paralellism is given. 2012-04-07 08:07:38 +00:00
timing.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
traceroute.cc Use an unsigned int for --max-retries and related values. 2012-08-28 14:29:11 +00:00
traceroute.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
utils.cc One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
utils.h One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
xml.cc Typo. 2012-05-05 18:02:34 +00:00
xml.h Close an open start tag before a fatal error. 2012-03-09 00:16:39 +00:00
zenmap.spec.in

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