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 +4 -4
- data/README.md +2 -2
- data/lib/pwn/plugins/ip_info.rb +7 -3
- data/lib/pwn/plugins/sock.rb +2 -0
- 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: cf22b1c254e324d6d66b5b6e2644137c668bb7da964485ac8614d00bcb4a4080
|
|
4
|
+
data.tar.gz: 39c485bb8345e69519595c9eb8d9fe9fcea4a877c66b0b8282d8a83986604c44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
40
|
+
pwn[v0.4.882]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.882]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
data/lib/pwn/plugins/ip_info.rb
CHANGED
|
@@ -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
|
-
#
|
|
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
|
-
|
|
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
|
|
data/lib/pwn/plugins/sock.rb
CHANGED
data/lib/pwn/version.rb
CHANGED