pwn 0.4.816 → 0.4.818
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 +1 -18
- data/lib/pwn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 566981ed7f2f84d585bdcd5eba9ee2d4c57f1dde332f8dafba7f91eb873d5999
|
|
4
|
+
data.tar.gz: 54e315af21e26c6004e8a242660c2ceade08ea383b7aaba6f91dd7e740e6d07b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c069e6136e9503362b1d51f10094c4cccd591f505a6e494ecfe4a11af9df43849a7339fd8437c7c48aa8f3d84160a4e669776a7ffc724b9fe82145beadadc5f
|
|
7
|
+
data.tar.gz: a5bb3bbc0cfb146df4f3667a5ffd064eb118402a5329523c0cbe2a4fd7481eadc6e51771f26d20844c62f4448a9e01882ddce3c442d7b24b9e64fc31deecb492
|
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.818]: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.818]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/bin/pwn_www_uri_buster
CHANGED
|
@@ -25,7 +25,7 @@ OptionParser.new do |options|
|
|
|
25
25
|
opts[:append_pattern] = a
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
options.on('-pPROXY', '--proxy=PROXY', '<Optional - Proxy SCHEME://ADDRESS:PORT>') do |p|
|
|
28
|
+
options.on('-pPROXY', '--proxy=PROXY', '<Optional - Proxy SCHEME://ADDRESS:PORT || tor>') do |p|
|
|
29
29
|
opts[:proxy] = p
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -52,10 +52,6 @@ OptionParser.new do |options|
|
|
|
52
52
|
options.on('-s', '--[no-]start-reporting-server', '<Optional - Start Simple HTTP Server for Reporting>') do |s|
|
|
53
53
|
opts[:start_reporting_server] = s
|
|
54
54
|
end
|
|
55
|
-
|
|
56
|
-
options.on('-T', '--tor', '<Optional - Source Scans from Tor Nodes>') do |t|
|
|
57
|
-
opts[:with_tor] = t
|
|
58
|
-
end
|
|
59
55
|
end.parse!
|
|
60
56
|
|
|
61
57
|
if opts.empty?
|
|
@@ -188,15 +184,6 @@ begin
|
|
|
188
184
|
|
|
189
185
|
start_reporting_server = opts[:start_reporting_server]
|
|
190
186
|
|
|
191
|
-
with_tor = true if opts[:with_tor]
|
|
192
|
-
with_tor ||= false
|
|
193
|
-
|
|
194
|
-
tor_obj = nil
|
|
195
|
-
if with_tor
|
|
196
|
-
tor_obj = PWN::Plugins::Tor.start
|
|
197
|
-
proxy = "socks5://#{tor_obj[:ip]}:#{tor_obj[:port]}"
|
|
198
|
-
end
|
|
199
|
-
|
|
200
187
|
mutex = Mutex.new
|
|
201
188
|
|
|
202
189
|
results_hash = {
|
|
@@ -217,8 +204,6 @@ begin
|
|
|
217
204
|
|
|
218
205
|
http_methods = %i[DELETE GET HEAD OPTIONS PATCH POST PUT TRACE]
|
|
219
206
|
http_methods.each do |http_method|
|
|
220
|
-
PWN::Plugins::Tor.switch_exit_node(tor_obj: tor_obj) if with_tor
|
|
221
|
-
|
|
222
207
|
rest_client_resp_hash = request_path(
|
|
223
208
|
target_url: target_url,
|
|
224
209
|
proxy: proxy,
|
|
@@ -270,6 +255,4 @@ rescue SystemExit, Interrupt
|
|
|
270
255
|
puts "\nGoodbye."
|
|
271
256
|
rescue StandardError => e
|
|
272
257
|
raise e
|
|
273
|
-
ensure
|
|
274
|
-
tor_obj = PWN::Plugins::Tor.stop(tor_obj: tor_obj) if with_tor && tor_obj
|
|
275
258
|
end
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.818
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-08-
|
|
11
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|