Commit Graph

196 Commits

Author SHA1 Message Date
dmiller 58facd5fbf Remove obsolete AC_HEADER_TIME 2026-08-14 17:16:15 +00:00
dmiller 9893d6e61c increase line buffer, add truncation error. Fixes #3201. Closes #3367 2026-07-22 18:08:14 +00:00
dmiller eb79c42b05 Bind to source with -e, not only -S. Fixes #2122 2026-07-20 15:48:57 +00:00
dmiller bc4346dd87 Use exponential moving average for timing estimates
Time remaining estimates are now based on a moving average work unit
completion rate instead of percent completion of the entire task. This
better fits tasks that may increase the number of work units as time
goes on (such as increasing the number of retries for any given probe)
2026-07-01 02:06:12 +00:00
dmiller e7b196be83 Fix a few signed/unsigned comparison warnings 2026-05-28 20:21:17 +00:00
dmiller 7f2cf3a815 Fix heap limit: off by 3 orders of magnitude 2026-05-26 18:58:21 +00:00
dmiller 0916eb02b3 Tighten limits on PCRE matches 2026-05-26 18:56:47 +00:00
dmiller b150def88c Limit heap mem per pattern match 2026-05-26 18:56:46 +00:00
dmiller 713f8091ba Refuse patterns that match the empty string 2026-05-26 18:56:45 +00:00
dmiller 3cb27110dc Reduce number of possible reallocs from slow services 2026-05-26 18:56:45 +00:00
dmiller 9f8c9624f5 Fix reported integer underflow. No existing patterns affected 2026-05-26 01:52:13 +00:00
dmiller 323d875df8 Ensure nbase's hexdump doesn't print too much 2026-05-06 21:38:09 +00:00
dmiller 95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller ca0324fc2f Initialize ServiceGroup::busy member 2025-07-13 04:39:09 +00:00
dmiller be749705d8 Avoid runaway recursion in service scan, similar to #3130 2025-07-11 17:08:57 +00:00
dmiller 4ed1ce0eee Avoid passing empty string to nsock_pool_set_device
Nsock checks for NULL, but not for empty string. Rather than making
Nsock decide, each app will decide whether to call
nsock_pool_set_device, with all currently skipping the call if device is
an empty string.
2025-06-09 18:38:59 +00:00
dmiller 6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller e263e64820 Don't bail on PCRE2 match errors. Better debug info. 2024-09-27 19:20:42 +00:00
dmiller 01ccce00c0 Define service buffer lengths in one place only 2024-09-27 19:20:41 +00:00
dmiller be9c6d96ee Handle ENETDOWN in service scan. Generally do not fatal() on socket errors there. 2024-05-21 18:49:36 +00:00
nnposter 96dcf4e9ed Remove various "the the" repeats. Closes #2804 2024-03-16 01:16:34 +00:00
dmiller f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller 828ab48764 Upgrade libpcre to PCRE2 10.42. Windows/macOS builds not completed. 2023-06-24 01:53:07 +00:00
dmiller 6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller 2fcfac9329 Closes #2541. Consolidate nmap-payloads and nmap-service-probes; use port scan responses in version scan. 2022-10-21 21:15:48 +00:00
dmiller 84e2e9be52 Add DTLS tunnel scanning to -sV 2022-10-10 20:48:15 +00:00
dmiller e319c6d519 Use charpool for service names
Small strings have greater malloc alignment overhead which we save
(~300KB) with this method. string_pool was a slight memory savings but
greater computational cost due to memory overhead and insertion
calculation.
2022-09-19 17:51:46 +00:00
dmiller 00c493485c Fewer (4.5MB) transient allocations when parsing service match lines 2022-09-19 17:51:46 +00:00
dmiller c39ed4d7c7 Remove unused members from ServiceProbeMatch class 2022-09-19 17:51:45 +00:00
dmiller dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +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 1fd272f8dd const all the things! 2021-04-23 20:37:41 +00:00
dmiller ef2bafb09c Report system error message when fopen fails 2020-12-28 17:51:16 +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 ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller 3635595b24 Do not search NMAPDATADIR on Windows as it is not defined. See #2051 2020-08-28 15:06:08 +00:00
dmiller a2c75e0ef4 Abstract nsock logging function to avoid nsock.h inclusion in output.h 2020-01-11 16:03:28 +00:00
dmiller 2f91473a06 Remove FIXME comment: newstrlen *is* checked.
I added this a long time ago, and decided to check it. In fact,
newstrlen is used to calculate newstrend, and each section of the
template is checked to ensure it does not go past newstrend, so the
intent is met and the length is not exceeded. I still think it could be
written more clearly, but it's good for now. #1834
2020-01-02 16:04:29 +00:00
dmiller 4a1c9424d3 Replace localtime calls with thread-safe alternative. See #1834 2019-12-15 05:05:57 +00:00
dmiller d639a53088 Bump copyright date in license headers 2019-05-28 21:36:04 +00:00
nnposter aac899be8f Fixes a platform-dependent integer size mismatch. Fixes #966 2019-01-21 01:21:08 +00:00
nnposter 973b471c11 Corrects a few issues related to snprintf return values 2018-08-26 02:29:14 +00:00
dmiller d8ff55b72e Start timeout clocks closer to first probe, not in batches. Closes #1150 2018-08-13 19:24:06 +00:00
dmiller c3113037b0 Avoid NULL ptr deref crash if pcre_study returns NULL. Fixes #1302 2018-08-10 17:12:19 +00:00
nnposter 684803ce30 Fixes a comment to match opening ifdef 2018-08-08 17:33:01 +00:00
dmiller 6d8bb6df22 Set limits on PCRE matches to avoid issues like #1147 2018-08-08 16:36:21 +00:00
dmiller b94ceaa05b Fix error message, copy/paste mistake. See #1183 2018-04-14 02:11:00 +00:00
dmiller 09d8bf81be Send any matching probes after a softmatch; do not filter by rarity 2018-02-12 04:36:43 +00:00
dmiller 5ea4a27650 Make --version-all send all version probes 2018-02-06 04:33:57 +00:00
dmiller 06c38c79dd Fix softmatches: enable skipping port-matching probes, too. 2018-02-04 21:31:41 +00:00