lib/pwn/plugins/ps.rb in pwn-0.4.709 vs lib/pwn/plugins/ps.rb in pwn-0.4.710

- old
+ new

@@ -20,16 +20,16 @@ params = "waux -p #{pid}" params = 'waux' if pid.nil? when :linux cmd = 'ps' format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command:1000,pmem' - params = "-p #{pid} -o #{format}" + params = "ax -p #{pid} -o #{format}" params = "ax -o #{format}" if pid.nil? when :freebsd, :netbsd, :openbsd, :osx cmd = 'ps' format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command,pmem' - params = "-p #{pid} -o #{format}" - params = "ax -o #{format}" if pid.nil? + params = "wax -p #{pid} -o #{format}" + params = "wax -o #{format}" if pid.nil? else raise "Unsupported OS: #{which_os}" end full_cmd = "#{cmd} #{params}"