Commit Graph

13613 Commits

Author SHA1 Message Date
dmiller 10dfd2ff1c Wait for remaining children from -lk with cmdexec 2026-07-14 19:20:12 +00:00
dmiller eb31283031 Catch and propagate termination signals to children with -k 2026-07-14 19:20:11 +00:00
dmiller ddd1494462 Consolidate code to close stdin 2026-07-11 22:06:29 +00:00
dmiller 5ca93f7762 Don't decrement connection count on listener or stdin error
Possibly the cause of #1410, since calling close_fd() decrements
conn_inc, but stdin and listeners aren't accounted for there, which
would cause get_conn_count() to underflow. Theoretical, since I have not
been able to repro #1410.
2026-07-11 22:06:29 +00:00
dmiller d0caba8b42 Check for error from fselect() 2026-07-11 22:06:28 +00:00
dmiller 954a712666 Save and restore errno in sigchld_handler()
waitpid() can set errno, which might hide an error from the main thread
when running the signal handler.
2026-07-11 22:06:27 +00:00
dmiller 49a85f9c3c Simplify cstring_unescape and add tests 2026-07-08 20:23:12 +00:00
dmiller 919ddb44cb Clarify escapes that resemble octal escapes in Probe lines 2026-07-08 20:23:11 +00:00
dmiller ad1a82b2d0 Fix unintended octal escapes in service match lines 2026-07-08 20:23:10 +00:00
dmiller b47e7f07ef Change explicit X==true to X 2026-07-08 00:42:18 +00:00
dmiller ce2b1e6d39 Change explicit X==false to not X 2026-07-07 14:50:05 +00:00
dmiller 02f6f8fdd3 Check for null after backslash. 2026-07-06 19:32:05 +00:00
dmiller 4d50070c7f Remove hostmap-bfk. Fixes #2016 2026-07-02 20:36:22 +00:00
dmiller 30df9912b5 Remove unused variable 2026-07-02 20:36:22 +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 87e8e270d1 Add an output limit for zlib.decompress 2026-07-01 02:06:11 +00:00
dmiller 6a9bf48387 Check for start_smb failure. Fixes #1946 2026-07-01 02:06:11 +00:00
dmiller 5340f729b6 Check for parsing errors from Packet:new() 2026-06-26 22:06:08 +00:00
dmiller aed330325b Check for tcp th_off < 5 (NSE) 2026-06-26 22:06:06 +00:00
dmiller b5c54d9687 Check for tcp th_off < 5 2026-06-26 22:06:05 +00:00
dmiller 4651a54b4b Assertions for TCP and IP header length field 2026-06-26 22:06:05 +00:00
dmiller 3fa8d201fa Add checks for ip_hl < 5 2026-06-26 22:06:04 +00:00
dmiller 2b474bb49b Fix bug in calculating data offset 2026-06-26 22:06:03 +00:00
dmiller 18fbf9ad47 Combine logic from IPv4/6 2026-06-26 22:06:03 +00:00
dmiller 8508d02033 Remove vestiges of Nping's alpha version number. See #2862 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 d8620dc11d Check embedded IP header is within bounds. Credit: Himanshu Anand 2026-06-25 21:58:49 +00:00
dmiller bb6754e76b Fix extension header parsing. Credit: Himanshu Anand 2026-06-25 21:58:49 +00:00
dmiller 8769ab35f3 Correctly handle root domain label. Credit: Himanshu Anand 2026-06-25 21:58:48 +00:00
dmiller fcabd66198 Report number of tests and failures for DNS tests. 2026-06-25 21:58:47 +00:00
dmiller 891cdd0179 Fix signedness in comparison 2026-06-25 16:33:14 +00:00
dmiller 687061d534 Avoid extra parsing/copying 2026-06-25 16:33:13 +00:00
dmiller 22a5194e18 Replace yet another implementation of TCP option parsing with a standard function 2026-06-24 20:48:16 +00:00
dmiller 84b525f61d Use TCPOptions class for IPv6 vectorization 2026-06-24 20:21:57 +00:00
dmiller c86a45ef6e Consolidate TCP option parsing 2026-06-24 14:47:12 +00:00
dmiller 486fa2ebdd Link a changelog entry to a known issue. Closes #1680 2026-06-24 14:47:11 +00:00
dmiller 806c0af5ee Fix disparity in const between OpenSSL 3 and 4 2026-06-19 00:05:22 +00:00
dmiller c7491c386a Fix VS version detection for autobuild script 2026-06-18 23:26:08 +00:00
dmiller 4f4ad965d1 Use RAII for terminal settings 2026-06-18 23:26:07 +00:00
dmiller e997ad74ae Catch C++ exceptions at the top level 2026-06-18 23:26:07 +00:00
dmiller b3620f74c3 Check return from OpenSSL allocation functions. Fixes #2721 2026-06-18 23:26:06 +00:00
dmiller 1e1881ee65 Correct CMake generator name for VS2026 2026-06-17 19:31:36 +00:00
dmiller f25312130b Make a more reasonable assertion. Fixes #1546 2026-06-17 19:31:35 +00:00
dmiller 364c172f7d Fix a couple changelog formatting issues 2026-06-17 17:34:45 +00:00
dmiller ab0d049477 Add missing require 2026-06-17 17:34:44 +00:00
dmiller 86dbd83efc Avoid g++ warning about std::iterator deprecation 2026-06-17 17:34:44 +00:00
dmiller 5767158030 Reuse raw socket for IPv6 when possible 2026-06-16 17:32:12 +00:00
dmiller 63a39b7a90 Remove unused ip param from smbauth functions. Fixes #268 2026-06-16 14:20:17 +00:00
dmiller 4920925372 Allow --stats-every and --noninteractive together. Fixes #3175 2026-06-16 14:07:15 +00:00
dmiller 538764bb6a OpenSSL 4.0 compatibility. Fixes #3375 2026-06-16 13:58:41 +00:00