pwn 0.4.704 → 0.4.705

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/bin/pwn +13 -17
  4. data/lib/pwn/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d620db070015a7a752384a7ab89962a4123d5af5a8fe934b42fdd48fced848e
4
- data.tar.gz: 4fb7055ad49d1c63ae772f29fc580b43f7f306e0756266cb116b387dd14205bc
3
+ metadata.gz: 3649788ab9739969e27230bbd48fc1a73e10cf1d725d26a840a56554e5ade27d
4
+ data.tar.gz: 446c43688c957a5f77c7efb50f1214ce8508f2ec8389151cd05eb9961f8db893
5
5
  SHA512:
6
- metadata.gz: b439cd9b4dd11a9113f68b40413887e026bbe9c3e3b3104f8261158d62a4acb92b797c894d6c1fd5972e9c49ac5c23b8cdbcb010007a635c73aed276f7897f40
7
- data.tar.gz: 11c1ce9cfb9024f51c7e5c23a7a6783c27d306a356d49e00a045989107fd9818da1687f3c607bb6d3092ba13ea719ea644c89d85b69f56e4bf16fd683b92b2df
6
+ metadata.gz: 4b6c2e422c24c0636009984ecbe54b4ee5cc1847bb3f3a259147cb8478f16bd7b8175b7ecd1dffe2f42fc7189bee229725be9c05b6fad22a1aed54714effff21
7
+ data.tar.gz: '0079c85c8d6dfe8c5cdea947a666bc2afe1d462b5d671f87c4a329106fbbc3bd104931a42c63b47e9b8157cf974dc1e1c1cfba95a735bf77e572a3bf29e4dfc6'
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.704]:001 >>> PWN.help
40
+ pwn[v0.4.705]: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.704]:001 >>> PWN.help
55
+ pwn[v0.4.705]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn CHANGED
@@ -18,6 +18,17 @@ OptionParser.new do |options|
18
18
  end.parse!
19
19
 
20
20
  begin
21
+ def cleanup_pids(opts = {})
22
+ pids_arr = opts[:pids_arr]
23
+
24
+ pids_arr.each do |pid_line|
25
+ pid = pid_line[2].to_i
26
+ Process.kill('TERM', pid)
27
+ rescue Errno::ESRCH
28
+ next
29
+ end
30
+ end
31
+
21
32
  def refresh_ps1_proc(opts = {})
22
33
  mode = opts[:mode]
23
34
 
@@ -312,21 +323,6 @@ ensure
312
323
  end
313
324
  # pp grandkid_pids_arr
314
325
 
315
- grandkid_pids_arr.each do |grandkid_pid|
316
- begin
317
- pid = grandkid_pid[2].to_i
318
- Process.kill('TERM', pid)
319
- rescue Errno::ESRCH
320
- next
321
- end
322
- end
323
-
324
- kid_pids_arr.each do |kid_pid|
325
- begin
326
- pid = kid_pid[2].to_i
327
- Process.kill('TERM', pid)
328
- rescue Errno::ESRCH
329
- next
330
- end
331
- end
326
+ cleanup_pids(pids_arr: grandkid_pids_arr)
327
+ cleanup_pids(pids_arr: kid_pids_arr)
332
328
  end
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.704'
4
+ VERSION = '0.4.705'
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.704
4
+ version: 0.4.705
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.