pwn 0.5.348 → 0.5.350

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: 1da4b99ee1485d7a74130a89106043014290a5d7fd624c406be6628153159327
4
- data.tar.gz: 8eadab13c9cd93eb934f885b3e56b5a7df929097f97e3ef8b5096664e69c463f
3
+ metadata.gz: f5425aceb9565fc34697e038fbfa7297c71a1b7a7f023a01ffdaa2b1ab9df3b2
4
+ data.tar.gz: 97a017685b3cb4095bc2274d6d9b9b8f2348d3ea5da636699c1b6f3a7aedc36c
5
5
  SHA512:
6
- metadata.gz: 80b4257f60f4f5851a9c70b70fa443da4cd102018b0fc8614e3793a3dcc84771496a27c51cad3fb02612a73bd88baf792784f972fe9a689e041c238a718e8a50
7
- data.tar.gz: ee044f9832707d85649f22ffcd59ed9b897ee4ddac739b229bfd5623dc8cfb2c2faee8c5343361d2d5306107fc6df4113b1fe33139389f472c97a7f8d5c6169d
6
+ metadata.gz: d45eeed76fb031fbf8cd8beaa810d624a933c74ddafdb926a19f5933caa9fb382c6e77fdd2e5b22f1bc3dc317711d0924d94cd9ed499ffd205feeaa83acf6a2d
7
+ data.tar.gz: 6966744d6da5e6f3632f4b8a56557103d4d0d8bf525f4309d62d3c40d60730012d2a927da1cecd6ee2482462725e922e9519a3c5306e888e016cda57fa2c800a
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.348]:001 >>> PWN.help
40
+ pwn[v0.5.350]: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.348]:001 >>> PWN.help
55
+ pwn[v0.5.350]: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.348]:001 >>> PWN.help
65
+ pwn[v0.5.350]: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:
@@ -500,12 +500,12 @@ module PWN
500
500
  param_name = param[:name].to_s
501
501
  case param[:in]
502
502
  when 'path'
503
- # Substitute path parameter with a default value (e.g., 'example')
504
- param_value = param[:schema]&.dig(:example) || 'example'
503
+ # Substitute path parameter with a default value (e.g., 'PLACEHOLDER')
504
+ param_value = param[:schema]&.dig(:example) || 'PLACEHOLDER'
505
505
  request_path.gsub!("{#{param_name}}", param_value.to_s)
506
506
  when 'query'
507
507
  # Collect query parameters
508
- param_value = param[:schema]&.dig(:example) || 'example'
508
+ param_value = param[:schema]&.dig(:example) || 'PLACEHOLDER'
509
509
  query_params << "#{URI.encode_www_form_component(param_name)}=#{URI.encode_www_form_component(param_value.to_s)}"
510
510
  end
511
511
  end
@@ -50,7 +50,7 @@ module PWN
50
50
  begin
51
51
  case File.extname(path).downcase
52
52
  when '.yaml', '.yml'
53
- specs[path] = YAML.load_file(path, permitted_classes: [Symbol, Date, Time])
53
+ specs[path] = YAML.safe_load_file(path, permitted_classes: [Symbol, Date, Time], aliases: true)
54
54
  when '.json'
55
55
  specs[path] = JSON.parse(File.read(path))
56
56
  else
@@ -697,11 +697,10 @@ module PWN
697
697
 
698
698
  case File.extname(ref_path).downcase
699
699
  when '.yaml', '.yml'
700
- specs[ref_path] = YAML.load_file(ref_path, permitted_classes: [Symbol, Date, Time])
700
+ specs[ref_path] = YAML.safe_load_file(ref_path, permitted_classes: [Symbol, Date, Time], aliases: true)
701
701
  spec_paths << ref_path unless spec_paths.include?(ref_path)
702
702
  when '.json'
703
703
  specs[ref_path] = JSON.parse(File.read(ref_path))
704
- spec_paths << ref_path unless spec_paths.include?(ref_path)
705
704
  else
706
705
  log("Unsupported file type for $ref: #{ref_path} from #{referencing_file}", debug: debug)
707
706
  return value
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.348'
4
+ VERSION = '0.5.350'
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.348
4
+ version: 0.5.350
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.