Commit Graph

  • 82586d6327 Remove unused functions from snmp.lua dmiller 2024-11-12 20:05:58 +00:00
  • fdf5a2d7e9 Configurable retries for snmp.lua dmiller 2024-11-12 20:05:57 +00:00
  • 10321be656 snmp.lua: add configurable timeout dmiller 2024-11-12 20:05:57 +00:00
  • 379b56b582 Include timeout info in debug output for all nsock reads/connects dmiller 2024-11-12 20:05:56 +00:00
  • 2d43280b16 NSE libssh2 bindings: allow exec without pty dmiller 2024-11-11 21:07:01 +00:00
  • e2ccdb8074 Fix a typo in ssh-run dmiller 2024-11-11 21:07:01 +00:00
  • 33bfd251b4 Macro for common idiom in nse_libssh2 dmiller 2024-11-11 21:07:00 +00:00
  • 5d14851aaa Fix error in ldap-brute: 'no string output' dmiller 2024-11-11 21:06:59 +00:00
  • bfba1352e4 Fix UDP listen on Windows: recvfrom behaves differently. dmiller 2024-11-07 23:43:26 +00:00
  • 1e8c1ab3cd Let all nsock engines use STDIN on Windows! dmiller 2024-11-06 16:48:29 +00:00
  • 1c3fc17d2f Ncat: handle overlapped stdin socket from nbase's fselect dmiller 2024-11-06 16:47:25 +00:00
  • 6b2df74ef2 Nbase: use a static SOCKET for STDIN dmiller 2024-11-06 16:46:32 +00:00
  • 635cc50011 Nsock iocp: fix IPv6 connect dmiller 2024-11-06 16:06:32 +00:00
  • f9b9434044 nbase: win32 build fix dmiller 2024-11-06 16:05:03 +00:00
  • 411b186576 Simplify nevent_delete for PCAP_BSD_SELECT_HACK mode dmiller 2024-11-01 18:40:09 +00:00
  • 2ca95ad6b4 Nsock select engine: don't process if sd is -1 (nonselectable) dmiller 2024-11-01 18:40:08 +00:00
  • 0e3a51c992 Set timeouts for Windows connect scan. Fixes #2113 dmiller 2024-10-30 19:02:09 +00:00
  • f1559fbc22 Use a socket, not pipe, for STDIN emulation in fselect dmiller 2024-10-30 18:55:39 +00:00
  • fef9f592b0 POSIX usleep() returns an int. dmiller 2024-10-28 23:17:05 +00:00
  • f0c022b25f Avoid infinite loop on systems where select doesn't update timeout dmiller 2024-10-28 23:11:53 +00:00
  • 191aadf142 Record current time for connect probes, not an old time dmiller 2024-10-28 23:11:52 +00:00
  • cf718f2071 Avoid a few extra gettimeofday calls dmiller 2024-10-28 23:11:52 +00:00
  • df1604ab19 Simplify pcap_select, remove timeval form dmiller 2024-10-28 23:11:51 +00:00
  • 931c13cd21 Fixes for IOCP engine build dmiller 2024-10-15 20:37:11 +00:00
  • 7703b045e5 Nsock poll engine: efficient use of pollfds array dmiller 2024-10-11 20:59:35 +00:00
  • 14142ce874 Use nbase's usleep, not select, for delay timer in Ncat dmiller 2024-10-11 20:59:34 +00:00
  • b94ae785ba Fix handling of non-select()-able pcap handles dmiller 2024-10-11 20:59:34 +00:00
  • 6186767cd1 Move a useful function to nsock_core.c dmiller 2024-10-11 20:59:33 +00:00
  • 532938f49c Do a non-blocking check for events when pcap data is available dmiller 2024-10-09 17:40:10 +00:00
  • 167fafe65c Correctly handle all cases for canceling IO in iocp engine dmiller 2024-10-08 21:14:43 +00:00
  • f765af4070 IOCP engine: further checks against duplicating eovs dmiller 2024-10-08 21:14:42 +00:00
  • 30bc184e0f Fix iocp engine when calling nsock_read on unconnected socket dmiller 2024-10-08 21:14:42 +00:00
  • d42dd7eed9 Additional tests and checks for gh_heap validity dmiller 2024-10-08 21:14:41 +00:00
  • f8d4531b1f Make some broadcast scripts 'safe' category dmiller 2024-10-08 21:14:40 +00:00
  • 0bae611494 Don't use 1ms timeout for writes. Actual time can be >100ms because of NSE overhead dmiller 2024-10-08 21:14:40 +00:00
  • a751509b0b Use u32 for s_addr; in_addr_t not defined on Windows dmiller 2024-10-07 18:31:14 +00:00
  • cb483ec503 Properly handle SSL connect events. Fixes #2139 dmiller 2024-10-07 18:30:28 +00:00
  • a86e86913b Ensure events are updated if SSL connect times out dmiller 2024-10-06 22:19:30 +00:00
  • f1325d7c6f Handle libssh2 errors on connect. Closes #2616. Fixes #1014 dmiller 2024-10-04 18:21:25 +00:00
  • b507356091 Fix typoed index in latest libssh2 publickey change dmiller 2024-10-04 18:21:24 +00:00
  • 79b35dcb04 Add binding for libssh2_userauth_publickey_frommemory dmiller 2024-10-03 19:18:13 +00:00
  • f8b7e5c860 Fix libssh2.channel_read_stderr, was reading stream 0 dmiller 2024-10-03 19:18:13 +00:00
  • 325a4f680c http.lua parse_redirect support URL params dmiller 2024-10-03 19:18:12 +00:00
  • e263e64820 Don't bail on PCRE2 match errors. Better debug info. dmiller 2024-09-27 19:20:42 +00:00
  • 01ccce00c0 Define service buffer lengths in one place only dmiller 2024-09-27 19:20:41 +00:00
  • 2184f98858 Consolidate cases: arpping is used for both IPv4 and IPv6 dmiller 2024-09-27 19:20:40 +00:00
  • f43fdaa1d7 Use no-route instead of unknown-response for ARP failure dmiller 2024-09-20 17:25:59 +00:00
  • 3d99250c83 Allow crypto IVs with leading zero. Close #2928, fix #2640 nnposter 2024-09-13 21:36:46 +00:00
  • 51b5a50004 Apply CHANGELOG entry tags consistently nnposter 2024-09-13 21:31:38 +00:00
  • 66bbf3dc96 Rectify heap corruption due to an uninitialized pointer in the libssh2 wrapper Close #2925, close #2917 nnposter 2024-09-07 17:43:12 +00:00
  • 36ba840489 Fix broken loading of SSH public keys from a file. Close #2919, see #2917 nnposter 2024-09-07 16:40:14 +00:00
  • 5039f7efca Add configure test for presence of python setuptools. Close #2915, see #2913 nnposter 2024-09-07 02:40:36 +00:00
  • 75f6b387fe Don't call WSACleanup if WSAStartup wasn't called dmiller 2024-09-04 18:41:44 +00:00
  • fbadb5256b Add a new username prompt to telnet-brute. Closes #2629 nnposter 2024-09-02 23:48:25 +00:00
  • bef25962e7 Improve tests for finding libpcre2. Close #2907, see #2851, see #2913 - Include definition of PCRE2_CODE_UNIT_WIDTH to allow the header test to compile correctly - Add description to the definition of HAVE_PCRE2_PCRE2_H to prevent an autoheader missing template error nnposter 2024-09-01 20:36:02 +00:00
  • 28e47f9361 Collapse Packet.ether_parse() into the constructor. It was called from there anyway and never called on its own from elsewhere. Furthermore, its documentation did not match its behavior. nnposter 2024-08-25 23:25:18 +00:00
  • ec17ad7e02 Remove redundant code, already part of Frame:new() nnposter 2024-08-25 18:27:05 +00:00
  • a97b4c83aa Add missing [NSE] tags to CHANGELOG nnposter 2024-08-25 17:53:43 +00:00
  • 2646596f0f Resolves ether_type incompatibility in packet.Frame Frame:new() was populating the value as a 16-bit integer while Frame:build_ether_frame() was expectng a two-byte string Ethertype constants from various locations have been migrated to packet.lua nnposter 2024-08-25 17:43:17 +00:00
  • 5e35bc0952 Rectify shadowing of the packet module nnposter 2024-08-25 17:06:11 +00:00
  • c661b0af64 Implement support for arbitrary separator in stdnse.tohex() Closes #2901, fixes #2744, closes #2745 nnposter 2024-08-25 13:27:58 +00:00
  • a1ba7b7672 Prevent unintentional filename expansion nnposter 2024-08-24 21:38:13 +00:00
  • 5d7012bab6 Correct detection of end-of-options in the DHCP parser, which rectifies false warning "Unexpected end of options" on valid packets. nnposter 2024-08-22 03:15:12 +00:00
  • 6adb9d3609 Correct the documentation for dhcp.dhcp_parse(), as it is explicitly wired to process only DHCP replies. Any other DHCP packet types are rejected. nnposter 2024-08-22 03:01:54 +00:00
  • 95807a0aa7 Add a missing table iterator. See #2891, see #2892 nnposter 2024-08-17 18:53:53 +00:00
  • cefa051cfc Fix various typos in comments. Closes #2888 nnposter 2024-08-16 02:40:23 +00:00
  • efa0dc36f2 Fix off-by-one overflow in the IP protocol table. Fixes #2896, closes #2897, closes #2900 nnposter 2024-08-08 01:31:06 +00:00
  • 667527c4b4 Add more GH references to the mssql library fix nnposter 2024-07-08 01:39:59 +00:00
  • 92995af023 Fix a typo in calling stdnse.format_ouptut(). See #2622 nnposter 2024-07-04 20:31:02 +00:00
  • a0d24d0518 More corrections of mssql.Helper.GetDiscoveredInstances() always returning a table. Closes #2784 nnposter 2024-07-04 19:44:51 +00:00
  • 596f9c0fe0 Correct mssql.Helper.ConnectEx() parameter documentation nnposter 2024-07-04 19:21:04 +00:00
  • 40172ca726 mssql.Helper.GetDiscoveredInstances() always returns a table nnposter 2024-07-04 19:14:38 +00:00
  • 3ab8fc27f8 Correctly handle empty result sets. See #2784 nnposter 2024-07-04 04:04:49 +00:00
  • 29741a6360 Avoid using hard-coded numerical codes. Replace repeated expression with a local variable nnposter 2024-07-04 03:21:53 +00:00
  • f4b092259c Correct the test for an empty non-list table. See #2784 nnposter 2024-07-04 02:41:11 +00:00
  • c13fff3d56 Fix DNS test for new function template dmiller 2024-07-01 16:17:42 +00:00
  • dde9c509ed Allow nsock_iod_get_communication_info() to get latest UDP peer dmiller 2024-07-01 16:17:42 +00:00
  • ba4a108868 Fix some bad patterns giving PCRE_ERROR_MATCHLIMIT dmiller 2024-07-01 16:17:41 +00:00
  • 1ec9caea3b Replace nested MAX/MIN macros with box() function dmiller 2024-06-27 19:36:05 +00:00
  • dcb4ba569e Avoid multiple expansions of TIMEVAL_MSEC_SUBTRACT macro within MAX macro dmiller 2024-06-27 19:36:04 +00:00
  • f0fab247db Simplify boostScanDelay to make it clear what limits are in place. dmiller 2024-06-27 19:36:03 +00:00
  • eb21ac9ea0 Refactor HSS::nextTimeout for efficiency dmiller 2024-06-26 21:54:29 +00:00
  • ba249b2d65 Avoid recalculating timeval that doesn't change for life of RateMeter dmiller 2024-06-26 21:54:28 +00:00
  • 7b20a38099 Minor efficiencies: avoid multiple expansions of function calls in TIMEVAL_* macros dmiller 2024-06-26 21:54:28 +00:00
  • 136e1c6ed7 Lua 5.4 change: userdata created with 1 uservalue by default. Set to 0 when possible dmiller 2024-06-20 20:47:10 +00:00
  • 13be028eb1 nse_dnet: try raw Ethernet sends if raw sockets don't work, e.g. Windows dmiller 2024-06-20 20:14:31 +00:00
  • a5baf9de0b Consolidate device name checking in nse_dnet.cc dmiller 2024-06-20 20:14:31 +00:00
  • b63eea5eea devname2ipaddr now requires address family, so correct addr is returned. dmiller 2024-06-20 20:14:30 +00:00
  • 32c1272bfa Fix error in targets-sniffer: interface name not set dmiller 2024-06-20 20:14:29 +00:00
  • 4b28defac6 Fix UDP checksum for IPv6 in packet.lua dmiller 2024-06-13 17:45:10 +00:00
  • e82d515416 Correctly observe timeout in broadcast-ping dmiller 2024-06-13 17:45:09 +00:00
  • 94d6c605bb Fix get_script_interfaces: was crashing when filter function returned false dmiller 2024-06-13 17:45:08 +00:00
  • 1daf966347 Remove a comment leftover. Fixes #2858 nnposter 2024-06-13 00:09:39 +00:00
  • 8f88a575f4 Fix spelling of "endianness". Closes #2850 nnposter 2024-06-12 23:42:55 +00:00
  • 74b2b6fc05 Update upnp-info: structured output, correct targets added, etc. dmiller 2024-06-07 16:34:07 +00:00
  • f43878f0f5 Update dnssd.lua and related scripts dmiller 2024-06-07 16:34:07 +00:00
  • 0671064cf9 Consolidate DNS code, fix a few small issues dmiller 2024-06-07 16:34:06 +00:00
  • 259d296b14 Allow outlib.sorted_by_key to specify sort function dmiller 2024-06-07 16:34:05 +00:00
  • a908872dae Don't scan infinite random when no targets specified dmiller 2024-06-05 16:09:58 +00:00
  • c6ffdbf7ae Also find pcre2/pcre2.h. Fixes #2851 dmiller 2024-06-04 20:24:55 +00:00