pwn 0.4.819 → 0.4.821

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bae9c7d488970b8e1749753cf6b858c937a1437ae2adf82b9e2d83746f609b6e
4
- data.tar.gz: 0c54b6ec6b64769392c5e0e6409aebb1218ce01c9ea0f5b5258961bbd7e513c3
3
+ metadata.gz: c3ac59fc7a7af44959a91da6100a3897e8ccb88d4903aa47e379a2215869b7f3
4
+ data.tar.gz: 0b3430348fd739d3abb05923c9666af5cdb5ae48b0365e1bc0007971ca24c3ac
5
5
  SHA512:
6
- metadata.gz: 01a111a7266278d0f3ea8cda414c693077fd1d051771e18c9fab963975f341218561607824e04a7c8c384c44898a8dbe122e5f9c96e1a29dfa001ba51487ba15
7
- data.tar.gz: 6aad9efc09b8f0184b0265024656fdf377c5664a33f792f97b3929206107cc1f2c0d697dfd50c1e37ede8718841d3bc032fb07f935b763faa09628ef40883dda
6
+ metadata.gz: 4fec522538dbe120a41397dfe8adfbf6670287d833ba11548f7ffb3f774bad51867fe33aa8071b14f162b22b6e3f23c80c99aa3b399c13188748228c25c6c626
7
+ data.tar.gz: 2b1b6882395861c9550f1ec89960ee2ba88d1df670ec5aa76113ec8f7990ba5576e6eaa468fe74b168bc398e83f3a10f4e3af9ea1f225d261ff0a68cbf9739be
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.819]:001 >>> PWN.help
40
+ pwn[v0.4.821]: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.819]:001 >>> PWN.help
55
+ pwn[v0.4.821]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -161,7 +161,7 @@ puts 'complete.'
161
161
 
162
162
  # Start Simple HTTP Server (If Requested)
163
163
  if start_reporting_server
164
- listen_port = PWN::Plugins::Sock.get_random_unused_port
164
+ listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
165
165
  if pwn_provider == 'docker'
166
166
  listen_ip = '0.0.0.0'
167
167
  else
data/bin/pwn_phone CHANGED
@@ -114,7 +114,7 @@ begin
114
114
 
115
115
  # Start Simple HTTP Server (If Requested)
116
116
  if start_reporting_server
117
- listen_port = PWN::Plugins::Sock.get_random_unused_port
117
+ listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
118
118
 
119
119
  if pwn_provider == 'docker'
120
120
  listen_ip = '0.0.0.0'
data/bin/pwn_sast CHANGED
@@ -162,7 +162,7 @@ begin
162
162
 
163
163
  # Start Simple HTTP Server (If Requested)
164
164
  if start_reporting_server
165
- listen_port = PWN::Plugins::Sock.get_random_unused_port
165
+ listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
166
166
 
167
167
  if pwn_provider == 'docker'
168
168
  listen_ip = '0.0.0.0'
@@ -111,7 +111,8 @@ def request_path(opts = {})
111
111
  rescue Errno::ECONNRESET,
112
112
  RestClient::Exceptions::ReadTimeout,
113
113
  RestClient::Exceptions::OpenTimeout,
114
- RestClient::ServerBrokeConnection => e
114
+ RestClient::ServerBrokeConnection,
115
+ OpenSSL::SSL::SSLError => e
115
116
  rest_client_resp_hash = {
116
117
  request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
117
118
  http_uri: http_uri,
@@ -129,7 +130,7 @@ def request_path(opts = {})
129
130
  http_method: http_method,
130
131
  http_resp_code: e.response.code,
131
132
  http_resp_length: e.response.body.length,
132
- http_resp_headers: response.headers,
133
+ http_resp_headers: e.response.headers,
133
134
  http_resp: "#{e.response.body[0..300]}..."
134
135
  }
135
136
  else
@@ -241,7 +242,7 @@ begin
241
242
 
242
243
  # Start Simple HTTP Server (If Requested)
243
244
  if start_reporting_server
244
- listen_port = PWN::Plugins::Sock.get_random_unused_port
245
+ listen_port = PWN::Plugins::Sock.get_random_unused_port.to_s
245
246
 
246
247
  if pwn_provider == 'docker'
247
248
  listen_ip = '0.0.0.0'
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.819'
4
+ VERSION = '0.4.821'
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.4.819
4
+ version: 0.4.821
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.