pwn 0.5.455 → 0.5.456

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: d27680bfbc567a6773d9ed561acefcf86ddb4423cf20378d578fd67d999cfdf7
4
- data.tar.gz: 84c2a2424ae958d275a4d0d1d1e69d7931f4d495fd99d9182af419cab89c54a8
3
+ metadata.gz: cae3e2f5e6bea0a4fd140e444d0e58e57864e9aa03174fcd6d3d38e2164c49d2
4
+ data.tar.gz: bce4016f6bc99189cfd0a4fd03a399fb5e1be882790447a1bfb6084860cdc4f0
5
5
  SHA512:
6
- metadata.gz: 0d6b07c60bcdfaf0f900889ac7415ecb5912bb714e997c5bf5901a849597d6a691d9427c58bd76947a55fcf829aae34c385b08c2e6ba021c2b16a070d2cdf698
7
- data.tar.gz: 07a6e245e9aceedd59b624a846f4f2e73ea03014ffadfddba5aaf87d52c49d159846baceeef7511504e224f8c29630bcce43a6f706ed305bb1328e1bc1d8297c
6
+ metadata.gz: 811ad5ceceb44dbb7bf6285f1d23dd217710f63c8533c29fe3e7a1b1b253bb6acf64958493fc46653f72c47588b301dc2e4ed2f8e9f6ba3fbcfeba9dd63f7558
7
+ data.tar.gz: bb0635b8b084eeb52809bdda948f179c7794fc5135ee95129f74f17041edb3501165464714d49c4fe7bbc05a766a5693a079c0ada175b7b1a1a097c055d7b88d
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.455]:001 >>> PWN.help
40
+ pwn[v0.5.456]: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.455]:001 >>> PWN.help
55
+ pwn[v0.5.456]: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.455]:001 >>> PWN.help
65
+ pwn[v0.5.456]: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:
data/lib/pwn/config.rb CHANGED
@@ -145,6 +145,8 @@ module PWN
145
145
  # Remove beginning colon from key names
146
146
  yaml_env = YAML.dump(env).gsub(/^(\s*):/, '\1')
147
147
  File.write(pwn_env_path, yaml_env)
148
+ # Change file permission to 600
149
+ File.chmod(0o600, pwn_env_path)
148
150
 
149
151
  env[:driver_opts] = {
150
152
  pwn_env_path: pwn_env_path,
@@ -53,6 +53,8 @@ module PWN
53
53
  decryptor_hash = { key: key, iv: iv }
54
54
  yaml_decryptor = YAML.dump(decryptor_hash).gsub(/^(\s*):/, '\1')
55
55
  File.write(decryptor_file, yaml_decryptor)
56
+ # Change permissions to 400
57
+ File.chmod(0o400, decryptor_file)
56
58
  else
57
59
  puts 'Please store the Key && IV in a secure location as they are required for decryption.'
58
60
  puts "Key: #{key}"
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.455'
4
+ VERSION = '0.5.456'
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.455
4
+ version: 0.5.456
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.