pwn 0.5.502 → 0.5.503

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: c74840a5fe2af0ba8c27e93919392cc94f9417ac9d312fa4f18a21f7df556d6e
4
- data.tar.gz: f8113846c7dc525c1fda18aed08d03af507e18910b83201e22e3ae51fbab8fd5
3
+ metadata.gz: fd561ae532d36fea188dbd8a3344d5803912e45f20b100c6d2783441e52c9c7e
4
+ data.tar.gz: dec66439bcef3c6d8f05b2b655385923477c90060e3ef2d120858075b4b9aae1
5
5
  SHA512:
6
- metadata.gz: 620889facbe460fb5a6b1b72e2b019520c37e1b63121faefc58cbda1d7faa1117d8a51635528315631b2547569e55e5bd6cadcec5d9809ed6205890e0abdd1da
7
- data.tar.gz: '015144018c00f8cc6d6e9e09628cc113b6ae4ad4e2ade15928f81274d45b2d74ad8be3b3f7245d47bc392f0f546e74c47886e50dfa5e2c94e0daeea3b9d5a897'
6
+ metadata.gz: e24cb600887dba7365f9947c88689fb3d416517594a51deb440fba7fc13c4a5b59352ff99eab10941a70f0114b25268ae45e0aba176eb8b8d14d4ecec0f61003
7
+ data.tar.gz: 322e6ed5eefa780c44f5a0f459043d093cbd5d4e6915c42d1039ed6bc984f48fb2dce01894f2974164ba0fa5bb7e2c817b93cce2653d87cd19f187b64ba9a8d7
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.502]:001 >>> PWN.help
40
+ pwn[v0.5.503]: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.502]:001 >>> PWN.help
55
+ pwn[v0.5.503]: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.502]:001 >>> PWN.help
65
+ pwn[v0.5.503]: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:
@@ -147,7 +147,11 @@ module PWN
147
147
  proxy_entry[:request] == entry[:request]
148
148
  end
149
149
  end
150
- if proxy_history_entry.nil?
150
+
151
+ if proxy_history_entry.is_a?(Hash) && proxy_history_entry[:comment].length.positive?
152
+ entry[:comment] = proxy_history_entry[:comment]
153
+ entry[:highlight] = proxy_history_entry[:highlight]
154
+ else
151
155
  request = Base64.strict_decode64(request)
152
156
  response = Base64.strict_decode64(response)
153
157
  http_request_response = PWN::Plugins::Char.force_utf8("#{request}\r\n\r\n#{response}")
@@ -161,9 +165,6 @@ module PWN
161
165
 
162
166
  entry[:comment] = ai_analysis
163
167
  entry[:highlight] = get_highlight_color.call(ai_analysis: ai_analysis)
164
- else
165
- entry[:comment] = proxy_history_entry[:comment]
166
- entry[:highlight] = proxy_history_entry[:highlight]
167
168
  end
168
169
 
169
170
  update_sitemap(
@@ -196,7 +197,10 @@ module PWN
196
197
  end
197
198
  end
198
199
 
199
- if sitemap_entry.nil?
200
+ if sitemap_entry.is_a?(Hash) && sitemap_entry[:comment].length.positive?
201
+ entry[:comment] = sitemap_entry[:comment]
202
+ entry[:highlight] = sitemap_entry[:highlight]
203
+ else
200
204
  request = Base64.strict_decode64(request)
201
205
  response = Base64.strict_decode64(response)
202
206
 
@@ -211,9 +215,6 @@ module PWN
211
215
 
212
216
  entry[:comment] = ai_analysis
213
217
  entry[:highlight] = get_highlight_color.call(ai_analysis: ai_analysis)
214
- else
215
- entry[:comment] = sitemap_entry[:comment]
216
- entry[:highlight] = sitemap_entry[:highlight]
217
218
  end
218
219
 
219
220
  update_proxy_history(
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.502'
4
+ VERSION = '0.5.503'
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.502
4
+ version: 0.5.503
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.