rapid7/metasploit-framework — pull request #250 by mephos (2012-03-20 17:08:52+00:00)
Title: ps support for linux meterpreter

sample :

meterpreter > ps

Process list
============

PID PPID Name User ID Path
--- ---- ---- ------- ----
1 0 init root init [2]
2 0 [kthreadd] root
3 2 [ksoftirqd/0] root
6 2 [migration/0] root
...
23165 23154 pager mm pager -s
23681 30938 bash mm bash
23942 1 chrome mm /opt/google/chrome/chrome
23947 23942 chrome mm /opt/google/chrome/chrome
30797 2671 bash mm -bash
31007 2 [ksoftirqd/2] root
31008 2 [watchdog/2] root
31009 2 [migration/3] root
31011 2 [ksoftirqd/3] root
31012 2 [watchdog/3] root
31077 395 udevd root udevd --daemon
31088 395 udevd root udevd --daemon
31295 30938 bash mm bash