python-libnmap icon indicating copy to clipboard operation
python-libnmap copied to clipboard

Running with sudo without passwordless setup hangs

Open bendikro opened this issue 3 years ago • 0 comments

When running nmap with either sudo_run or sudo_run_background without passwordless sudo, the command will hang waiting for input. In the case where passwordless setup is required and mistakenly not set up, this will cause a silent failure. I suggest adding a parameter to these functions to run sudo with -n so that the command will fail if sudo requires a password.

bendikro avatar May 06 '21 11:05 bendikro