mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 12:29:03 +00:00
Fix more Lua patterns with '-', see r32566
This commit is contained in:
@@ -334,7 +334,7 @@ netscaler = {
|
||||
|
||||
-- TODO Check for other version detection possibilities
|
||||
-- based on fingerprint difference
|
||||
if response.header.via and string.find(response.header.via, 'NS-CACHE') then --
|
||||
if response.header.via and string.find(response.header.via, 'NS%-CACHE') then --
|
||||
stdnse.print_debug("%s Citrix Netscaler detected through Via Header.", SCRIPT_NAME)
|
||||
netscaler.version = string.sub(response.header.via, 10, 12)
|
||||
netscaler.detected = true
|
||||
|
||||
@@ -215,7 +215,7 @@ local function winreg_enum_rids(host)
|
||||
for i = 1, #elements, 1 do
|
||||
if(elements[i]['name'] ~= nil) then
|
||||
local sid = elements[i]['name']
|
||||
if(string.find(sid, "^S-") ~= nil and string.find(sid, "-%d+$") ~= nil) then
|
||||
if(string.find(sid, "^S%-") ~= nil and string.find(sid, "%-%d+$") ~= nil) then
|
||||
-- The rid is the last digits before the end of the string
|
||||
local rid = string.sub(sid, string.find(sid, "%d+$"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user