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

12487 Commits

Author SHA1 Message Date
dmiller
3fe254abcc Suggest a reason why '-' cannot be resolved 2021-12-16 23:29:15 +00:00
dmiller
3cf836c9b5 Register mssql instances found in port scan. See #927 2021-12-15 23:44:43 +00:00
dmiller
6a2260aea0 Fix mssql's SetVersionNumber to consider subbuild (not used currently) 2021-12-15 23:44:42 +00:00
dmiller
02c0354744 Avoid TOCTOU by checking discovery state in mssql.Discover
A script might check WasDiscoveryPerformed and get a negative response,
then call Discover, during which time another script already called
Discover. Instead, check the condition *after* acquiring the mutex.
2021-12-15 23:44:41 +00:00
dmiller
0b7dc80349 Fix TDS7 password encoding. Fixes #2388. 2021-12-14 22:35:57 +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
dmiller
0467fa7866 Check the correct var for 413 error (was masked as 400) 2021-12-14 18:36:54 +00:00
dmiller
a292d37997 Remove function prototype that has since moved to libnetutil 2021-12-14 01:56:24 +00:00
dmiller
77fcbeca27 NSIS: disable Npcap install if installed version is newer or same. 2021-12-13 20:51:08 +00:00
dmiller
8d4c078394 Update deprecated IIS CPEs. Fixes #2401. Closes #2402 2021-12-13 20:27:39 +00:00
dmiller
9b71516919 Better socket error handling in rdp-vuln-ms12-020
Try to receive enough bytes for the next unpack. If any socket operation
fails, or if it doesn't receive enough for the unpack, a Lua error is
thrown. The pcall in the action function will catch that and interpret
it as not-vuln.

Fixes #2355
2021-12-13 20:14:07 +00:00
dmiller
85c1fd9b18 Parsing improvements for udp payloads
Save some memory and effort when parsing UDP payloads by reusing the
rather large buffer inside each token when possible, and only using
std::string::append() when necessary. For the current file, this avoids
*all* reallocations.
2021-12-12 23:42:39 +00:00
dmiller
2cbc7712da Avoid duplicating udp payloads in memory
Storing a pointer instead of the whole struct payload enables us to
reuse the same struct for as many ports as the payload defines, saving
memory as well as the time to copy the struct and its std::string
member. This commit also avoids several copy constructions and deletions
of the payload vector for each port defined in the file.
2021-12-12 23:42:38 +00:00
dmiller
2cea59aca0 Allow cleanup of netutil's interfaces cache 2021-12-12 23:42:38 +00:00
dmiller
e20093b16d Don't init payloads for non-udp scans 2021-12-12 23:42:37 +00:00
dmiller
ccf0f3af78 Make 'Starting' and 'Finished' debug prints balanced for worker threads 2021-12-12 23:42:36 +00:00
dmiller
b281598a4e Add a bit to nsedoc for nmap.list_interfaces 2021-12-12 23:42:35 +00:00
dmiller
bc1091d387 Improve TFTP detection. See #2406 2021-12-12 23:42:35 +00:00
dmiller
87fe985f32 Move a reused function out to file scope 2021-12-07 19:50:47 +00:00
dmiller
8a85cdd06b Minor perf boost: use locals, not class members, for string funcs in stdnse 2021-12-07 19:50:46 +00:00
dmiller
fa029ca531 Add BSON handlers for most data types. Fixes #2393 2021-12-07 19:33:40 +00:00
dmiller
d34d14416d Performance improvement for stdnse.tohex 2021-12-07 19:33:39 +00:00
nnposter
b869cfac51 Fix a port range typo. Closes #2390 2021-12-01 01:44:30 +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
fyodor
2fbde180da Update ndiff copyright header to remove dead link - see nmap#2389 2021-11-23 15:07:14 +00:00
fyodor
7f49e4ac56 Update ndiff copyright header to remove dead link - see nmap#2389 2021-11-23 15:05:14 +00:00
fyodor
647b06add8 Another small update to Ndiff LICENSE file 2021-11-23 15:02:27 +00:00
fyodor
063e4e6f61 Update nmap-payloads header comments as suggested in nmap#2389 2021-11-23 14:58:10 +00:00
dmiller
07811b8006 Avoid crashing script if bson can't be parsed. See #2393 2021-11-11 16:26:27 +00:00
dmiller
f062c59843 fix a typo in json test 2021-11-11 16:26:27 +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
ac4484e258 Expand OS match. Fixes #2370 2021-09-16 16:18:40 +00:00
ron
210d3c29f4 Add new fingerprint to http-fingerprints.lua (/api/ and /api-docs/) 2021-09-10 17:13:24 +00:00
ron
b0bd2776a7 Add new fingerprint to http-fingerprints.lua (/error.html) 2021-09-09 18:13:32 +00:00
dmiller
5759df058b Revert local changes to zconf.h. Fixes #2359 2021-08-25 21:36:57 +00:00
dmiller
fda782cafe Catch most likely editor munges of hyphens in options. See #2335 2021-08-16 21:02:46 +00:00
dmiller
e74c00b7e5 Add a couple important fix notes to the changelog for 7.92 2021-08-16 18:36:34 +00:00
dmiller
d547b004c4 Document the --unique option. Fixes #2348 2021-08-16 18:02:41 +00:00
dmiller
264032f8c2 Move docs for DNS options to target specification from host discovery
[ci skip]
2021-08-16 18:02:40 +00:00
dmiller
4e8775f0f7 Fix xml tag mismatch in install reference 2021-08-08 21:48:02 +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
fyodor
f7cc9612a0 typo 2021-08-08 02:20:24 +00:00
fyodor
cee01cc1a1 Add a couple other improvements we forgot to include in the changelog 2021-08-08 01:23:20 +00:00
fyodor
12bef342a7 Fix minor formatting issue 2021-08-08 00:31:30 +00:00
fyodor
5ccd15c3ce Update CHANGELOG for Nmap 7.92 release 2021-08-08 00:26:46 +00:00
dmiller
1e8f81c638 Clarify a changelog entry given the fix for #2293 2021-08-06 17:48:11 +00:00
dmiller
17b2da7731 Fix some errors in macosx build scripts 2021-08-06 17:44:37 +00:00