1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix thread.info in Script:new_thread and new_worker

in nse_main - the pattern to capture the script thread ID did not
match on Windows.  See http://seclists.org/nmap-dev/2015/q1/205 .
This commit is contained in:
jah
2015-04-06 16:26:48 +00:00
parent 986f87be39
commit 3c3d3bc55a

View File

@@ -467,7 +467,7 @@ do
co = co,
env = env,
identifier = tostring(co),
info = format("%s M:%s", self.id, match(tostring(co), "0x(.*)"));
info = format("%s M:%s", self.id, match(tostring(co), "^thread: 0?[xX]?(.*)"));
parent = nil, -- placeholder
script = self,
type = script_type,
@@ -485,7 +485,7 @@ do
args = pack(...),
close_handlers = {},
co = co,
info = format("%s W:%s", self.id, match(tostring(co), "0x(.*)"));
info = format("%s W:%s", self.id, match(tostring(co), "^thread: 0?[xX]?(.*)"));
parent = self,
worker = true,
};