Make fix easier to read

bug/bundler_fix
Josh Hale 2016-02-10 11:24:45 -06:00
parent 4653c27167
commit 62dd82e653
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ class Metasploit3 < Msf::Post
def get_pid(proc_name) def get_pid(proc_name)
processes = client.sys.process.get_processes processes = client.sys.process.get_processes
processes.each do |proc| processes.each do |proc|
if proc['name'] == proc_name if proc['name'] == proc_name && proc['user'] != ""
return proc['pid'] if proc['user'] != "" return proc['pid']
end end
end end
return nil return nil