Commit Graph

559 Commits

Author SHA1 Message Date
dmiller 248fe810c7 Get runtime version of libdnet if possible 2026-09-25 16:04:15 +00:00
dmiller 8a11c8c204 Use portable format spec for 64-bit int 2026-09-19 02:26:43 +00:00
dmiller 58b0649c64 Add missing header (non-SSL build) 2026-09-16 18:47:20 +00:00
dmiller b97fabd935 More strictly check strtod results 2026-08-31 17:51:18 +00:00
dmiller 2ce474d877 Simplify/consolidate warnings about default-seconds options 2026-08-29 21:34:19 +00:00
dmiller 7361c340be Let -iR notice if all possible addresses are excluded 2026-08-28 04:03:23 +00:00
nnposter 4c36cf12f2 Do not call NSE if compiling without Lua support. Close #3434 2026-08-12 19:29:05 +00:00
dmiller e24c7746b1 Get libssh2 version at runtime 2026-07-27 15:55:35 +00:00
dmiller d21db40935 Forbid multiple overlapping output file options 2026-07-17 21:56:24 +00:00
dmiller e26c18433a Fix memory leak in -oA log file name generation 2026-07-17 21:56:24 +00:00
dmiller 4f4ad965d1 Use RAII for terminal settings 2026-06-18 23:26:07 +00:00
dmiller d8c9880cd5 Consolidate inet_ntop_ez-like code from throughout 2026-06-11 23:28:26 +00:00
dmiller ff028e681f Always release memory 2026-05-26 01:52:16 +00:00
dmiller c110e3bfa1 Free argv copy when --resume is used 2026-05-26 01:52:14 +00:00
dmiller a24082eee4 Close/unload NSE with --release-mem to resolve false-positive memory leaks 2026-04-06 21:33:45 +00:00
dmiller 95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller 92e2c5f2aa Simplify decoy address resolution 2025-06-17 21:50:11 +00:00
dmiller a600528532 Set ss_family when generating random decoys. Fixes #2757. 2025-06-17 21:50:10 +00:00
dmiller 75f3f97763 Skip extension header values as protocol numbers. Fixes #2899 2025-06-17 18:07:01 +00:00
dmiller b05b0b04ec Use ISO 8601 timezone, avoid encoding problems 2025-05-08 17:40:53 +00:00
dmiller 6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller 390e0266db Consolidate private IP checking. Add IPv6. 2025-01-16 23:00:13 +00:00
dmiller b63eea5eea devname2ipaddr now requires address family, so correct addr is returned. 2024-06-20 20:14:30 +00:00
dmiller a908872dae Don't scan infinite random when no targets specified 2024-06-05 16:09:58 +00:00
dmiller ccb536f3c2 Use Npcap-specific error messages on Windows for privilege issues. 2024-06-03 19:29:18 +00:00
dmiller b940270375 Move random address generation to TargetGroup/NetBlock 2024-05-01 22:19:29 +00:00
dmiller f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller 53752093d7 Fix unprivileged behavior for -PU and others
If not root, fallback to TCP ping from ICMP was incorrectly obliterating
other -P* options without warning, leading to unexpected behavior and
inconsistent error messages (i.e. including -PE would silence all
warnings usually given with -PU)
2023-11-27 23:05:02 +00:00
fyodor ff92f5bae9 Small usage line clarification 2023-10-06 19:39:28 +00:00
dmiller 5f58debc51 Handle RLIM_INFINITY as socket limit. 2023-09-01 21:12:19 +00:00
dmiller 828ab48764 Upgrade libpcre to PCRE2 10.42. Windows/macOS builds not completed. 2023-06-24 01:53:07 +00:00
dmiller aedf179178 Catch unsupported -P options for those that don't take a port argument 2023-05-09 14:16:46 +00:00
dmiller f0ae60142a Deprecate the -PT option (effect the same as -PA) 2023-05-09 14:16:46 +00:00
dmiller 8cd2130cd4 Use switch instead of chained if/else for -P* options 2023-05-09 14:16:45 +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 b092262a22 Clarify docs around timing templates [ci skip] 2022-09-23 21:41:58 +00:00
dmiller 7013eefb05 Support MA-S, MA-M, and MA-L reg lookups for OUI/MAC/EUI-48 2022-09-08 23:37:54 +00:00
dmiller e0771f5d7d Change 'consecutive' to 'sequential' when describing -r option. See #1750 2022-07-05 16:20:16 +00:00
dmiller c58b7b2526 Fix #2496: new targets couldn't be added because singleton object was not created 2022-06-27 23:01:44 +00:00
dmiller dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +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
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 fda782cafe Catch most likely editor munges of hyphens in options. See #2335 2021-08-16 21:02:46 +00:00
dmiller 042ddd33b4 Get runtime version of OpenSSL, not header version. 2021-07-28 20:52:01 +00:00
dmiller e876b37787 Remove an unused variable 2021-07-26 18:43:18 +00:00
dmiller d4ceb17a8d Use getaddrinfo instead of gethostbyname for FTP bouncescan 2021-07-22 17:19:12 +00:00
dmiller 7bf0a7f016 Remove/change some text to describe Npcap, not WinPcap 2021-07-21 22:42:46 +00:00
dmiller 169dc44b73 Allow --host-timeout=0 to override the timeout of -T5. 2021-05-13 21:57:14 +00:00