Commit graph

325 commits

Author SHA1 Message Date
dmiller
8508d02033 Remove vestiges of Nping's alpha version number. See #2862
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-06-25 21:58:51 +00:00
dmiller
238f13a451 Add WSL compatibility warning to Nping 2026-06-25 21:58:50 +00:00
dmiller
b3620f74c3 Check return from OpenSSL allocation functions. Fixes #2721 2026-06-18 23:26:06 +00:00
dmiller
5767158030 Reuse raw socket for IPv6 when possible
Some checks failed
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-06-16 17:32:12 +00:00
dmiller
a5ee61bea2 Avoid unlimited rate due to integer division. Fixes #1751 2026-06-16 13:58:40 +00:00
dmiller
4c45907f76 Correct IP version check. Fixes #3215
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-06-15 16:17:04 +00:00
dmiller
66154fc902 Fix packet field lengths for IPv6 TC and FLOW 2026-06-15 16:17:03 +00:00
dmiller
5a5b8e5ad2 Use correct BPF for icmp6. Fixes #1261 2026-06-15 15:14:11 +00:00
dmiller
75d16aab1b Properly determine device name from target if possible 2026-06-15 15:14:10 +00:00
dmiller
65ed79b280 Fix a bug and some comments using copy-pasted '4' when '6' is needed 2026-06-15 15:14:09 +00:00
dmiller
96ceee0393 Don't report socket errno for Nsock cancel/timeout/kill events 2026-06-15 15:14:08 +00:00
dmiller
60592283d3 Use libnetutil's IPv6 sending for Nping 2026-06-15 15:14:07 +00:00
dmiller
fc305b0187 Use ostringstream instead of Snprintf to avoid Shlemiel the Painter 2026-06-15 15:14:07 +00:00
dmiller
79fd4e4d02 Function returning static string should return const 2026-06-15 15:14:06 +00:00
dmiller
9d57f456ee Remove unused/empty common.h and common.cc from nping
Some checks failed
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Has been cancelled
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Has been cancelled
2026-06-13 06:09:22 +00:00
dmiller
738455f46c Consolidate getNextHopMAC to libnetutil 2026-06-13 06:09:21 +00:00
dmiller
8d7038e51e Remove nping/global_structures.h as none of these were used. 2026-06-13 06:09:20 +00:00
dmiller
dba42c8529 Use NetBlock/massdns for targets in Nping 2026-06-10 21:39:43 +00:00
dmiller
ebdec1fa3e Only enforce havePcap if necessary. Fixes #564
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-05-14 19:35:29 +00:00
dmiller
2d46c6b86c Avoid static buffer for protocol hdrinfo functions 2026-05-12 18:09:00 +00:00
dmiller
4ba5b9c335 Replace duplicate implementations of libnetutil functions
Some checks are pending
nmap multiplatform autobuilds / build (arm64, gcc, ubuntu-latest-gcc-arm64, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, freebsd-15-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-15-clang, macos-15) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, macos-26-clang, macos-26) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, netbsd-10-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, openbsd-7-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, solaris-11-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (clang, ubuntu-latest-clang, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (egcc, openbsd-7-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, freebsd-15-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, netbsd-10-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, solaris-11-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (gcc, ubuntu-latest-gcc, ubuntu-latest) (push) Waiting to run
nmap multiplatform autobuilds / build (msvc, windows-latest-msvc, windows-latest) (push) Waiting to run
2026-05-12 14:35:31 +00:00
dmiller
bf82212b14 Avoid undefined unaligned accesses in Nping. Use more const. 2026-05-07 17:44:22 +00:00
dmiller
712f5474d9 Don't allow Eth-related options with --send-ip. Fixes #380 2026-05-07 17:44:21 +00:00
dmiller
323d875df8 Ensure nbase's hexdump doesn't print too much 2026-05-06 21:38:09 +00:00
dmiller
ff5ea1b9ad Fix memory leak of client IDs 2026-04-15 21:28:36 +00:00
dmiller
884bde1d72 Fix out-of-bounds access in Nping EchoClient 2026-04-15 21:28:35 +00:00
dmiller
a35225d3e1 Fix some memory leaks in arg parsing 2026-04-15 21:28:34 +00:00
dmiller
6ae2a33dc8 Fix leak of packet buffers in Echo client and server 2026-04-15 03:21:57 +00:00
dmiller
df9391e57a Ensure nsock pool is not deleted twice 2026-04-15 03:21:56 +00:00
dmiller
63c4bb589f Correct placement of EVP_CIPHER_CTX_set_padding *after* EVP_EncryptInit 2026-04-14 21:08:03 +00:00
dmiller
6dac43b5d8 Bump version to 7.99SVN 2026-03-27 13:56:38 +00:00
dmiller
deb076224e Reintegrate Nmap 7.99 release branch 2026-03-27 13:52:02 +00:00
dmiller
5b78ef236e Gracefully handle arp_open failure 2026-03-10 18:32:50 +00:00
dmiller
95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller
1b3ca45054 Compatibility fixes and Github autobuilds. Closes #3214 2026-01-12 16:59:25 +00:00
dmiller
72b6830067 Bump version to 7.98SVN 2025-08-21 20:29:59 +00:00
dmiller
58874849d3 Reintegrate Nmap 7.98 release branch 2025-08-21 20:24:37 +00:00
dmiller
67a796844f Consolidate raw socket acquisition. 2025-06-30 19:24:32 +00:00
dmiller
3499025302 Wrap dnet eth functions for non-Ethernet links 2025-06-23 20:54:32 +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
b23300c65a Bump version to 7.97SVN 2025-05-15 16:03:29 +00:00
dmiller
ec3b1d264b Reintegrate 7.97 changes 2025-05-15 15:42:03 +00:00
dmiller
7dfa8e8186 Regen man pages 2025-05-07 22:57:07 +00:00
dmiller
c2d04beaa4 Bump version to 7.96SVN 2025-05-07 22:57:05 +00:00
dmiller
c66baf785e Merge Nmap 7.96 release branch 2025-05-07 13:22:40 +00:00
dmiller
cb975e9fb7 Use correct location/name for dnet.lib on Windows 2025-04-16 00:01:03 +00:00
dmiller
42170b067f Remove unneeded g_has_npcap_loopback 2025-04-16 00:00:05 +00:00
dmiller
5997305d89 Fix link warnings on Windows 2025-04-11 21:17:44 +00:00
dmiller
5f6bc69983 Account for VLAN header in pcap packets if needed. 2025-04-10 19:00:50 +00:00
nnposter
4ab57093da Match the type in sizeof with the actual declared type 2025-03-23 01:53:03 +00:00