pwn 0.4.711 → 0.4.712

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3802381e817c552e9aed6142f75f5cfd6ef59ad22a6df603b02d4c41903f9e08
4
- data.tar.gz: 3aec261d12007b1cee50d335098d2c1b842229e0a559b33a15577826050878ee
3
+ metadata.gz: 7a66c71a98fed7910f34f6cf5653c19908b36a1739886418b37957c4af855110
4
+ data.tar.gz: 5eabaee536092d29ca5e4225f906b513966ca38eb92f14f7d6b8f315cdfc1fd8
5
5
  SHA512:
6
- metadata.gz: c177c9e3d929e3f79452e484d47cbf69980f98304fafebea5b999b5521381fc17e11e0311a842684124621ca87271f0b46e4a05821ca0295bf34d60d1e72ea1e
7
- data.tar.gz: f9a52cf83b0e00ed4f4ddc53ada91281bfce5cf642832f2d7cc0f1db52e8f0ea3741b8ce1b98dd86cf0518c1d988dc0cd5aea82429139e20c993c143c9a5e03d
6
+ metadata.gz: 33b49a77f2e2e8d693da49c0687928cd869706fd3da8b6947e60961c28a4fc14a0023d75043b5228f04a3b53330e22c078cca8c625e251cdb48ad650f095e3c3
7
+ data.tar.gz: df38699306fc108bc1b6133239e6dbc4b350a606d3020b358509586e12be27200301ba1f28f9d8ba695358a4ec41e45b71ba0019a390282ddb1bf5cd2719719b
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.711]:001 >>> PWN.help
40
+ pwn[v0.4.712]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.711]:001 >>> PWN.help
55
+ pwn[v0.4.712]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -21,12 +21,12 @@ module PWN
21
21
  params = 'waux' if pid.nil?
22
22
  when :linux
23
23
  cmd = 'ps'
24
- format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command,pmem'
24
+ format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,pmem,command'
25
25
  params = "w -p #{pid} -o #{format}"
26
26
  params = "wax -o #{format}" if pid.nil?
27
27
  when :freebsd, :netbsd, :openbsd, :osx
28
28
  cmd = 'ps'
29
- format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,command,pmem'
29
+ format = 'user,pcpu,pid,ppid,uid,group,gid,cpu,pmem,command'
30
30
  params = "wax -p #{pid} -o #{format}"
31
31
  params = "wax -o #{format}" if pid.nil?
32
32
  else
@@ -40,11 +40,10 @@ module PWN
40
40
  stdout_arr = stdout.split("\n")
41
41
  stdout_arr.each do |line|
42
42
  column_len = format.split(',').length
43
- cmd_idx = column_len - 2
43
+ cmd_idx = column_len - 1
44
44
  first_cols = line.split[0..(cmd_idx - 1)]
45
- cmd = [line.split[cmd_idx..-2].join(' ')]
46
- pmem = [line.split.last]
47
- proc_line = first_cols + pmem + cmd
45
+ cmd = [line.split[cmd_idx..].join(' ')]
46
+ proc_line = first_cols + cmd
48
47
  proc_list_arr.push(proc_line)
49
48
  end
50
49
 
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.711'
4
+ VERSION = '0.4.712'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.711
4
+ version: 0.4.712
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.