1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00
Commit Graph

12968 Commits

Author SHA1 Message Date
dmiller
0de714e8d3 New option --unique to prevent scanning same address twice. See #2180 2020-11-15 04:57:44 +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
eb029afd7c Minor performance tweaks to core NSE functions. 2020-11-10 00:08:38 +00:00
dmiller
4c28124b77 Fix #2175: NSE script output now tagged to Target obj, not IP or targetname 2020-11-09 18:49:17 +00:00
dmiller
a877e2cb9b Use string unpack instead of string.byte 2020-11-06 21:48:33 +00:00
dmiller
8eebe86ee9 http.lua: Reuse constant objects instead of creating them 2020-11-06 21:48:32 +00:00
dmiller
5eced2c1a5 Reuse constant objects instead of creating them for frequently-used functions 2020-11-06 21:48:31 +00:00
dmiller
041838d986 Clean up packet.lua, add a few unit tests. 2020-11-04 22:26:58 +00:00
dmiller
82be54a353 Convert exception to string first; Fixes #2157 2020-11-01 03:24:17 +00:00
dmiller
74296582e2 Hide a minor warning behind -v. Fixes #2166 2020-10-30 14:07:02 +00:00
dmiller
9ac591f9db Better handling for ICMP Host Unreachable 2020-10-29 23:02:30 +00:00
dmiller
15726a0be1 Minor optimization of freshPortsLeft
The actual number only matters for certain debug output, so replaced
this frequently-called function with one that short-circuits to return a
boolean. Mostly only matters for host discovery scans, since all others
were only a few instructions already.
2020-10-26 16:59:06 +00:00
dmiller
e317dfdb8a Avoid a few calls to Target::timedOut, which is not relevant in host discovery 2020-10-26 16:59:06 +00:00
dmiller
c3f8620f1a Use finer-tuned pcap filters for various scans for efficiency 2020-10-23 03:42:27 +00:00
dmiller
4c50296597 Don't count discovery (ping scan) time against host timeout clock. See #1922, #2153 2020-10-23 03:03:26 +00:00
dmiller
2027c0cdc3 Destroy outstanding probes of completed hosts eventually. See #2153, #1922 2020-10-22 19:02:05 +00:00
dmiller
78751f8668 Ensure host_timeout is initialized 2020-10-22 19:02:05 +00:00
dmiller
19286e796d Fix ICMP Time Exceeded handling. See #110, #2153
We attempted to fix this twice already, so this change reverses r36709
(which simply ignored all Time Exceeded messages for host discovery,
leading to long scan times when the TTL is insufficient) and r34557
(which used incorrect logic to match ICMP responses, resulting in
ignoring all ICMP error messages in response to ICMP probes, e.g. Time
Exceeded for Echo Request).

Instead, we'll correctly verify that the ICMP ID of the *encapsulated
datagram* matches the one for the probe we are attempting to match.
2020-10-21 20:51:15 +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
dmiller
81bc933118 Return correct error ID 2020-10-19 17:13:21 +00:00
nnposter
f6b40614e4 Fix a Unix domain socket crash. Fixes #2154 2020-10-16 02:54:52 +00:00
dmiller
06b9904228 Updates to nmap-payloads. Closes #1895. Closes #1279 2020-10-16 00:16:45 +00:00
dmiller
88b96c4052 [ci skip] Remove done tasks and existing issues in our tracker from the todo file 2020-10-15 20:03:33 +00:00
dmiller
6f335b8fc9 Avoid assertion failure when match capture at end of text is empty.
First reported here: https://seclists.org/nmap-dev/2014/q2/105

We handle empty strings just fine, so treat it like that instead of
asserting that the capture must start before the end of the string.
2020-10-15 20:03:33 +00:00
dmiller
922b8cbbc4 Remove constant comparisons for values that cannot exceed the max 2020-10-15 18:51:20 +00:00
dmiller
c4cfe174be Remove a redundant condition (this branch is always res>0) 2020-10-15 18:19:06 +00:00
dmiller
9faf70fc78 Remove always-true condition, but be clear that n does not change in this function 2020-10-15 18:10:14 +00:00
fyodor
608d866fb7 fix typo: it's -> its 2020-10-15 18:06:31 +00:00
dmiller
3c5b7107d5 Avoid warnings about signedness in comparisons. See 2150 2020-10-15 17:45:48 +00:00
dmiller
f48d12a591 Avoid importing *, possibly polluting namespace 2020-10-15 17:17:34 +00:00
fyodor
e7188d653f Tiny reordering 2020-10-14 18:17:14 +00:00
dmiller
a5cca6f6a3 Remove replacement strlcat (unused) from libdnet-stripped 2020-10-13 20:13:38 +00:00
dmiller
e61f145425 Make strlcpy signature match declaration in libdnet-stripped. See #2150 2020-10-13 20:13:37 +00:00
dmiller
b8a6d3773e Incorrect issue number in changelog 2020-10-13 19:38:14 +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
b9bb2ec387 Fix (again) the Windows date representation problem. 2020-10-10 13:37:03 +00:00
nnposter
e333addec4 Ability to set SNMP protocol version. Closes #1473 2020-10-09 02:43:26 +00:00
dmiller
c174f8dd97 Adjust base time by local offset for Windows 2020-10-08 23:09:22 +00:00
dmiller
50bef20b92 Handle date formatting for Windows for years earlier than 1970. See #2136 2020-10-08 23:09:21 +00:00
dmiller
e3262d33d6 Fix crash due to missing import. Fixes #2148 2020-10-08 19:28:32 +00:00
nnposter
1d4d3536e3 Fix off-by-one bug when parsing MySQL EOF packet. Fixes #2128 2020-10-08 17:56:18 +00:00
dmiller
c8450d4d0c Handle a weird IOCP error for UDP sockets. Fixes #2140 2020-10-07 21:56:28 +00:00
dmiller
ee6bc18844 Only warn about protocol specs in port list with -p. Fixes #2135 2020-10-06 18:44:12 +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
nnposter
5c0bf18595 Fix a CHANGELOG typo 2020-10-04 03:37:01 +00:00
nnposter
63c88b1a74 Avoid masked use of date before 1/1/1970 UTC. Fixes #2136, closes #2137 2020-10-04 03:28:01 +00:00