pwn 0.5.403 → 0.5.404

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: 3e5390f3bf6209a6f425edc5c920dbd6869add40979a7f25e8962356d5c9a6bd
4
- data.tar.gz: 5cf631f4bc2838ed8f016bc0da2d34c4543b4610300783ce39ace423d501be57
3
+ metadata.gz: 43c98ee49b32ce9b04d3fdc660599c8b7fc47db6f5b5042169a1ffe96eb6bb77
4
+ data.tar.gz: a577bdac165bd2e96ec1ed87bb51c0d434276a00e8234f58c200e037ef1b83c0
5
5
  SHA512:
6
- metadata.gz: 36181bae24a6d150c6badf0f42a5c1e7a76fc0f385ffe775eaf0b1d2403fbbcb577aaf5dd746b0f5f6cacbcd34fdd3b40be5bf31006f1a701499906236f38b21
7
- data.tar.gz: cabc729dc772df80d270bc43192db6127cf1f6c418f580031d909a1c66488d8e75c24212e137758b01fe94eb45ae955fdee2d803a1ca6da553c38a3966e7ed27
6
+ metadata.gz: 6bad0c2f1b20916b4245dc95a8b7a42f9a686e386fe475238b3890ea2287331e737d794b2a88e32437b50355fe4a3786420b3a756b40bc3f99b5fd76f3ce0496
7
+ data.tar.gz: fd6cb93dad15d5e55e824a6bdbe13a3260612a015054d4cff6637b5469f5aa88ce7bdbe5409f83f4102f0023ba4ba2c9ca486ffaf3bddd8a94db37d98c761506
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.403]:001 >>> PWN.help
40
+ pwn[v0.5.404]: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.403]:001 >>> PWN.help
55
+ pwn[v0.5.404]: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.403]:001 >>> PWN.help
65
+ pwn[v0.5.404]: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:
@@ -133,20 +133,20 @@ begin
133
133
  )
134
134
  raise "ERROR: Failed to import OpenAPI/Swagger spec #{openapi_spec} into ZAP's Sitemap." if json_sitemap.nil? || json_sitemap.empty?
135
135
 
136
+ PWN::Plugins::Zaproxy.add_to_scope(
137
+ zap_obj: zap_obj,
138
+ target_regex: in_scope
139
+ )
140
+
136
141
  if additional_http_headers.is_a?(String)
137
142
  additional_http_headers = JSON.parse(additional_http_headers, symbolize_names: true)
138
143
  PWN::Plugins::Zaproxy.inject_additional_http_headers(
139
144
  zap_obj: zap_obj,
140
145
  target_regex: in_scope,
141
- additional_http_headers: additional_http_headers
146
+ headers: additional_http_headers
142
147
  )
143
148
  end
144
149
 
145
- PWN::Plugins::Zaproxy.add_to_scope(
146
- zap_obj: zap_obj,
147
- target_regex: in_scope
148
- )
149
-
150
150
  PWN::Plugins::Zaproxy.active_scan(
151
151
  zap_obj: zap_obj,
152
152
  target_url: in_scope,
@@ -282,7 +282,7 @@ module PWN
282
282
  matchType: 'REQ_HEADER',
283
283
  matchRegex: false,
284
284
  matchString: header_key,
285
- replacement: "#{header_key}: #{headers[header_key]}",
285
+ replacement: headers[header_key],
286
286
  initiators: '',
287
287
  url: target_regex
288
288
  }
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.403'
4
+ VERSION = '0.5.404'
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.403
4
+ version: 0.5.404
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.