From d503d4042b91a2e97bfa4d7bd0f2d2901265d065 Mon Sep 17 00:00:00 2001 From: kris Date: Fri, 19 Mar 2010 16:55:01 +0000 Subject: [PATCH] Print a message (once) if ipidseq.nse doesn't run for lack of privileges --- scripts/ipidseq.nse | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/ipidseq.nse b/scripts/ipidseq.nse index 7f85995d3..f05063599 100644 --- a/scripts/ipidseq.nse +++ b/scripts/ipidseq.nse @@ -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