pwn 0.4.884 → 0.4.885

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: 6da36f181234544228772fe502a244a08aacbf2566c1785bf6ed89705c7fc6d3
4
- data.tar.gz: 0664cf572253f558b278532376468ed582e6ff01705cbd2d8691151662aeb697
3
+ metadata.gz: 127f33ce1256a0c95de9483faec90b872a0ec1d69077fe5a47e7f1abb1f2da37
4
+ data.tar.gz: 0a6319bf2bf3695e7654e42646b51f7a62156abaa148b4ad510ea2d7228eb368
5
5
  SHA512:
6
- metadata.gz: d651d3cab3a8998706361ce2c305c672d8034c149235d705b37095274f632896105843b97fc30162e6390f2280e4be37cfc4c5b207246473c9f2a4666cadc5fb
7
- data.tar.gz: c3d97f877e0647ff5b091ff81a366bd1b408cb87319427ec58a046c5844b11d63df5a62e339241b91df893a2659e18e6aeba9e8da3f4d9a45cd6c46c3558dff1
6
+ metadata.gz: 1a6d75b1317f4d9bf7a7523886aee05788b03e3c7120722690299f4284517d4d55c98fe6c7817b7d1515b5e49adc858d38741b69feba7793983f04edffe5a45f
7
+ data.tar.gz: 12882f0022b60571cf08742818e54c3af7052c01419a8bb33b4bc833c6d7b33a277d9ea491292ac59d6283cb681b78e99bd4c5fb7096c712f44e456035ef30b6
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.885]: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.885]: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 = {}
@@ -52,7 +53,7 @@ begin
52
53
  target: public_ip_address,
53
54
  proxy: proxy
54
55
  )
55
- pp ip_info_obj
56
+ puts JSON.pretty_generate(ip_info_obj)
56
57
  end
57
58
  rescue StandardError => e
58
59
  raise e
@@ -91,6 +91,11 @@ module PWN
91
91
 
92
92
  next unless cert_obj.is_a?(OpenSSL::X509::Certificate)
93
93
 
94
+ ip_resp[:cert_subject] = cert_obj.subject.to_s
95
+ ip_resp[:cert_issuer] = cert_obj.issuer.to_s
96
+ ip_resp[:cert_serial] = cert_obj.serial.to_s
97
+ ip_resp[:not_before] = cert_obj.not_before.to_s
98
+ ip_resp[:not_after] = cert_obj.not_after.to_s
94
99
  ip_resp[:cert_obj] = cert_obj
95
100
  end
96
101
  end
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.885'
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.885
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.