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

443 Commits

Author SHA1 Message Date
dmiller
140dd72415 Fix build with OpenSSL 3.0
Updated all OpenSSL code to OpenSSL 3.0 API with no deprecated functions. Some
NSE functions were changed:
* openssl.rc4_options and openssl.rc4 were removed in favor of openssl.encrypt
* openssl.bignum_pseudo_rand is now an alias for openssl.bignum_rand
* openssl.bignum_is_prime and openssl.bignum_is_safe_prime will now ignore the
  nchecks parameter, using a secure default instead.
2022-08-25 14:51:59 +00:00
dmiller
6e392b01a9 Update ncat scripts: remove bit32 usage, declare locals 2022-06-29 21:14:53 +00:00
dmiller
befb1bf1d3 Regen man pages: https, Nmap OEM license info 2022-05-09 17:30:07 +00:00
dmiller
ec2176f733 http > https, 2021 > 2022 in docs 2022-04-14 23:06:01 +00:00
dmiller
5b8623908e Regen docs [ci skip] 2022-03-10 17:24:38 +00:00
dmiller
df33da4722 Regen man pages from docbook source [ci skip] 2022-02-18 19:00:28 +00:00
dmiller
c2d6b01f35 Update links to npcap.com 2022-02-18 17:38:54 +00:00
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