pwn 0.5.423 → 0.5.424

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: f8098304b98e5388c044eb9ff8b9a5bee04075d7a5ccadac260f7a974eb55c15
4
- data.tar.gz: 4f19ff9ea53d7d4114ae6cbfb2a79fd34f1910d3202f209454645998665a7525
3
+ metadata.gz: 6132f715f6f2e55294823df435cfc144f67137d1ba0757aa9c21585313719e07
4
+ data.tar.gz: fef173b311c91b9cc2de754edb1719d68721fe4963c7007dacdc5928e12c717d
5
5
  SHA512:
6
- metadata.gz: 69952d0e0101a72ef4b08f5d6da5b0d9d034d080b7bfafedf751a8c2cbbb1119593dba7162b733652ab7ae5f02585a6a4ae13272905182cf8437adda621f6efc
7
- data.tar.gz: b7fc21ff696a807e7e65aec231457224eea412620cf3052d6b5233b6618f83c5b3cfebe2ab1341a2072111d5eb97def1d82a6c57aec9da6fc83870ba4dcea2c6
6
+ metadata.gz: ca41b4491a62fc9c54d1f4e12d9ee06787494ae8810a471419ddda102cff8a0f81f38ff03f5e3153f903f7cf8c9736edc2ad05c3d1375ed894688bf45fab1564
7
+ data.tar.gz: ef2fa3d5fd8f576b1c96932d243c9a3e692e36026832caf3f9736c8e56157cff833deed42eff973932dfebe353ab2bf2d2c5d0b72319eb18901e65f58188ff9b
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.423]:001 >>> PWN.help
40
+ pwn[v0.5.424]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.423]:001 >>> PWN.help
55
+ pwn[v0.5.424]: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.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.423]:001 >>> PWN.help
65
+ pwn[v0.5.424]: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:
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'fileutils'
3
4
  require 'pry'
4
5
  require 'tty-prompt'
5
6
  require 'yaml'
@@ -685,8 +686,12 @@ module PWN
685
686
  # Monkey Patch Pry, add commands, && hooks
686
687
  PWN::Plugins::MonkeyPatch.pry
687
688
  add_commands
688
- opts[:yaml_config_path] ||= "#{Dir.home}/pwn.yaml"
689
- opts[:decryption_file] ||= "#{Dir.home}/pwn.decryptor.yaml"
689
+
690
+ pwn_config_root = "#{Dir.home}/.pwn"
691
+ FileUtils.mkdir_p(pwn_config_root)
692
+ opts[:yaml_config_path] ||= "#{pwn_config_root}/pwn.yaml"
693
+ opts[:decryption_file] ||= "#{pwn_config_root}/pwn.decryptor.yaml"
694
+
690
695
  add_hooks(opts)
691
696
 
692
697
  # Define PS1 Prompt
@@ -243,10 +243,9 @@ module PWN
243
243
  public_class_method def self.refresh_config_for_repl(opts = {})
244
244
  yaml_config_path = opts[:yaml_config_path]
245
245
 
246
- return false unless yaml_config_path
246
+ return false unless File.exist?(yaml_config_path)
247
247
 
248
248
  pi = opts[:pi] ||= Pry
249
- raise "ERROR: #{yaml_config_path} does not exist." unless File.exist?(yaml_config_path)
250
249
 
251
250
  is_encrypted = PWN::Plugins::Vault.file_encrypted?(file: yaml_config_path)
252
251
 
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.423'
4
+ VERSION = '0.5.424'
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.423
4
+ version: 0.5.424
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.