dmiller
d4bf034df9
Fix TDS7/mssql login packet for non-ascii usernames. See #2056
2021-02-08 22:49:19 +00:00
dmiller
b305ba6b5d
Prevent ssl-* from printing to jetdirect ports. Fixes #2237
2021-01-25 17:00:40 +00:00
nnposter
58617a79f7
SMB2 dialect refactoring. Fixes #2203 , closes #2208
2021-01-18 21:21:43 +00:00
dmiller
5258ac6b3c
Be clear about why unpwdb/passdb are not valid. See #2224
2021-01-18 18:15:03 +00:00
nnposter
2f78ac2eb5
Fix broken JSON unit tests. Closes #2222
2021-01-08 04:14:21 +00:00
dmiller
1943c0a2fc
Simplify output_table __index metamethod
...
From Lua 5.3 docs: "Despite the name, the metamethod for this event can
be either a function or a table. [...] If it is a table, the final
result is the result of indexing this table with key."
2020-12-30 23:31:35 +00:00
nnposter
77f764fe72
Add script nbns-interfaces. Closes #2201
2020-12-30 03:51:21 +00:00
nnposter
003849f795
Minor code simplification using tableaux.invert
2020-12-16 18:03:08 +00:00
nnposter
1b39988bf9
Correct the return value of smb2.negotiate_v2
...
As documented, the function should return the negotiated SMB2 dialect,
not just reflect back the dialect override table.
2020-12-16 17:54:15 +00:00
nnposter
a0172dff48
MS SQL build map true-up
2020-12-04 03:16:33 +00:00
nnposter
1293291ac8
Skip lease time in DHCP client packets by default
...
The old behavior (of using the default time of 1s) did not allow constructing
packets without this option, which in turn resulted in (1) DHCPINFORM packets
being non-compliant with RFC 2131 and (2) DHCP discovery scripts potentially
receiving non-default IP lease information. Fixes #2197
2020-12-04 00:38:12 +00:00
dmiller
6f57df02be
Don't strip leading 0s in stdnse.tobinary
...
Every place this function is used, the result is padded with 0s anyway,
so may as well not strip them here. Didn't remove the padding code since
this could return only 4 chars, and most padding is to 8-char width.
2020-11-30 23:22:07 +00:00
dmiller
86deb87187
Use local functions instead of anonymous functions for gsub (less GC overhead)
2020-11-30 23:22:06 +00:00
dmiller
c8fdcd80b5
Precalc/reuse some tables and values
2020-11-30 17:59:18 +00:00
nnposter
c00f054d3c
Fix crashes when decoding codepoints larger than 255. Fixes #2192
...
These codepoint references are now left intact. If necessary, it would be
a trivial change to replace them with corresponding UTF sequences.
Note that the previous code was decoding the character references recursively,
which was probably not the intent.
2020-11-25 02:14:03 +00:00
dmiller
8eebe86ee9
http.lua: Reuse constant objects instead of creating them
2020-11-06 21:48:32 +00:00
dmiller
5eced2c1a5
Reuse constant objects instead of creating them for frequently-used functions
2020-11-06 21:48:31 +00:00
dmiller
041838d986
Clean up packet.lua, add a few unit tests.
2020-11-04 22:26:58 +00:00
dmiller
81bc933118
Return correct error ID
2020-10-19 17:13:21 +00:00
dmiller
b9bb2ec387
Fix (again) the Windows date representation problem.
2020-10-10 13:37:03 +00:00
nnposter
e333addec4
Ability to set SNMP protocol version. Closes #1473
2020-10-09 02:43:26 +00:00
dmiller
c174f8dd97
Adjust base time by local offset for Windows
2020-10-08 23:09:22 +00:00
dmiller
50bef20b92
Handle date formatting for Windows for years earlier than 1970. See #2136
2020-10-08 23:09:21 +00:00
nnposter
1d4d3536e3
Fix off-by-one bug when parsing MySQL EOF packet. Fixes #2128
2020-10-08 17:56:18 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
nnposter
63c88b1a74
Avoid masked use of date before 1/1/1970 UTC. Fixes #2136 , closes #2137
2020-10-04 03:28:01 +00:00
dmiller
c4ae093630
Fix a meaningless error message when parsing IPv6 extension headers.
2020-09-17 21:41:18 +00:00
dmiller
942b7f9852
Add some popular favicon hashes
2020-09-04 13:41:12 +00:00
nnposter
05ad57df21
Speed improvement for script afp-ls. Closes #2098
2020-08-31 00:25:09 +00:00
nnposter
ae84080ea2
Add iDRAC9 fingerprint to http-default-accounts. Closes #2096
2020-08-20 02:30:50 +00:00
nnposter
12b17ee758
Add ssh2.fetch_host_key() support for group 16
2020-08-16 22:24:19 +00:00
nnposter
2e010296af
Prevent SSH2 KEX confusion. Fixes #2105
2020-08-16 21:18:01 +00:00
nnposter
ca58ae9562
Centralize AFP timestamp conversion to string
2020-08-10 01:48:19 +00:00
nnposter
a0e19f54e0
Streamline Boolean expressions
2020-08-10 01:45:42 +00:00
nnposter
03d6fc9201
Clarified parsing of the volume list in AFP FPGetSrvrParms
2020-08-04 02:16:17 +00:00
nnposter
1d72ec21df
Correct AFP name extraction from responses. Closes #2091
...
FPGetFileDirParms and FPEnumerateExt2 could crash due to unpacking from
out-of-bounds positions. This latent issue got exposed by converting from
bin.unpack to more stringent string.unpack
2020-08-03 03:19:20 +00:00
nnposter
77979a668e
Unify AFP pathname serialization
2020-08-03 02:53:09 +00:00
nnposter
5ff407be40
Increases SQL Server version resolution
2020-07-28 01:07:35 +00:00
nnposter
74626ba5c9
Minor optimization of url.parse_query()
2020-07-20 22:39:09 +00:00
nnposter
e47c49110d
Use correct default buffer position. Closes #2086
2020-07-20 21:44:09 +00:00
nnposter
32033c20fe
Clarify location of the Error object
2020-07-20 21:06:33 +00:00
nnposter
3421d01d2e
Clarify upper boundary for variable-length numerical fields
2020-07-17 20:56:39 +00:00
nnposter
9635eabb9f
Use correct default buffer position. Closes #2084
2020-07-17 20:46:52 +00:00
dmiller
f491966ef2
SSL connect support for MySQL
2020-07-08 21:17:38 +00:00
nnposter
832e8f41e2
Improve robustness of PostgreSQL v3 response code. Fixes #2009
2020-06-27 21:51:45 +00:00
dmiller
030a58a26e
Replace 'master' with 'controller thread' in NSE script docs/comments
2020-06-18 17:14:48 +00:00
nnposter
6a9e383f9f
Corrected brute.mode
2020-06-14 01:16:01 +00:00
nnposter
838ec193e3
Do not assume IPP end-of-attributes-tag is followed by another tag
2020-06-13 22:47:15 +00:00
nnposter
7ff536c8a1
Fix for IPP request tostring(). Fixes #2063
2020-06-13 02:10:51 +00:00
nnposter
f5b4d98153
Faster implementation of fromhex()
...
Over 40% faster and creates only a quarter of temporary Lua strings than
the legacy implementation
2020-06-04 19:38:10 +00:00