1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00
Commit Graph

347 Commits

Author SHA1 Message Date
dmiller
dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
dmiller
3e08021083 Don't rely on -1 return value from SSL_read, just check SSL_get_error() directly 2021-12-14 18:36:55 +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
dmiller
2181443b63 Address a few code analysis warnings: uninitialized vars and undefined behavior 2021-08-06 16:17:46 +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
c9b7c2f590 Moar const 2021-04-26 17:58:01 +00:00
dmiller
9529327f59 Merge changes from Nmap 7.91 release branch 2020-10-13 19:27:40 +00:00
dmiller
009b63b6a9 Use gh_heap_remove instead of gh_heap_pop when result not needed. 2020-10-13 19:13:31 +00:00
dmiller
c8450d4d0c Handle a weird IOCP error for UDP sockets. Fixes #2140 2020-10-07 21:56:28 +00:00
dmiller
ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller
e214019922 Make IOCP the default Nsock engine on Windows. See #2126 2020-09-29 18:17:10 +00:00
dmiller
eb6e160cb9 Add missing prototype 2020-09-29 18:05:06 +00:00
dmiller
1504a353cf Properly handle pcap reads in iocp engine. Fixes #2126
Still has an odd code smell, but this fixes my test case with Nping.
2020-09-29 00:39:29 +00:00
dmiller
f6d21da5cd Only get SSL options if we use them, currently for NO_SSLv2 2020-09-10 16:25:10 +00:00
dmiller
05763b620d Make maximize_fdlimit return rlim_t on appropriate platforms. Closes #2085. Fixes #2079 2020-07-19 05:00:13 +00:00
dmiller
b41c39ea78 Catch missing RLIMIT constant at compile time 2020-06-29 04:35:31 +00:00
nnposter
b1d39d00d4 Skip TLS/SSL retries when SSL_OP_NO_SSLv2 is a no-op
OpenSSL option SSL_OP_NO_SSLv2 was retired with version 1.1.0
When the initial SSL handshake fails, nmap performs several additional retries
with option SSL_OP_NO_SSLv2 enabled. Since the option is ignored since OpenSSL
version 1.1.0 then the retries are largely pointless and sometimes even DoS-ing
targets.
Closes #1873, fixes #1488, closes #1489
2020-01-09 21:16:08 +00:00
dmiller
e01ddaf1e8 Avoid retrying iod_read if we already got ENOTSOCK. 2019-12-30 16:14:10 +00:00
dmiller
c7932d2fc6 Don't break out of loop on just any error, since loop condition expects to test for EINTR. #1834 2019-12-30 16:14:09 +00:00
dmiller
ee32b56ebb Comment some empty blocks. #1834 2019-12-25 20:01:18 +00:00
dmiller
61d77a2165 Remove some constant-false conditionals and dead code. See #1834 2019-12-22 21:50:54 +00:00
dmiller
d639a53088 Bump copyright date in license headers 2019-05-28 21:36:04 +00:00
dmiller
21f51ff822 AF_VSOCK support. Closes #1075 2019-05-20 16:21:41 +00:00
dmiller
7b523f0643 Don't try to reconnect SSLv2 over DTLS (UDP). Fixes #1543 2019-04-08 22:29:47 +00:00
dmiller
fe9a1db4dd Avoid double-free due to calling pcap_close when IOD is deleted 2019-03-19 15:51:43 +00:00
nnposter
12f1894f97 Removes leftovers from past tests for PCAP_NETMASK_UNKNOWN
Test first implemented in r33774 (80f18a2bc7),
finally removed in r37527 (f8004b792c)
2019-02-19 01:47:13 +00:00
dmiller
f8004b792c Replace a config-time check with a ifndef that also works on Windows. 2018-11-21 06:23:08 +00:00
dmiller
d8c1d935f1 Move Npcap headers and lib stuff to nmap-mswin32-aux 2018-10-18 03:28:39 +00:00
dmiller
e48361523b Fix the check for pcap_set_immediate_mode, which was failing every time. 2018-10-04 17:35:53 +00:00
dmiller
c7b929995b Move pcap_setmintocopy call where it belongs, as alternative to pcap_set_immediate_mode 2018-10-01 02:35:10 +00:00
nnposter
973b471c11 Corrects a few issues related to snprintf return values 2018-08-26 02:29:14 +00:00
dmiller
7e644b391e Use pcap_open and pcap_set_immediate_mode in nsock. Closes #1291 2018-08-21 16:03:30 +00:00
dmiller
7f1485f56d Switch to pcap_create instead of pcap_live_open. See #1291 2018-08-20 22:08:56 +00:00
dmiller
4deb24fec4 Change configure check for libpcap to require pcap_create (libpcap 1.0.0 or later). See #1291 2018-08-20 22:08:55 +00:00
nnposter
302954fb3f Rectifies incorrect use of va_start/va_end from stdarg.h. Closes #1297 2018-08-09 22:11:15 +00:00
dmiller
689ea0e05d Spelling corrections. Fixes #1160 2018-03-26 14:59:41 +00:00
fyodor
ff62300249 Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text 2018-01-28 21:18:17 +00:00
dmiller
9f494f61ae Avoid RC4 by default. Closes #972 2017-10-09 17:03:21 +00:00
dmiller
b90786a5ef Regen configure scripts 2017-09-27 21:29:31 +00:00
dmiller
97d3fb34f6 Silence autoreconf warnings. Closes #1009 2017-09-19 17:01:39 +00:00
henri
0afdee18fe nsock: minor style fix 2017-08-31 17:57:40 +00:00
rewanth
6ee953a5ff Removes trailing spaces in 69 files. Closes #971. 2017-08-23 08:52:40 +00:00
dmiller
e5623027a2 Also clean up pcap events when deleting an IOD. Closes #961 2017-08-12 16:06:39 +00:00
dmiller
fdfc36778b Add DTLS and ALPN support to Ncat. Closes #446 2017-07-29 05:55:30 +00:00
dmiller
0d21bd42e2 Update cipher suites to eliminate anonymous authentication methods 2017-07-29 05:55:27 +00:00
dmiller
2065d752bb Change EV_EXCEPT handling.
Original patch by Henri Doreau: http://seclists.org/nmap-dev/2017/q1/252
2017-06-19 22:58:23 +00:00
dmiller
9c7ea727a7 Update license terms for 2017 2017-06-07 12:32:38 +00:00
dmiller
a668a21b7a Make Nsock handle all connect errors without fatal 2017-03-20 17:12:40 +00:00
dmiller
b7e213b5cb Fix compatibility with LibreSSL; new checks skipped initialization code 2017-02-07 20:10:02 +00:00