dmiller
167fafe65c
Correctly handle all cases for canceling IO in iocp engine
2024-10-08 21:14:43 +00:00
dmiller
f765af4070
IOCP engine: further checks against duplicating eovs
2024-10-08 21:14:42 +00:00
dmiller
30bc184e0f
Fix iocp engine when calling nsock_read on unconnected socket
...
When the IOD isn't connected, iod->peerlen is 0, which means WSARecvFrom
returns WSAEFAULT because the lpFrom parameter is not NULL, and 0 bytes
is not enough space to fit any sockaddr.
2024-10-08 21:14:42 +00:00
dmiller
d42dd7eed9
Additional tests and checks for gh_heap validity
2024-10-08 21:14:41 +00:00
dmiller
f8d4531b1f
Make some broadcast scripts 'safe' category
2024-10-08 21:14:40 +00:00
dmiller
0bae611494
Don't use 1ms timeout for writes. Actual time can be >100ms because of NSE overhead
2024-10-08 21:14:40 +00:00
dmiller
a751509b0b
Use u32 for s_addr; in_addr_t not defined on Windows
2024-10-07 18:31:14 +00:00
dmiller
cb483ec503
Properly handle SSL connect events. Fixes #2139
...
SSL_WANT_READ and SSL_WANT_WRITE conditions modify the watched events during
NSE_TYPE_CONNECT_SSL, which was causing the IOCP engine to re-post the same
completion packet multiple times. Adding a status field to the
extended_overlapped struct resolves this.
Additionally, canceled and timed-out events risked the same extended_overlapped
being freed multiple times, which caused the gh_heap corruption in the original
issue report.
2024-10-07 18:30:28 +00:00
dmiller
a86e86913b
Ensure events are updated if SSL connect times out
2024-10-06 22:19:30 +00:00
dmiller
f1325d7c6f
Handle libssh2 errors on connect. Closes #2616 . Fixes #1014
2024-10-04 18:21:25 +00:00
dmiller
b507356091
Fix typoed index in latest libssh2 publickey change
2024-10-04 18:21:24 +00:00
dmiller
79b35dcb04
Add binding for libssh2_userauth_publickey_frommemory
2024-10-03 19:18:13 +00:00
dmiller
f8b7e5c860
Fix libssh2.channel_read_stderr, was reading stream 0
2024-10-03 19:18:13 +00:00
dmiller
325a4f680c
http.lua parse_redirect support URL params
2024-10-03 19:18:12 +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
2184f98858
Consolidate cases: arpping is used for both IPv4 and IPv6
2024-09-27 19:20:40 +00:00
dmiller
f43fdaa1d7
Use no-route instead of unknown-response for ARP failure
2024-09-20 17:25:59 +00:00
nnposter
3d99250c83
Allow crypto IVs with leading zero. Close #2928 , fix #2640
2024-09-13 21:36:46 +00:00
nnposter
51b5a50004
Apply CHANGELOG entry tags consistently
2024-09-13 21:31:38 +00:00
nnposter
66bbf3dc96
Rectify heap corruption due to an uninitialized pointer in the libssh2 wrapper
...
Close #2925 , close #2917
2024-09-07 17:43:12 +00:00
nnposter
36ba840489
Fix broken loading of SSH public keys from a file. Close #2919 , see #2917
2024-09-07 16:40:14 +00:00
nnposter
5039f7efca
Add configure test for presence of python setuptools. Close #2915 , see #2913
2024-09-07 02:40:36 +00:00
dmiller
75f6b387fe
Don't call WSACleanup if WSAStartup wasn't called
2024-09-04 18:41:44 +00:00
nnposter
fbadb5256b
Add a new username prompt to telnet-brute. Closes #2629
2024-09-02 23:48:25 +00:00
nnposter
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
2024-09-01 20:36:02 +00:00
nnposter
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.
2024-08-25 23:25:18 +00:00
nnposter
ec17ad7e02
Remove redundant code, already part of Frame:new()
2024-08-25 18:27:05 +00:00
nnposter
a97b4c83aa
Add missing [NSE] tags to CHANGELOG
2024-08-25 17:53:43 +00:00
nnposter
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
2024-08-25 17:43:17 +00:00
nnposter
5e35bc0952
Rectify shadowing of the packet module
2024-08-25 17:06:11 +00:00
nnposter
c661b0af64
Implement support for arbitrary separator in stdnse.tohex()
...
Closes #2901 , fixes #2744 , closes #2745
2024-08-25 13:27:58 +00:00
nnposter
a1ba7b7672
Prevent unintentional filename expansion
2024-08-24 21:38:13 +00:00
nnposter
5d7012bab6
Correct detection of end-of-options in the DHCP parser, which rectifies
...
false warning "Unexpected end of options" on valid packets.
2024-08-22 03:15:12 +00:00
nnposter
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.
2024-08-22 03:01:54 +00:00
nnposter
95807a0aa7
Add a missing table iterator. See #2891 , see #2892
2024-08-17 18:53:53 +00:00
nnposter
cefa051cfc
Fix various typos in comments. Closes #2888
2024-08-16 02:40:23 +00:00
nnposter
efa0dc36f2
Fix off-by-one overflow in the IP protocol table.
...
Fixes #2896 , closes #2897 , closes #2900
2024-08-08 01:31:06 +00:00
nnposter
667527c4b4
Add more GH references to the mssql library fix
2024-07-08 01:39:59 +00:00
nnposter
92995af023
Fix a typo in calling stdnse.format_ouptut(). See #2622
2024-07-04 20:31:02 +00:00
nnposter
a0d24d0518
More corrections of mssql.Helper.GetDiscoveredInstances() always returning a table. Closes #2784
2024-07-04 19:44:51 +00:00
nnposter
596f9c0fe0
Correct mssql.Helper.ConnectEx() parameter documentation
2024-07-04 19:21:04 +00:00
nnposter
40172ca726
mssql.Helper.GetDiscoveredInstances() always returns a table
2024-07-04 19:14:38 +00:00
nnposter
3ab8fc27f8
Correctly handle empty result sets. See #2784
2024-07-04 04:04:49 +00:00
nnposter
29741a6360
Avoid using hard-coded numerical codes. Replace repeated expression with a local variable
2024-07-04 03:21:53 +00:00
nnposter
f4b092259c
Correct the test for an empty non-list table. See #2784
2024-07-04 02:41:11 +00:00
dmiller
c13fff3d56
Fix DNS test for new function template
2024-07-01 16:17:42 +00:00
dmiller
dde9c509ed
Allow nsock_iod_get_communication_info() to get latest UDP peer
2024-07-01 16:17:42 +00:00
dmiller
ba4a108868
Fix some bad patterns giving PCRE_ERROR_MATCHLIMIT
2024-07-01 16:17:41 +00:00
dmiller
1ec9caea3b
Replace nested MAX/MIN macros with box() function
2024-06-27 19:36:05 +00:00