lib/pwn/plugins/ps.rb in pwn-0.4.710 vs lib/pwn/plugins/ps.rb in pwn-0.4.711
- old
+ new
@@ -19,12 +19,12 @@
cmd = 'ps'
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 = "ax -p #{pid} -o #{format}"
- params = "ax -o #{format}" if pid.nil?
+ format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command,pmem'
+ params = "w -p #{pid} -o #{format}"
+ params = "wax -o #{format}" if pid.nil?
when :freebsd, :netbsd, :openbsd, :osx
cmd = 'ps'
format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command,pmem'
params = "wax -p #{pid} -o #{format}"
params = "wax -o #{format}" if pid.nil?