1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00
Commit Graph

2960 Commits

Author SHA1 Message Date
nnposter
e4fd4bd2fe Fix misplaced parentheses. Closes #2544 2022-10-23 22:42:11 +00:00
dmiller
894bfd4976 New script tftp-version. Closes #548 2022-09-28 20:52:47 +00:00
dmiller
a3c725acd4 Prevent smb-flood from using all sockets. Fixes #947 2022-09-22 20:16:44 +00:00
dmiller
3df8c7d79c TLS registry number updates from IANA 2022-08-29 22:06:37 +00:00
dmiller
d66644be63 Vulners.nse: respect mincvss unless cvss is missing or is 0 for exploits 2022-07-29 15:21:15 +00:00
nnposter
7d1c26968c Use promiscuous mode in broadcast-dhcp-discover. Closes #2470 2022-06-08 23:10:28 +00:00
nnposter
f0e85baf85 Add support for DHCP client identifier
see https://datatracker.ietf.org/doc/html/rfc2132#section-9.14
Closes #2468
2022-06-08 22:59:30 +00:00
nnposter
97ec8d2de2 Improve parsing of CLUSTER NODES responses
- Avoid crash due to potentially unrecognized format
- Fix parsing of node flags, which may contain non-alphabetic characters
  Example: "failed?"
