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
fyodor
ff62300249
Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text
2018-01-28 21:18:17 +00:00
tomsellers
a67240b58c
version.bind cleanup, cross protocol version probe fallbacks Closes #977
...
Full description in GitHub PR#977
o [GH#977] Improved DNS service version detection coverage and consitentcy
by using data from a Project Sonar Internet wide survey. Numerouse false
positives were removed and reliable softmatches added. Match lines for
version.bind responses were also conslidated using the technique below.
[Tom Sellers]
o [GH#977] Changed version probe fallbacks so as to work cross protocol
(TCP/UDP). This enables consolidating match lines for services where the
responses on TCP and UDP are similar. [Tom Sellers]
2017-09-13 11:03:40 +00:00
dmiller
1323cad17b
New helper function to unpack integers in nmap-service-probes
2017-08-01 22:09:22 +00:00
dmiller
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
dmiller
ab5e247cee
Include netutil.h for IPPROTO_SCTP constant where necessary. Fixes #868
2017-04-26 18:55:16 +00:00
dmiller
e813de759a
Reduce use of utils.h for error functions
2017-04-20 22:39:08 +00:00
dmiller
24f6cec25a
Move scan lists structs and functions to scan_lists files.
2017-04-19 04:14:43 +00:00
fyodor
4bd67aa2fb
Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml
2016-12-14 00:12:23 +00:00
dmiller
9370f5bd5d
Strip carriage returns (\r) from output to prevent spoofing
2016-09-21 03:55:12 +00:00
dmiller
b012b84a8e
Avoid undefined behavior from calling front() on possibly empty std::list
2016-06-17 16:11:33 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00