rapid7/metasploit-framework — pull request #741 by dmaloney-r7 (2012-08-30 00:19:11+00:00)
Title: Adds a new findpids command to meterpreter

findpids calls client.sys.process.get_processes like ps
but then filters out any processes that do not match
one of the process names supplied as arguments to the command.
`findpids explorer.exe notepad.exe` will return all processes
named explorer.exe or notepad.exe Allows for quick searching for
the pid you want. ideal for migration