pwn 0.4.537 → 0.4.540
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 +7 -4
- data/lib/pwn/reports/uri_buster.rb +11 -3
- 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: 0013bdf78e9fd0fd9e7edf7a328dd40e44f3f796bc371701614ffe2ebe123853
|
|
4
|
+
data.tar.gz: 9dfe4aa9953df1b5afc20fc7c9cab44a78e4557474dbf47498d7bfbe28fba09c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9fe61829cbf3d58a9a895e0d084705bee3e54180885321b6def4f06f8b1e9160cfe20799086a28218051d14c2ced302d84209844d5eaa4952ab03ba160e34e89
|
|
7
|
+
data.tar.gz: 81e98057c2a6e4004424fac4b74160baf9e60b88625b454f318498de4241c2fb52726b35fd3d14efb41def3fb2b474a98c5a03272dd7379f8c65a01f39cc8847
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
|
|
|
37
37
|
$ rvm list gemsets
|
|
38
38
|
$ gem install --verbose pwn
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.4.
|
|
40
|
+
pwn[v0.4.540]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.1.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.540]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/bin/pwn_www_uri_buster
CHANGED
|
@@ -105,7 +105,7 @@ begin
|
|
|
105
105
|
rest_client = PWN::Plugins::TransparentBrowser.open(
|
|
106
106
|
browser_type: :rest,
|
|
107
107
|
proxy: proxy
|
|
108
|
-
|
|
108
|
+
)::Request
|
|
109
109
|
else
|
|
110
110
|
rest_client = PWN::Plugins::TransparentBrowser.open(
|
|
111
111
|
browser_type: :rest
|
|
@@ -132,15 +132,18 @@ begin
|
|
|
132
132
|
http_uri: http_uri,
|
|
133
133
|
http_method: http_method,
|
|
134
134
|
http_resp_code: response.code,
|
|
135
|
-
|
|
135
|
+
http_resp_length: response.body.length,
|
|
136
|
+
http_resp: "#{response.body[0..300]}..."
|
|
136
137
|
}
|
|
137
|
-
rescue RestClient::ExceptionWithResponse
|
|
138
|
+
rescue RestClient::ExceptionWithResponse,
|
|
139
|
+
RestClient::ServerBrokeConnection => e
|
|
138
140
|
rest_client_resp_hash = {
|
|
139
141
|
request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
|
|
140
142
|
http_uri: http_uri,
|
|
141
143
|
http_method: http_method,
|
|
142
144
|
http_resp_code: e.response.code,
|
|
143
|
-
|
|
145
|
+
http_resp_length: e.response.body.length,
|
|
146
|
+
http_resp: "#{e.response.body[0..300]}..."
|
|
144
147
|
}
|
|
145
148
|
next
|
|
146
149
|
rescue URI::InvalidURIError
|
|
@@ -98,7 +98,8 @@ module PWN
|
|
|
98
98
|
<a class="toggle-vis" data-column="2" href="#">URI</a> |
|
|
99
99
|
<a class="toggle-vis" data-column="3" href="#">HTTP Method</a> |
|
|
100
100
|
<a class="toggle-vis" data-column="4" href="#">HTTP Response Code</a> |
|
|
101
|
-
<a class="toggle-vis" data-column="5" href="#">HTTP Response</a> |
|
|
101
|
+
<a class="toggle-vis" data-column="5" href="#">HTTP Response Length</a> |
|
|
102
|
+
<a class="toggle-vis" data-column="6" href="#">HTTP Response</a> |
|
|
102
103
|
</div>
|
|
103
104
|
<br /><br />
|
|
104
105
|
|
|
@@ -111,7 +112,8 @@ module PWN
|
|
|
111
112
|
<th>URI</th>
|
|
112
113
|
<th>HTTP Method</th>
|
|
113
114
|
<th>HTTP Response Code</th>
|
|
114
|
-
<th>HTTP Response</th>
|
|
115
|
+
<th>HTTP Response Length</th>
|
|
116
|
+
<th>HTTP Response (300 bytes)</th>
|
|
115
117
|
</tr>
|
|
116
118
|
</thead>
|
|
117
119
|
<!-- DataTables <tbody> -->
|
|
@@ -163,7 +165,9 @@ module PWN
|
|
|
163
165
|
},
|
|
164
166
|
{
|
|
165
167
|
"data": "http_uri",
|
|
166
|
-
"render":
|
|
168
|
+
"render": function (data, type, row, meta) {
|
|
169
|
+
return '<a href="' + data + '" target="_blank">' + data + '</a>';
|
|
170
|
+
}
|
|
167
171
|
},
|
|
168
172
|
{
|
|
169
173
|
"data": "http_method",
|
|
@@ -173,6 +177,10 @@ module PWN
|
|
|
173
177
|
"data": "http_resp_code",
|
|
174
178
|
"render": $.fn.dataTable.render.text()
|
|
175
179
|
},
|
|
180
|
+
{
|
|
181
|
+
"data": "http_resp_length",
|
|
182
|
+
"render": $.fn.dataTable.render.text()
|
|
183
|
+
},
|
|
176
184
|
{
|
|
177
185
|
"data": "http_resp",
|
|
178
186
|
"render": $.fn.dataTable.render.text()
|
data/lib/pwn/version.rb
CHANGED