mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
fix whitespace inconsistencies from copy-and-pastes
This commit is contained in:
@@ -186,14 +186,14 @@ local setreg = function(host, port)
|
|||||||
end
|
end
|
||||||
|
|
||||||
hostrule = function(host)
|
hostrule = function(host)
|
||||||
if not nmap.is_privileged() then
|
if not nmap.is_privileged() then
|
||||||
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {};
|
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {}
|
||||||
if not nmap.registry[SCRIPT_NAME].rootfail then
|
if not nmap.registry[SCRIPT_NAME].rootfail then
|
||||||
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME);
|
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||||
end
|
end
|
||||||
nmap.registry[SCRIPT_NAME].rootfail = true;
|
nmap.registry[SCRIPT_NAME].rootfail = true
|
||||||
return nil;
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if nmap.address_family() ~= 'inet' then
|
if nmap.address_family() ~= 'inet' then
|
||||||
stdnse.print_debug("%s is IPv4 compatible only.", SCRIPT_NAME)
|
stdnse.print_debug("%s is IPv4 compatible only.", SCRIPT_NAME)
|
||||||
|
|||||||
@@ -267,14 +267,14 @@ local setreg = function(host, proto, port)
|
|||||||
end
|
end
|
||||||
|
|
||||||
hostrule = function(host)
|
hostrule = function(host)
|
||||||
if not nmap.is_privileged() then
|
if not nmap.is_privileged() then
|
||||||
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {};
|
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {}
|
||||||
if not nmap.registry[SCRIPT_NAME].rootfail then
|
if not nmap.registry[SCRIPT_NAME].rootfail then
|
||||||
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME);
|
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||||
end
|
end
|
||||||
nmap.registry[SCRIPT_NAME].rootfail = true;
|
nmap.registry[SCRIPT_NAME].rootfail = true
|
||||||
return nil;
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if nmap.address_family() ~= 'inet' then
|
if nmap.address_family() ~= 'inet' then
|
||||||
stdnse.print_debug("%s is IPv4 compatible only.", SCRIPT_NAME)
|
stdnse.print_debug("%s is IPv4 compatible only.", SCRIPT_NAME)
|
||||||
|
|||||||
@@ -364,14 +364,14 @@ local setreg = function(host, ports)
|
|||||||
end
|
end
|
||||||
|
|
||||||
hostrule = function(host)
|
hostrule = function(host)
|
||||||
if not nmap.is_privileged() then
|
if not nmap.is_privileged() then
|
||||||
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {};
|
nmap.registry[SCRIPT_NAME] = nmap.registry[SCRIPT_NAME] or {}
|
||||||
if not nmap.registry[SCRIPT_NAME].rootfail then
|
if not nmap.registry[SCRIPT_NAME].rootfail then
|
||||||
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME);
|
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME)
|
||||||
end
|
end
|
||||||
nmap.registry[SCRIPT_NAME].rootfail = true;
|
nmap.registry[SCRIPT_NAME].rootfail = true
|
||||||
return nil;
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local numopen, numclosed = NUMOPEN, NUMCLOSED
|
local numopen, numclosed = NUMOPEN, NUMCLOSED
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user