pwn 0.5.157 → 0.5.158

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fa5c25714856b9ee7de2118ac2da2e6f27380bcbae0e82d448774e6ad260329
4
- data.tar.gz: 841310123fcb027c750b7d94b67851c9b9420ea7f79b3ccfc240347280fb4a04
3
+ metadata.gz: 17128fbd32d71a091544f76fca85f229d73169803bc91f2c46f35b31edc1d4fe
4
+ data.tar.gz: 546a25557d99d85673b9e7e2c2843a87166683120754c2728ba87bdd6799fe25
5
5
  SHA512:
6
- metadata.gz: 4bfcbdcdd0b987a3f8ac1bb90b4f6a687584d1c1269931aca7027cfe542349088416452069f9882c6c2d3287f12ea88f3bbd34d3f2c3c1623ed74a7619adb0f7
7
- data.tar.gz: 017f565735be76fb7a1f9e28bcef3be061b2700da2333df5f92162d268db9f224468672814135302f52bcdf2618efcb8a11054b4d3da7f421da8314b1fc4e4cd
6
+ metadata.gz: 6bf82dd3a36906f3218e489d35747821caf709bbb52e549731e0c2b2fe10e369f93ba990f6bd3c0f7305b4704cf7e3e1ce821b2d1da19e8ea6ab8dc9d85bdd80
7
+ data.tar.gz: 203ebcfae33475985d2f7b6275a2c8bd1c4c2f302025fccd2c3c86f81faa50a7360fb7c5e201b51b4a578166759638020b8ca30ed436bc4c0a9b298749c02211
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.157]:001 >>> PWN.help
40
+ pwn[v0.5.158]: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.3.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.157]:001 >>> PWN.help
55
+ pwn[v0.5.158]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.3.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.157]:001 >>> PWN.help
65
+ pwn[v0.5.158]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -214,9 +214,9 @@ module PWN
214
214
  raise e
215
215
  ensure
216
216
  # Strip trailing comma and close JSON array
217
- final_results = File.readlines(results_file)
218
- # Strip trailing comma from last line
219
- last_line = final_results[-1][0..-2]
217
+ final_results = File.readlines(results_file).uniq
218
+ # Strip trailing newline and comma from last line
219
+ last_line = final_results[-1].chomp.chomp(',')
220
220
  final_results[-1] = last_line
221
221
  File.write(results_file, "#{final_results.join}\n]")
222
222
  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.5.157'
4
+ VERSION = '0.5.158'
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.5.157
4
+ version: 0.5.158
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.