1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 02:49:01 +00:00

Fix more Lua patterns with '-', see r32566

This commit is contained in:
dmiller
2013-12-19 20:34:46 +00:00
parent 45cd8091a4
commit 771a6a0793
5 changed files with 6 additions and 6 deletions

View File

@@ -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+$"))