diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb index e351ca35a4..042275e968 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/sys.rb @@ -571,7 +571,9 @@ class Console::CommandDispatcher::Stdapi::Sys processes.each do |p| if l_flag if f_flag - print_line("#{p['pid']} #{p['path']}") + full_path = [p['path'], p['name']].join(client.fs.file.separator) + + print_line("#{p['pid']} #{full_path}") else print_line("#{p['pid']} #{p['name']}") end