I'm trying to do this in PHP:
exec("nmap -O x.x.x.x -oX file.xml");
But doesn't work because needs root
privileges (other options that don't require root
privileges work), is there any way to do this without root privileges?
Thank you.
I'm trying to do this in PHP:
exec("nmap -O x.x.x.x -oX file.xml");
But doesn't work because needs root
privileges (other options that don't require root
privileges work), is there any way to do this without root privileges?
Thank you.
change the file permissions of nmap for php user or execute it as sudo and add the php user to the sudoers for nmap
try visudo and edit the /etc/sudoers add your php user for local and allow him to run nmap