rapid7/metasploit-framework — pull request #777 by mephos (2012-09-09 16:54:48+00:00)
Title: [posix meterpreter] fix netstat program name

/proc/PID/status might be different from /proc/PID/cmdline with linked program such as busybox.

netstat would report program name = busybox whereas we'd want httpd/tftpd...

read cmdline first and fallback to status