pwn 0.4.818 → 0.4.819
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 +4 -4
- data/README.md +2 -2
- data/bin/pwn_www_uri_buster +8 -0
- data/lib/pwn/reports/uri_buster.rb +8 -2
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bae9c7d488970b8e1749753cf6b858c937a1437ae2adf82b9e2d83746f609b6e
|
|
4
|
+
data.tar.gz: 0c54b6ec6b64769392c5e0e6409aebb1218ce01c9ea0f5b5258961bbd7e513c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
40
|
+
pwn[v0.4.819]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.
|
|
55
|
+
pwn[v0.4.819]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/bin/pwn_www_uri_buster
CHANGED
|
@@ -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> |
|
|
101
101
|
<a class="toggle-vis" data-column="4" href="#">HTTP Response Code</a> |
|
|
102
102
|
<a class="toggle-vis" data-column="5" href="#">HTTP Response Length</a> |
|
|
103
|
-
<a class="toggle-vis" data-column="6" href="#">HTTP Response</a> |
|
|
103
|
+
<a class="toggle-vis" data-column="6" href="#">HTTP Response Headers</a> |
|
|
104
|
+
<a class="toggle-vis" data-column="7" href="#">HTTP Response Body</a> |
|
|
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
|
|
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