1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00
Commit Graph

12479 Commits

Author SHA1 Message Date
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
dmiller
2181443b63 Address a few code analysis warnings: uninitialized vars and undefined behavior 2021-08-06 16:17:46 +00:00
dmiller
ccfdc64a2c Fix build error on MSVC 2021-08-06 16:16:49 +00:00
dmiller
7b73985610 Auto-gen Nmap version for macOS build. Bump OpenSSL to 1.1.1k. 2021-08-06 16:16:06 +00:00
dmiller
a863ade3a7 Update protocol numbers from IANA 2021-08-06 05:09:07 +00:00
dmiller
43b46adbcd Merge latest service names from IANA 2021-08-06 05:09:07 +00:00
dmiller
2f8b4e20a1 Update nmap-mac-prefixes from IEEE 2021-08-06 05:09:06 +00:00
dmiller
e93109ef88 Make base_port a member of UltraScanInfo. 2021-08-06 02:47:58 +00:00
dmiller
180c716ca5 Combine tryno and pingseq
UltraProbe's tryno and pingseq attributes were mutually exclusive,
encoded in the same places in packets, and did not need more than 7 bits
to store. This change combines them into a bitfield. This simplifies
some logic, since they do not need to be distinguished from each other.

Additionally, in cases where the tryno is encoded in the source port
number, no further checks or decoding need to happen beyond comparing
the destination port of the response to the source port of the probe.
2021-08-06 02:47:57 +00:00