dmiller
dd690b3e0b
Bump copyright date and update some links [ci skip]
2022-02-18 17:38:46 +00:00
nnposter
854ed0a58a
Reject supported hash in Proxy-Authorization header
...
This should not normally happen, as the hash is expected to match what Ncat
offered in prior Proxy-Authenticate. Closes #2440
2022-02-08 00:37:36 +00:00
nnposter
828dedfc8a
Add a missing space in Ncat man page
2022-02-08 00:08:59 +00:00
dmiller
0467fa7866
Check the correct var for 413 error (was masked as 400)
2021-12-14 18:36:54 +00:00
fyodor
158c2e493c
Change Insecure.Com LLC to Nmap Software LLC
2021-11-23 19:01:05 +00:00
fyodor
3aec3f3a07
Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC
2021-11-23 16:04:37 +00:00
nnposter
972ed6bac0
Add SOCKS5 support for SOCKS5_ATYP_NAME bind address. Closes #2365
2021-10-10 01:12:57 +00:00
dmiller
e2f58045df
Fix Ncat's hostname/cert comparisons to handle non-null-term strings
2021-09-21 17:59:06 +00:00
dmiller
0d2323f039
Bump version to 7.92SVN
2021-08-08 21:26:07 +00:00
dmiller
dd82097c80
Merge changes from 7.92 release branch
2021-08-08 21:20:19 +00:00
dmiller
da2c3673f1
Do not delay-load iphlpapi.dll
2021-07-23 16:50:13 +00:00
dmiller
95d98fe6ae
Linker optimizations for all projects (Windows)
2021-07-22 17:19:53 +00:00
dmiller
5707fb14c5
Upgrade to VS 2019
2021-07-19 23:58:02 +00:00
dmiller
c23d0f8345
Clarify braces around ifdefs
2021-07-19 23:06:49 +00:00
dmiller
c9b7c2f590
Moar const
2021-04-26 17:58:01 +00:00
nnposter
024bbf84f1
Make sure that SOCKS proxied server data are processed
...
There was a race condition where proxied server data could arrive appended
to the final SOCKS handshake response, causing the data to get skipped.
2021-03-16 02:34:35 +00:00
nnposter
3913c63136
Use more descriptive error messages
2021-03-16 02:09:39 +00:00
dmiller
05faa0287a
Fix addrset matching with overlapping CIDR specs. Fixes #2257
2021-03-01 18:42:00 +00:00
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