pwn 0.5.337 → 0.5.339

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: 0df266efa703498ddd6cbb7273a2831110a5816edb7efa86983f11e379ee3d77
4
- data.tar.gz: cb492461c9c93d7aae1149863218be38e817b0fb59c1500598e69f3b783ac78b
3
+ metadata.gz: 7f09033c249d0270fe3a5441733aadce2b58668e4d06313f0569750e0d712172
4
+ data.tar.gz: 2f363f631c4aa7de308c0611d874092f19e7da132a60826f5ea61acfd52d791e
5
5
  SHA512:
6
- metadata.gz: a3629cbc8059bdc38f1e74c003c4499f8bcda4cd9cf96b018ac5948471f0d2ecc5da150af668e5c31e03a609d35d82f5fb954ce58ad7d95997892ee95c39f5ea
7
- data.tar.gz: 10ef427857e37163cdb40ef952c106f5f68af16799e017df1955d281d0742213d2fb3cdab3d1fdf38a73f6ce27b0441cd1aad326c88adf7ef5f936dc00c4effc
6
+ metadata.gz: 12af36bc15adde0ecd8cf4d19b64ec2b22be4a71ff1585d467aebb0488ffe3758d0605a2fdf6b587d99e85c3b1e4f7f2b0b123400cc35c9b2eefec9eeb9603df
7
+ data.tar.gz: 63d586c9493b154e259aaa9ab3cd3887219b4c44e605d7d6b960b9c5b0051e651faa08422385d2a3e9cd72bb05ccdc952b0827150a0d8353fc3da5c08fadebc3
@@ -68,9 +68,8 @@ module PWN
68
68
  # pwn_burp_port = opts[:pwn_burp_port] ||= PWN::Plugins::Sock.get_random_unused_port
69
69
 
70
70
  burp_cmd_string = 'java -Xmx4G'
71
- # burp_cmd_string = "#{burp_cmd_string} -Dhttp.proxyHost=#{burp_ip} -Dhttp.proxyPort=#{burp_port}"
72
- # burp_cmd_string = "#{burp_cmd_string} -Dhttps.proxyHost=#{burp_ip} -Dhttps.proxyPort=#{burp_port}"
73
71
  burp_cmd_string = "#{burp_cmd_string} -Djava.awt.headless=true" if opts[:headless]
72
+ burp_cmd_string = "#{burp_cmd_string} -Dproxy.address=#{burp_ip} -Dproxy.port=#{burp_port}"
74
73
  burp_cmd_string = "#{burp_cmd_string} -Dserver.address=#{pwn_burp_ip} -Dserver.port=#{pwn_burp_port}"
75
74
  burp_cmd_string = "#{burp_cmd_string} -jar #{burp_jar_path}"
76
75
 
@@ -193,9 +192,15 @@ module PWN
193
192
  spider_status_resp = rest_browser.get("http://#{pwn_burp_api}/spider/#{spider_id}")
194
193
  spider_status_json = JSON.parse(spider_status_resp, symbolize_names: true)
195
194
  spider_status = spider_status_json[:status]
196
- break if spider_status == 'finished'
197
-
198
- sleep 3
195
+ case spider_status
196
+ when 'queued', 'running'
197
+ sleep 3
198
+ when 'failed', 'finished'
199
+ break
200
+ else
201
+ puts "Unknown spider status detected: #{spider_status}"
202
+ break
203
+ end
199
204
  end
200
205
 
201
206
  spider_json.merge!(spider_status_json)
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.5.337'
4
+ VERSION = '0.5.339'
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.5.337
4
+ version: 0.5.339
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.