mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Applied Jah's patch [1]. This now makes ports show for port scripts
in Starting & Finished debug messages. [1] http://seclists.org/nmap-dev/2009/q2/0091.html
This commit is contained in:
@@ -373,7 +373,8 @@ local function run (threads)
|
||||
print_debug(1, "NSE Script Threads (%d) running:", #threads);
|
||||
while #threads > 0 do
|
||||
local thread = remove(threads);
|
||||
thread:d("Starting %THREAD against %s.", thread.host.ip)
|
||||
thread:d("Starting %THREAD against %s%s.", thread.host.ip,
|
||||
thread.port and ":"..thread.port.number or "");
|
||||
running[thread.co], total = thread, total + 1;
|
||||
hosts[thread.host] = hosts[thread.host] or {};
|
||||
hosts[thread.host][thread.co] = true;
|
||||
@@ -438,7 +439,8 @@ local function run (threads)
|
||||
cnse.port_set_output(thread.host, thread.port, thread.id, result);
|
||||
end
|
||||
end
|
||||
thread:d("Finished %THREAD against %s", thread.host.ip);
|
||||
thread:d("Finished %THREAD against %s%s.", thread.host.ip,
|
||||
thread.port and ":"..thread.port.number or "");
|
||||
end
|
||||
|
||||
-- Any more threads running for this host?
|
||||
|
||||
Reference in New Issue
Block a user