pwn 0.4.569 → 0.4.571

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: 998223e663621e039a84c211941c42a5935019c2252cf84a83ec99a4eabc291e
4
- data.tar.gz: f73aaf062f69a316979068acb516edbc1132c70d8c902999a11d82afa0971840
3
+ metadata.gz: 758c24e1c40fc065072d2513b798c6b0f33a8ee5bda1b9d510c7f09582a76a69
4
+ data.tar.gz: 1175f06f73d8dbf810cbbd169571e6f3c3366983b4c4ce78ec6f040d709c403c
5
5
  SHA512:
6
- metadata.gz: d041132550dd09828a2bef6fb967e975e676cda1bace037df8dccb91d82db624f94b88c9f0dfac767e9cb640917c0d0de96a7936c5fd0860307d1bb89ca94827
7
- data.tar.gz: 348bed509b6d11f8ce08dfde1a5ff48645ba1993ebac06ab1c1789595d8c8c08d6fee3898bed0e6b8130d21bab91a29daa179e44423df34d5c2ed2f16f902339
6
+ metadata.gz: 30eb94f010a1aeaa6d696bb8bbce40d350b934bd611d1235db62a4eff6eb379f8ece0af3bd3ca9452b5124a537e3fe2d7a107ac2d98a13933b31d7cbf37b36fa
7
+ data.tar.gz: 216fd24a9097f983f586549d848350e1e4e884ca534e20c768270d5f319902eb5024c201911658e9e2a42a38cc166a9123a200c4e9f90b403f830bdbbb1cd014
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.569]:001 >>> PWN.help
40
+ pwn[v0.4.571]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.569]:001 >>> PWN.help
55
+ pwn[v0.4.571]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -100,17 +100,18 @@ def request_path(opts = {})
100
100
  http_resp_length: response.body.length,
101
101
  http_resp: "#{response.body[0..300]}..."
102
102
  }
103
- rescue RestClient::Exceptions::ReadTimeout
103
+ rescue Errno::ECONNRESET,
104
+ RestClient::Exceptions::ReadTimeout,
105
+ RestClient::ServerBrokeConnection => e
104
106
  rest_client_resp_hash = {
105
107
  request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
106
108
  http_uri: http_uri,
107
109
  http_method: http_method,
108
- http_resp_code: 'RestClient::Exceptions::ReadTimeout',
110
+ http_resp_code: e.class,
109
111
  http_resp_length: 'N/A',
110
- http_resp: 'N/A'
112
+ http_resp: e.class
111
113
  }
112
- rescue RestClient::ExceptionWithResponse,
113
- RestClient::ServerBrokeConnection => e
114
+ rescue RestClient::ExceptionWithResponse => e
114
115
  rest_client_resp_hash = {
115
116
  request_timestamp: Time.now.strftime('%Y-%m-%d_%H-%M-%S'),
116
117
  http_uri: http_uri,
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.569'
4
+ VERSION = '0.4.571'
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.569
4
+ version: 0.4.571
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2022-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport