pwn 0.4.884 → 0.4.886

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: 6da36f181234544228772fe502a244a08aacbf2566c1785bf6ed89705c7fc6d3
4
- data.tar.gz: 0664cf572253f558b278532376468ed582e6ff01705cbd2d8691151662aeb697
3
+ metadata.gz: 5a85fbb128c8c5ba0dafc425373d33839998f866ccc0982b9d0f596ce7ee2411
4
+ data.tar.gz: ab8a86d182d5cc69e7509596bd38a0515b2c8c0b532ca61b59675558fb5df554
5
5
  SHA512:
6
- metadata.gz: d651d3cab3a8998706361ce2c305c672d8034c149235d705b37095274f632896105843b97fc30162e6390f2280e4be37cfc4c5b207246473c9f2a4666cadc5fb
7
- data.tar.gz: c3d97f877e0647ff5b091ff81a366bd1b408cb87319427ec58a046c5844b11d63df5a62e339241b91df893a2659e18e6aeba9e8da3f4d9a45cd6c46c3558dff1
6
+ metadata.gz: d3ef35410455de329014f16c01c6498ce9e7540a1edbf2028b3c181297e47084a4439e7e6344892ce33685868599cd44f3ffb21008bfcd83695f6b1931067a95
7
+ data.tar.gz: 0e3155be591274c629fc0dd73a45d94b830261af83bf4a074d05c4579d0eea110815f5efb6ef5adf439c16e171da51f7287f44e032f29ec29b719c8a4c163a9d
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.884]:001 >>> PWN.help
40
+ pwn[v0.4.886]: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.884]:001 >>> PWN.help
55
+ pwn[v0.4.886]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_www_checkip CHANGED
@@ -2,6 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require 'pwn'
5
+ require 'json'
5
6
  require 'optparse'
6
7
 
7
8
  opts = {}
@@ -46,13 +47,14 @@ begin
46
47
  ).to_s.chomp
47
48
  end
48
49
 
49
- puts "PUBLIC IP: #{public_ip_address}"
50
+ puts "PUBLIC IP: #{public_ip_address}" unless ipinfo
51
+
50
52
  if ipinfo
51
53
  ip_info_obj = PWN::Plugins::IPInfo.get(
52
54
  target: public_ip_address,
53
55
  proxy: proxy
54
56
  )
55
- pp ip_info_obj
57
+ puts JSON.pretty_generate(ip_info_obj)
56
58
  end
57
59
  rescue StandardError => e
58
60
  raise e
@@ -81,7 +81,11 @@ module PWN
81
81
  )
82
82
 
83
83
  ip_resp[:tls_avail] = tls_port_avail
84
- ip_resp[:cert_obj] = false
84
+ ip_resp[:cert_subject] = false
85
+ ip_resp[:cert_issuer] = false
86
+ ip_resp[:cert_serial] = false
87
+ ip_resp[:not_before] = false
88
+ ip_resp[:not_after] = false
85
89
  next unless tls_port_avail
86
90
 
87
91
  cert_obj = PWN::Plugins::Sock.get_tls_cert(
@@ -91,7 +95,11 @@ module PWN
91
95
 
92
96
  next unless cert_obj.is_a?(OpenSSL::X509::Certificate)
93
97
 
94
- ip_resp[:cert_obj] = cert_obj
98
+ ip_resp[:cert_subject] = cert_obj.subject.to_s
99
+ ip_resp[:cert_issuer] = cert_obj.issuer.to_s
100
+ ip_resp[:cert_serial] = cert_obj.serial.to_s
101
+ ip_resp[:not_before] = cert_obj.not_before.to_s
102
+ ip_resp[:not_after] = cert_obj.not_after.to_s
95
103
  end
96
104
  end
97
105
 
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.884'
4
+ VERSION = '0.4.886'
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.884
4
+ version: 0.4.886
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.