- Fix parsing of field ip:port@cport
- Add support for IPv6 nodes
- Remove parsing of unused node ID field
2022-05-11 21:58:28 +00:00
nnposter
b49c927c78 Fix off-by-one bug in limit enforcement 2022-05-11 21:39:01 +00:00
nnposter
f7899f3292 Remove dead code branch 2022-05-11 21:33:47 +00:00
dmiller
4c240122a9 Convert test data in comment to assertion checks 2022-05-09 17:33:41 +00:00
nnposter
1c8336c55e Correct and expand VSNNUM test data 2022-05-06 19:50:21 +00:00
nnposter
4671f5da12 Change VSNNUM parsing to account for versions greater than 15
Fixes #2331, closes #2471
2022-05-06 02:49:25 +00:00
nnposter
a5d57b3280 Improve parsing of CLIENT LIST responses
- Avoid crash due to unhandled connection line termination
    (fixes #2296, closes #2342)
  - Gracefully handle absence of the "addr" attribute
  - Avoid false negative matching if the "addr" attribute was the last listed
  - Avoid false positive matching on the "laddr" attribute
2022-04-25 18:46:04 +00:00
nnposter
35b543b291 Use the same endianness for IP ID and DHCP transaction ID 2022-04-24 02:07:22 +00:00
nnposter
e73041f34b Optimize BPF to capture only DHCP responses 2022-04-24 01:22:54 +00:00
nnposter
81088425f3 Remove unused variables 2022-04-24 01:17:46 +00:00
dmiller
2543f2dd3c Refactor to avoid using packet.lua local functions. See #2464 2022-04-14 23:06:02 +00:00
nnposter
639efbd214 Refactor IP ID capture loop. Fixes #2464
Rectify use of inaccessible library function packet.u16, incidentally
introduced in r38135 (041838d986)
2022-04-10 20:13:06 +00:00
nnposter
be89acce39 Do not include whitespace in the size string 2022-02-04 02:27:15 +00:00
nnposter
9de580fe6f Allow more whitespace between HTML tags. Closes #2434 2022-02-04 02:17:39 +00:00
dmiller
0af0b822a1 Send DHCP requests on all interfaces, not only the lowest-metric one 2022-01-13 22:30:21 +00:00
dmiller
c3d54f1fac Change how ms-sql NSE scripts run
MS SQL NSE scripts run on database instances, which can be TCP or named
pipes. With this change, all TCP instances on scanned ports will have
script output attached under the port as a portrule script. Named pipe
instances and TCP instances on unscanned ports will be displayed in the
hostrule script output at the end of the host's output. Utility function
mssql.Helper.InitScript makes it easy to write scripts that just work on
a per-instance basis, without bothering where to put the output.
Discovery will be done once per host, regardless of how many scripts are
run, and can be guaranteed to be done before the script's action takes
place.
2022-01-03 21:08:52 +00:00
dmiller
33405fcfb5 Remove an unused include [ci skip] 2022-01-03 21:08:51 +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
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
dd82097c80 Merge changes from 7.92 release branch 2021-08-08 21:20:19 +00:00
dmiller
51180ec958 Make a variable local 2021-07-02 20:01:31 +00:00
dmiller
7c61f7c9c3 TLS 1.3 support for NSE. Fixes #1691 2021-07-02 20:01:30 +00:00
nnposter
4b46fa7097 Label the function as intentionally empty
See https://seclists.org/nmap-dev/2021/q1/31
2021-04-07 18:42:28 +00:00
nnposter
068e77a37f Restore Supported Point Formats Extension. Fixes #1187
Some servers are not compliant with RFC 4492, section 4,
and abort the handshake when the extension is missing.
2021-03-21 02:37:18 +00:00
nnposter
58617a79f7 SMB2 dialect refactoring. Fixes #2203, closes #2208 2021-01-18 21:21:43 +00:00
fyodor
3bb502fcb0 Update author name/email 2021-01-14 18:26:56 +00:00
dmiller
9a3a8d1593 Check for output before returning. See #2212 2020-12-30 23:31:36 +00:00
nnposter
77f764fe72 Add script nbns-interfaces. Closes #2201 2020-12-30 03:51:21 +00:00
nnposter
f6fbb29481 Improve output formatting
- EHLO output no longer has a trailing separator
- Strings "214" and "250" are now removed only from the line beginning
2020-12-27 00:38:53 +00:00
nnposter
d0cf36c0a7 Fix false positives due to missing start/boot time
SMB field ServerStartTime ['start_time'] of zero should be interpreted
as "no time provided", not as the start of the epoch.
The field is zeroed out in SMB dialect 3.1.1.
2020-12-16 19:19:15 +00:00
nnposter
1b39988bf9 Correct the return value of smb2.negotiate_v2
As documented, the function should return the negotiated SMB2 dialect,
not just reflect back the dialect override table.
2020-12-16 17:54:15 +00:00
nnposter
15e529c64f Clarify default script behavior 2020-12-04 01:16:08 +00:00
dmiller
f4fb91912d New script port-states expands hidden port state summaries 2020-11-16 21:41:46 +00:00
nnposter
7400723efa Improvements to script hostmap-crtsh
* Avoids accepting identities not representing hostnames as new targets
* Identity representing a wildcard certificate is reduced to its static portion
* Replaces custom crt.sh response parsing with JSON parser
* Adds more error-checking code
* Splits SANs into individual names (closes #2174)
2020-11-15 01:37:45 +00:00
nnposter
f4e19b17ea Change PJL command termination from LF to CR/LF
The PJL specification (HP publication 5021-0380) makes the CR optional
but apparently it is required by some implementations. Fixes #2182
2020-11-14 23:29:05 +00:00
dmiller
a877e2cb9b Use string unpack instead of string.byte 2020-11-06 21:48:33 +00:00
dmiller
532d5a555e Add openflow-info.nse. Closes #711 2020-10-19 17:13:23 +00:00
dmiller
72ff06d02b Avoid testing invalid usernames 2020-10-19 17:13:22 +00:00
nnposter
e333addec4 Ability to set SNMP protocol version. Closes #1473 2020-10-09 02:43:26 +00:00
nnposter
1a87f11f42 Default rule base for script mysql-audit. See #2125 2020-10-04 02:52:31 +00:00
nnposter
fa6bd3f901 Update the SSH protocol flow. Closes #1460
Allows the server to start the key exchange before the protocol version
exchange (banner exchange) is completed
2020-09-13 00:12:48 +00:00
nnposter
dd6650b887 Replace hyphens in the client SSH banner
Hyphen is not allowed in the software version string (RFC 4253, section 4.2)
2020-09-13 00:01:40 +00:00
dmiller
3b633fd97c Try to make sure enough data is present before parsing. See #2117 2020-09-10 22:02:12 +00:00