pwn 0.4.818 → 0.4.819

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 566981ed7f2f84d585bdcd5eba9ee2d4c57f1dde332f8dafba7f91eb873d5999
4
- data.tar.gz: 54e315af21e26c6004e8a242660c2ceade08ea383b7aaba6f91dd7e740e6d07b
3
+ metadata.gz: bae9c7d488970b8e1749753cf6b858c937a1437ae2adf82b9e2d83746f609b6e
4
+ data.tar.gz: 0c54b6ec6b64769392c5e0e6409aebb1218ce01c9ea0f5b5258961bbd7e513c3
5
5
  SHA512:
6
- metadata.gz: 4c069e6136e9503362b1d51f10094c4cccd591f505a6e494ecfe4a11af9df43849a7339fd8437c7c48aa8f3d84160a4e669776a7ffc724b9fe82145beadadc5f
7
- data.tar.gz: a5bb3bbc0cfb146df4f3667a5ffd064eb118402a5329523c0cbe2a4fd7481eadc6e51771f26d20844c62f4448a9e01882ddce3c442d7b24b9e64fc31deecb492
6
+ metadata.gz: 01a111a7266278d0f3ea8cda414c693077fd1d051771e18c9fab963975f341218561607824e04a7c8c384c44898a8dbe122e5f9c96e1a29dfa001ba51487ba15
7
+ data.tar.gz: 6aad9efc09b8f0184b0265024656fdf377c5664a33f792f97b3929206107cc1f2c0d697dfd50c1e37ede8718841d3bc032fb07f935b763faa09628ef40883dda
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.818]:001 >>> PWN.help
40
+ pwn[v0.4.819]: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.2.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.818]:001 >>> PWN.help
55
+ pwn[v0.4.819]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -103,6 +103,7 @@ def request_path(opts = {})
103
103
  http_method: http_method,
104
104
  http_resp_code: response.code,
105
105
  http_resp_length: response.body.length,
106
+ http_resp_headers: response.headers,
106
107
  http_resp: "#{response.body[0..300]}..."
107
108
  }
108
109
  rescue Errno::ECONNREFUSED
@@ -117,6 +118,7 @@ def request_path(opts = {})
117
118
  http_method: http_method,
118
119
  http_resp_code: e.class,
119
120
  http_resp_length: 'N/A',
121
+ http_resp_headers: 'N/A',
120
122
  http_resp: e.class
121
123
  }
122
124
  rescue RestClient::ExceptionWithResponse => e
@@ -127,6 +129,7 @@ def request_path(opts = {})
127
129
  http_method: http_method,
128
130
  http_resp_code: e.response.code,
129
131
  http_resp_length: e.response.body.length,
132
+ http_resp_headers: response.headers,
130
133
  http_resp: "#{e.response.body[0..300]}..."
131
134
  }
132
135
  else
@@ -136,6 +139,7 @@ def request_path(opts = {})
136
139
  http_method: http_method,
137
140
  http_resp_code: 'N/A',
138
141
  http_resp_length: 'N/A',
142
+ http_resp_headers: 'N/A',
139
143
  http_resp: 'N/A'
140
144
  }
141
145
  end
@@ -149,6 +153,10 @@ def request_path(opts = {})
149
153
  retry
150
154
  rescue RestClient::TooManyRequests
151
155
  sleep 60
156
+ ensure
157
+ browser_obj = PWN::Plugins::TransparentBrowser.close(
158
+ browser_obj: browser_obj
159
+ )
152
160
  end
153
161
 
154
162
  rest_client_resp_hash
@@ -100,7 +100,8 @@ module PWN
100
100
  <a class="toggle-vis" data-column="3" href="#">HTTP Method</a>&nbsp;|&nbsp;
101
101
  <a class="toggle-vis" data-column="4" href="#">HTTP Response Code</a>&nbsp;|&nbsp;
102
102
  <a class="toggle-vis" data-column="5" href="#">HTTP Response Length</a>&nbsp;|&nbsp;
103
- <a class="toggle-vis" data-column="6" href="#">HTTP Response</a>&nbsp;|&nbsp;
103
+ <a class="toggle-vis" data-column="6" href="#">HTTP Response Headers</a>&nbsp;|&nbsp;
104
+ <a class="toggle-vis" data-column="7" href="#">HTTP Response Body</a>&nbsp;|&nbsp;
104
105
  </div>
105
106
  <br /><br />
106
107
 
@@ -114,7 +115,8 @@ module PWN
114
115
  <th>HTTP Method</th>
115
116
  <th>HTTP Response Code</th>
116
117
  <th>HTTP Response Length</th>
117
- <th>HTTP Response (300 bytes)</th>
118
+ <th>HTTP Response Headers</th>
119
+ <th>HTTP Response Body (300 bytes)</th>
118
120
  </tr>
119
121
  </thead>
120
122
  <!-- DataTables <tbody> -->
@@ -182,6 +184,10 @@ module PWN
182
184
  "data": "http_resp_length",
183
185
  "render": $.fn.dataTable.render.text()
184
186
  },
187
+ {
188
+ "data": "http_resp_headers",
189
+ "render": $.fn.dataTable.render.text()
190
+ },
185
191
  {
186
192
  "data": "http_resp",
187
193
  "render": $.fn.dataTable.render.text()
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.4.818'
4
+ VERSION = '0.4.819'
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.4.818
4
+ version: 0.4.819
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.