Nmap Development mailing list archives
Re: Nmap ignores key presses if run by sudo
From: Vasiliy Kulikov <segooon () gmail com>
Date: Fri, 29 Jul 2011 04:06:47 +0400
Hi Shinnok, On Fri, Jul 29, 2011 at 01:26 +0300, Shinnok wrote:
It seems that running nmap with sudo from an unprivileged user makes Nmap ignore(or not catch at all)terminal keyboard input. However, if run by the current user(root also with sudo su) then key presses work as expected, for e.g. return for scan status or d for increasing debug verbosity. I'm running latest SVN nmap in Debian Squeeze. It seems that the version in Debian's repo's, 5.00, behaves the same way. Is this a bug case or me remembering Nmap key presses to be working with sudo a case of bad memory bits with my chip?
Seems like sudo uses use_pty and manually handles all keypresses. Maybe it is a bug of sudo, maybe of nmap, dunno :) Just disable use_pty and all log_* options to disable pty allocation. Thanks, -- Vasiliy Kulikov _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Nmap ignores key presses if run by sudo Shinnok (Jul 28)
- Re: Nmap ignores key presses if run by sudo Vasiliy Kulikov (Jul 28)