Nmap Development mailing list archives

Privilege checks in broadcast-* scripts


From: Henri Doreau <henri.doreau () greenbone net>
Date: Fri, 13 Jan 2012 14:34:55 +0100

Hello,

I've had trouble with broadcast-listener.nse, that doesn't check for
privileges before attempting to open pcap readers, leading to verbose
errors.
I have patched the script to add a nmap.is_privileged() check (as done
by other scripts) in the prerule. I've also modified
broadcast-pppoe-discover.nse and broadcast-dhcp-discover.nse for
consistency sake.

For the two last scripts, I haven't removed the checks which are
performed in the action code. Should I? or should I add such a
redundant check to broadcast-listener.nse instead?

Regards.

-- 
Henri

Attachment: nse_priv_checks.diff
Description:

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: