1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

Print a message (once) if ipidseq.nse doesn't run for lack of privileges

This commit is contained in:
kris
2010-03-19 16:55:01 +00:00
parent eca6defda6
commit d503d4042b

View File

@@ -184,6 +184,16 @@ end
hostrule = function(host)
if not nmap.is_privileged() then
if not nmap.registry['ipidseq'] then
nmap.registry['ipidseq'] = {}
end
if nmap.registry['ipidseq']['rootfail'] then
return false
end
nmap.registry['ipidseq']['rootfail'] = true
if nmap.verbosity() > 0 then
nmap.log_write("stdout", "IPIDSEQ: not running for lack of privileges")
end
return false
end
if not host.interface then