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 +4 -4
- data/README.md +2 -2
- data/bin/pwn_www_checkip +4 -2
- data/lib/pwn/plugins/ip_info.rb +10 -2
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a85fbb128c8c5ba0dafc425373d33839998f866ccc0982b9d0f596ce7ee2411
|
4
|
+
data.tar.gz: ab8a86d182d5cc69e7509596bd38a0515b2c8c0b532ca61b59675558fb5df554
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
57
|
+
puts JSON.pretty_generate(ip_info_obj)
|
56
58
|
end
|
57
59
|
rescue StandardError => e
|
58
60
|
raise e
|
data/lib/pwn/plugins/ip_info.rb
CHANGED
@@ -81,7 +81,11 @@ module PWN
|
|
81
81
|
)
|
82
82
|
|
83
83
|
ip_resp[:tls_avail] = tls_port_avail
|
84
|
-
ip_resp[:
|
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[:
|
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