dmiller
28bfe0dfd2
Use checked versions of FD_* macros. Closes #2202
2021-01-07 17:52:24 +00:00
nnposter
9334c9fd5d
Ncat certs should last for one year
...
Old Ncat versions were using one year but during OpenSSL API refresh (r36533),
the duration was accidentally changed to one minute by copying Ncat test code
from ncat/test/test-wildcard.c
Fixes #2167 , closes #2168
2020-12-24 00:35:38 +00:00
dmiller
169d7e5a92
Restore call to post_connect in non-ssl case. Fixes #2149
2020-11-19 17:34:24 +00:00
nnposter
f6b40614e4
Fix a Unix domain socket crash. Fixes #2154
2020-10-16 02:54:52 +00:00
dmiller
9529327f59
Merge changes from Nmap 7.91 release branch
2020-10-13 19:27:40 +00:00
dmiller
9238e6c363
Bump version and regen docs for 7.90SVN post-release
2020-10-06 13:18:17 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
75318985a1
Silence static analysis warning
...
LGTM points out that since comparison with sizeof(buf) coerces n to
unsigned, all negative values become very large values, which are
necessarily larger than sizeof(buf), so the test is redundant. We still
want the test in our code to be explicit that we are checking for it, so
reordering the comparisons should silence the warning. A good optimizing
compiler should be able to combine the two conditions anyway.
See https://github.com/github/codeql/issues/4249
2020-09-14 17:41:39 +00:00
dmiller
74e9104173
OpenSSL 1.1.X renamed libs: libeay32->libcrypto ssleay32->libssl
2020-09-03 17:49:21 +00:00
nnposter
7d6cf3ae0c
Implementation of TLS SNI override in Ncat
...
Closes #2087 , closes #1928 , fixes #1927 , fixes #1974
2020-08-22 15:54:14 +00:00
nnposter
535e6382d4
Implement Ncat proxy creds via environment variable. Fixes #2060 , closes #2073
2020-07-12 00:28:16 +00:00
dmiller
0d613e3b4b
Allow --ssl with --proxy for ncat. Fixes #2065
2020-06-17 22:42:49 +00:00
dmiller
1b1a85cc6b
Clarify proxy type support in Ncat server. Fixes #1901
2020-02-03 20:18:44 +00:00
dmiller
a66c287b06
Loop over client FDs, avoiding unused ones
...
As the FIXME comment had said, looping over every integer up to maxfd is
inefficient, especially if FDs are not continuous. This change has the
added benefit of skipping a call to get_fdinfo(), which also loops over
all the client FDs looking for a particular value. Unlikely to be a huge
performance gain, but the code is cleaner. #1834 - FIXME comment.
2020-01-02 16:04:30 +00:00
dmiller
f3f3a8367e
Don't check for char greater than CHAR_MAX. #1834
2019-12-30 16:14:09 +00:00
dmiller
866dc375e4
Correctly print VM socket address. Closes #1868
2019-12-30 00:53:23 +00:00
dmiller
1059e25a7b
Avoid hiding global with parameter. #1834
2019-12-29 06:18:33 +00:00
dmiller
d5b57a8cd9
Replace ncat's custom hexdump function with the one from nbase.
2019-12-28 20:12:45 +00:00
dmiller
be0818a664
Use different variable name for local vs param. #1834
2019-12-25 20:01:18 +00:00
dmiller
bb346e24c0
Reorder AC_CHECK_FUNCS and AC_SEARCH_LIBS for future safety.
2019-11-14 17:34:20 +00:00
nnposter
9e8852a7c7
Rectify undefined behavior of out-of-range shift op
...
Fixes #1717 , closes #1718
2019-09-03 21:56:31 +00:00
dmiller
862054bf5d
Always delete old IOD before attempting reconnect
...
Trying to connect on the same IOD was leaking sockets, and may have
contributed to high CPU usage on Windows (See #1688 )
2019-08-15 18:31:59 +00:00
dmiller
944963dcdc
regen docs [ci skip]
2019-08-15 18:31:58 +00:00
dmiller
a36a34aa69
Bump version to 7.80SVN after release
2019-08-14 18:56:24 +00:00
dmiller
f05296d7f7
Merge changes from Nmap 7.80 release branch
2019-08-11 05:30:19 +00:00
dmiller
a668cdb9c7
Remove some unused windows headers and silence warnings
2019-05-29 16:39:05 +00:00
dmiller
274b8f979c
Remove checks and unnecessary includes of sys/timeb.h (handled within nbase)
2019-05-29 13:22:13 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
nnposter
dd77fa1dac
Further clean-up of port parsing in ncat
2019-05-25 23:57:52 +00:00
dmiller
0ffdd07894
Use long long for prevalidated (negative ok) ports and unsigned int for post-validated
2019-05-24 16:14:44 +00:00
dmiller
c661979637
Use explicit integer widths for port numbers.
...
Avoids problems on 32-bit systems:
21f51ff822 (r33609264)
2019-05-22 02:26:42 +00:00
dmiller
21f51ff822
AF_VSOCK support. Closes #1075
2019-05-20 16:21:41 +00:00
dmiller
3de7a0177b
Allow connections to port 0. Fixes #1560
2019-04-18 16:18:16 +00:00
nnposter
504e9d767e
Mandatory use of square-bracket notation for literal IPv6 proxy address
...
Closes #1441
2019-02-23 23:23:47 +00:00
nnposter
dbed133fc5
Ability to control hostname resolution for ncat proxy destinations
...
Closes #1214 , fixes #1230 , closes #1439
2019-02-23 22:34:13 +00:00
nnposter
8e7bcbbe4c
Normalizes index references
2019-01-21 23:43:05 +00:00
nnposter
bdf8830296
Adds missing option description
2019-01-21 23:09:26 +00:00
nnposter
b1f7158101
Replaces square brackets with appropriate XML tags
2019-01-21 21:17:56 +00:00
nnposter
88b4a4b65e
Adds missing initialization
2019-01-21 03:25:54 +00:00
nnposter
453cd5ea53
Adds missing option initialization
2019-01-21 02:20:29 +00:00
nnposter
735abe6c3f
Cleans up error handling
2019-01-21 02:19:11 +00:00
nnposter
cb9559b342
Rectifies SOCKS5 protocol field overrun hazards
2019-01-19 23:50:18 +00:00
nnposter
6bb36b1ca2
Shortens the line to prevent an extraneous empty line
2019-01-19 23:48:01 +00:00
nnposter
4b4d67d4fb
Strips off tabs and trailing spaces
2019-01-19 22:59:37 +00:00
nnposter
25db5fbb0d
Increases ncat temporary RSA key size to 2048 bits
...
This resolves a compatibility issue with OpenSSL library configured with
security level 2, as seen on current Debian or Kali. Closes #1310 , closes #1409
2018-12-20 02:04:02 +00:00
fyodor
434de730f5
Update copyright year for Ncat and Ncat Guide
2018-12-09 02:00:55 +00:00
dmiller
5c83c3d2a5
Fixes for Windows build from Lua header rearrangements
2018-11-08 04:55:29 +00:00
dmiller
824f9dcb2f
Rearrange declarations to put all addrset functions in nbase.h, hide struct addrset internals.
2018-11-01 04:35:00 +00:00
dmiller
86d1f7e66e
Don't quit on ERROR_IO_INCOMPLETE. Closes #1372
2018-10-26 20:50:58 +00:00
dmiller
e3d08f7e94
Avoid shutting down SSL descriptor twice. Fixes #1365
2018-10-25 04:53:59 +00:00