1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +00:00
Commit Graph

283 Commits

Author SHA1 Message Date
dmiller
6e33d6ac3c Bump date in copyright headers 2016-04-04 15:38:44 +00:00
dmiller
a083db0cf9 Bump version for 7.12 release 2016-03-29 19:43:37 +00:00
dmiller
c97b56a1e9 sync CHANGELOG and bump version for 7.10SVN 2016-03-17 18:16:43 +00:00
dmiller
a2c3b2f03a Include -lcrypto when checking for -lssl. Fails on OpenBSD 5.5 w/1.0.1c 2016-01-13 20:53:37 +00:00
dmiller
8425c16203 Bump version and sync CHANGELOG with 7.01 2015-12-10 13:53:54 +00:00
dmiller
72a8cc3b26 Use mkstemp instead of tempnam.
See http://seclists.org/nmap-dev/2012/q4/334 for why this wasn't really
a big problem. This solution is essentially how netcat-openbsd does it:
mkstemp creates the file and opens it, but then we just unlink it and
only use the returned name. Functionality is pretty much the same as the
tempnam version.
2015-11-20 16:17:26 +00:00
dmiller
32b28a8726 Version bump for 7.00SVN 2015-11-19 20:49:20 +00:00
dmiller
5036487eaf Note in the Ncat guide that httpd.lua is included with source, not in nmap-exp 2015-11-19 03:08:44 +00:00
dmiller
ae17eba3c3 Fix failure to build on Windows: need different approach if any 2015-11-12 20:01:53 +00:00
dmiller
47ac4e421e Clean up some windows build errors due to misapplication of a patch 2015-11-12 19:38:47 +00:00
dmiller
50c7837c5b Ncat: Attempt to reopen fd 0 if stdin is closed by parent process. Fixes #143 2015-11-12 05:07:33 +00:00
dmiller
1b4c4a9ef3 Add new --no-shutdown option to Ncat. Closes #151, fixes #142 2015-11-10 21:07:30 +00:00
dmiller
37d517b32e Use XP compatibility SDK, because users are complaining 2015-11-10 16:47:35 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
46947d1183 Fix ncat -lU on OS X crashing in getnameinfo. Fixes #193. Closes #192 2015-10-28 17:40:25 +00:00
gio
263872f60b Normalize some forgotten target 2015-08-20 19:50:37 +00:00
gio
90edf7ba5c normalized *_[dist]clean target to [dist]clean-* target 2015-08-20 19:50:34 +00:00
gio
3b42a41f44 normalized *_build target to build-* target 2015-08-20 19:50:29 +00:00
dmiller
4d145aa9fa Replace − with '-' in nping docs. Fixes #184 2015-07-08 11:44:38 +00:00
henri
b55ff2d68f Don't associate nsock logging info to a nspool.
Make current loglevel and current log callback global
to the library. Attaching them to the nsock pool doesn't
bring any benefit and prevents from logging activity in
code sections that don't have access to a pool (such as
proxy chain specification parsing).

Updated external calls and nsock tests accordingly.
2015-06-27 08:21:53 +00:00
henri
b75233ce98 Consistently renamed nsi_XXX calls into nsock_iod_XXX
This is part of the effort to make nsock expose only
nsock_ prefixed symbols and simplify the API.
2015-06-27 08:21:33 +00:00
henri
fd40b8df08 Simplify Nsock SSL init API
Replaced nsock_pool_ssl_init_max_speed() by a NSOCK_SSL_MAX_SPEED
flag to be passed to nsock_pool_ssl_init(). Default (flag=0) means
secure.
2015-06-27 08:21:22 +00:00
henri
0348359f60 Enforce nsock naming scheme.
convert nsp_* calls into nsock_pool_*. Separate words with underscores
where appropriate.
2015-06-27 08:21:16 +00:00
dmiller
df5d9a7489 Fix a write overrun in the -g option to Ncat
Due to the use of do{}while; the bounds were checked *after* writing to
the array of source routes. Reproduce:
ncat $(perl -E 'say "-g 1.1.1.1 "x100') scanme.nmap.org 80
2015-06-23 03:59:41 +00:00
dmiller
eda09854ac Avoid use-after-free. 2015-06-23 03:59:39 +00:00
fyodor
5ea7373a25 Fix compilation on systems for which HAVE_SOCKADDR_SA_LEN is not defined. I don't think this issue affects any released version as it seems to have been introduced on r34671. Reported by Schuh Andreas 2015-06-20 21:56:01 +00:00
dmiller
d43967bf99 Fix calculation of namelen param to bind in Ncat. Fixes #166 2015-06-18 04:33:58 +00:00
dmiller
a19e3e5c12 6.49SVN version bump 2015-06-07 15:53:49 +00:00
dmiller
68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
fyodor
61ebb11654 Regenerate the nroff man pages and Nmap usage text 2015-05-31 20:58:03 +00:00
dmiller
ef878ea895 Notify in -v mode if SSL verification fails, even if --ssl-verify was not requested. Fixes #30 2015-05-31 12:14:04 +00:00
dmiller
81d7937876 Update Ncat's root certificate store. Closes #14 2015-05-21 02:15:56 +00:00
dmiller
215cebeec4 Enforce dependencies for test progs in ncat/Makefile, fixes build breakage with -j 2015-04-08 13:53:41 +00:00
dmiller
fbbb64a190 Silence warnings: 'Makefile.in seems to ignore the --datarootdir setting' 2015-03-11 04:14:24 +00:00
dmiller
1cd6c40bf9 Keep phony targets out of the prereqs for ncat itself, otherwise it is built every time 2015-03-10 03:52:44 +00:00
dmiller
f934e350a8 Keep -lssl and friends out of LIBS for Ncat, allows overriding with static libs 2015-03-07 05:37:40 +00:00
fyodor
6e218d7d7f Regenerate man pages from the source XML 2015-03-04 02:58:45 +00:00
dmiller
091696c717 Update config.guess and config.sub from the latest source 2015-02-14 20:19:59 +00:00
dmiller
0952bed032 Merge final changes to support VS2013 build
Changes:

* Fix a collision of the name PS_NONE with a different constant in shlobj.h
* Update solution and project files for VS2013
* Update the NSIS installer to reference the VC 2013 redistributable
2015-01-17 04:35:01 +00:00
dmiller
1f33c29db7 Update ncat.usage.txt 2015-01-14 04:56:59 +00:00
dmiller
40ca4cb396 Document --ssl-ciphers. Fixes #20 2015-01-11 23:38:00 +00:00
dmiller
8b487166ca Add ifndef guards to prevent double-inclusion of headers 2014-12-23 13:48:22 +00:00
dmiller
2353d5a913 Allow user to specify SSL ciphersuite choices
Fixes #19
2014-12-11 19:07:04 +00:00
dmiller
9656d30661 Don't print debug messages if not debugging
This was Red Hat bug #1000770, patched downstream in RHBA-2014-0683
https://bugzilla.redhat.com/show_bug.cgi?id=1000770
2014-12-08 23:16:30 +00:00
dmiller
3b2a197ca1 Make build of ncat depend on lua_build, should fix occasional build failure with make -j8 2014-11-20 16:19:56 +00:00
dmiller
85bb2d388d Define a NORETURN macro 2014-11-17 13:25:32 +00:00
dmiller
a067bc25bc Let MSVC know about noreturn attribute to help with code analysis 2014-11-12 13:29:40 +00:00
dmiller
e4417d132e Fix a stack overrun in ncat's -g option
Because of the postincrement and <= operators, the parsing could write
as many as 10 struct in_addr into an array allocated for only 8.
Execution would stop because of a later check. Instead, we use
preincrement and < operator to do bounds checking, and check for the
"too many specified" condition with another call to strtok (which should
return NULL if there were no more hops to parse)
2014-11-11 22:15:50 +00:00
dmiller
29ce5da5a1 Fix man pages, corrupted from auto-generation
The docbook-to-nroff XSL pages turn indexterms into nroff comments, but
have a bug: If the closing indexterm element is not followed by
whitespace and cdata, then the following element or cdata is stuck on
the same line as the comment. Fixed this temporarily by introducing
whitespace between </indexterm> and following cdata or by moving the
indexterm elements after any other element (<command>, <term>, etc.)
that they reference.
2014-10-22 19:24:28 +00:00
dmiller
3b6ea5a9e5 Fix Ncat crash on concurrent ssl connections
Reported on debian bugtracker here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=724580

We can't remove an fdinfo from client_fdlist and still expect to access
the fdinfo via a pointer we got from get_fdinfo(&client_fdlist) since
rm_fd() modifies the data at the address pointed to. So instead of
removing it from the list and then adding it right back, we just don't
remove it in the first place.
2014-10-21 05:50:36 +00:00