pwn 0.4.816 → 0.4.817

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: b5c14fe59cd32320e6844e72d3ec8500b1f8ce50cbc35595803db984d01928ec
4
- data.tar.gz: 68ddbb213bce2f59402f3c0fa2da48bbc19f521ca09bc6c36e093d24d0138ba2
3
+ metadata.gz: 307dbde1614d50f0e92d2c4429cb501bcb8d064b9a268af43630128514a3de1c
4
+ data.tar.gz: d5a28f791bf11c6d9f96d2ab820fcfc81f24e94f28c7a35a25fcbc3ea8d5fec9
5
5
  SHA512:
6
- metadata.gz: 5b0c5568f3abfb6b758a0aba028fa6fc577c31c682635e912627692487357a7d2caa7974376a0354fa38a9f6df8790330c1c127f787a4303a09e01be7cdc8bf5
7
- data.tar.gz: cc8ce6722c8627711cb895a9373060fc1e815adf8c876edd67fb559d364df77a8733992ed2a954b69f58fb24c573a59d4e53069ddc8c984357434d23c924c3ce
6
+ metadata.gz: 2a5d9c0173b8f182027279c27f3ca919ad786cc7297bc5332415268f8870f1448069ce91a03b0a7ea032d849475938f2545cc4fcf62c53ffe2b6fa3d3456d446
7
+ data.tar.gz: b1dfa5aadfd2bcb8c0beb2f82265602799c9a83ca5dbb09814f08a147f6f7c308d38812b80df1e06cd95952f4541e87a0e3557a9644a63c6a8f1a3c73dd09dae
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.816]:001 >>> PWN.help
40
+ pwn[v0.4.817]: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.816]:001 >>> PWN.help
55
+ pwn[v0.4.817]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -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?
@@ -79,6 +75,11 @@ def request_path(opts = {})
79
75
  browser_type: :rest,
80
76
  proxy: proxy
81
77
  )
78
+
79
+ if proxy == 'tor'
80
+ tor_obj = browser_obj[:tor_obj]
81
+ PWN::Plugins::Tor.switch_exit_node(tor_obj: tor_obj)
82
+ end
82
83
  else
83
84
  browser_obj = PWN::Plugins::TransparentBrowser.open(
84
85
  browser_type: :rest
@@ -188,15 +189,6 @@ begin
188
189
 
189
190
  start_reporting_server = opts[:start_reporting_server]
190
191
 
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
192
  mutex = Mutex.new
201
193
 
202
194
  results_hash = {
@@ -217,8 +209,6 @@ begin
217
209
 
218
210
  http_methods = %i[DELETE GET HEAD OPTIONS PATCH POST PUT TRACE]
219
211
  http_methods.each do |http_method|
220
- PWN::Plugins::Tor.switch_exit_node(tor_obj: tor_obj) if with_tor
221
-
222
212
  rest_client_resp_hash = request_path(
223
213
  target_url: target_url,
224
214
  proxy: proxy,
@@ -270,6 +260,4 @@ rescue SystemExit, Interrupt
270
260
  puts "\nGoodbye."
271
261
  rescue StandardError => e
272
262
  raise e
273
- ensure
274
- tor_obj = PWN::Plugins::Tor.stop(tor_obj: tor_obj) if with_tor && tor_obj
275
263
  end
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.816'
4
+ VERSION = '0.4.817'
5
5
  end
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.816
4
+ version: 0.4.817
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-10 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport