pwn 0.4.880 → 0.4.882

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: 7476cddf4ef34bf866a63dbc44c2e4f09b23d6a50469c8cd9f94635e6ff44fd7
4
- data.tar.gz: 2bbbe18c615932fda347f7203ed0d66acf0841a2a24c2d5bf89f1be5fdcde282
3
+ metadata.gz: cf22b1c254e324d6d66b5b6e2644137c668bb7da964485ac8614d00bcb4a4080
4
+ data.tar.gz: 39c485bb8345e69519595c9eb8d9fe9fcea4a877c66b0b8282d8a83986604c44
5
5
  SHA512:
6
- metadata.gz: 0d0212df761fb44d0fd97aca483fc344f0fa9a91caa3132be71323ef72c146793aae28096cd4c58bf82e273a1585e46c6851aa5c923a0b9d562b4b7bee34d20d
7
- data.tar.gz: 67ea72cc4feb3042ffd43be03f346950fab25d829a6d4df2afbe55d91f273664dfd64e234e94e0c182d31b790c61705f565440162110d792ea2affda2a3cd8d8
6
+ metadata.gz: 94cc6104f8eac1b8ab11c18162e64bb4a2886fc9585ddb30b47bb654e214363758b7302edb93730c132391f01acc9ffa5a3c3a064713012e7b78bf226c1ae8e4
7
+ data.tar.gz: df6b516ae409849a780b2342f1197caeb013bb0ae58cbe8eaf072f41c4b3075d87c5031b8634f65c44a7c6810ba4167cd8c869b6243d5ca4f6229bf0bee3b470
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.880]:001 >>> PWN.help
40
+ pwn[v0.4.882]: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.880]:001 >>> PWN.help
55
+ pwn[v0.4.882]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -10,7 +10,7 @@ module PWN
10
10
  # 1,000 daily requests are allowed for free
11
11
  module IPInfo
12
12
  # Supported Method Parameters::
13
- # PWN::Plugins::IPInfo.get(
13
+ # ip_resp_json = ip_info_rest_call(
14
14
  # ip: 'required - IP or Host to lookup',
15
15
  # proxy: 'optional - use a proxy'
16
16
  # )
@@ -77,19 +77,23 @@ module PWN
77
77
  ip_info_resp.each do |ip_resp|
78
78
  tls_port_avail = PWN::Plugins::Sock.check_port_in_use(
79
79
  server_ip: target,
80
- server_port: tls_port
80
+ port: tls_port
81
81
  )
82
82
 
83
83
  ip_resp[:tls_avail] = tls_port_avail
84
+ ip_resp[:cert_txt] = false
85
+ ip_resp[:cert_obj] = false
84
86
  next unless tls_port_avail
85
87
 
86
88
  cert_obj = PWN::Plugins::Sock.get_tls_cert(
87
89
  target: target,
88
90
  port: tls_port
89
91
  )
92
+
93
+ next unless cert_obj.is_a?(OpenSSL::X509::Certificate)
94
+
90
95
  ip_resp[:cert_txt] = cert_obj.to_text
91
96
  ip_resp[:cert_obj] = cert
92
- PWN::Plugins::Sock.disconnect(sock_obj: tls_sock_obj)
93
97
  end
94
98
  end
95
99
 
@@ -188,6 +188,8 @@ module PWN
188
188
  )
189
189
  tls_sock_obj.sync_close = true
190
190
  tls_sock_obj.peer_cert
191
+ rescue OpenSSL::SSL::SSLError
192
+ false
191
193
  rescue StandardError => e
192
194
  raise e
193
195
  ensure
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.880'
4
+ VERSION = '0.4.882'
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.880
4
+ version: 0.4.882
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.