Nmap Development mailing list archives

NSE, SSH and remote command execution


From: Gary Madarm <gmadarm () gmail com>
Date: Mon, 5 Sep 2016 16:02:31 +0300

Hi,

I want to check which OS package versions are installed on remote Linux
hosts within my network. Some of the servers run ssh on non-standard ports,
thus I thought I could use nmap to find the ssh port and execute an NSE
script using io.popen() to run a dpkg command to enumerate the package
versions. Is this the best approach or is there a cleaner more native way
to execute remote system commands via an ssh tunnel in nmap?

thanks!
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: