pwn 0.4.831 → 0.4.833
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/lib/pwn/plugins/shodan.rb +9 -5
- 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: 95b4068d5ecf75a58b7b656ac783761e5fdfbba364aef3a4e983e3b1346a02f2
|
4
|
+
data.tar.gz: efd8163a0b49cbef0bd1e03d90066e2c26bad118d9337877694e79bd866a058f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da532d1a0d8211a2917d7582832e4776fe7000db0d2ca3965352ebf39b1b7c14449535159c60264dc666b9eeb92ccd8d5dc95ae62c84432d2734587971a1a629
|
7
|
+
data.tar.gz: 98814d44204a7f65ddd6ecaee2c327eb2cd28c5c35b242c37ba0e4fa7e7c7023012fc5f42c8e8ebac9538897ae65191fb7e176f91965e8941393a858899259dd
|
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.833]: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.833]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/lib/pwn/plugins/shodan.rb
CHANGED
@@ -18,10 +18,10 @@ module PWN
|
|
18
18
|
# )
|
19
19
|
|
20
20
|
private_class_method def self.extract_and_validate_uris(opts = {})
|
21
|
-
|
21
|
+
search_results_hash = opts[:search_results_hash]
|
22
22
|
uri_arr = []
|
23
|
-
|
24
|
-
URI.extract(
|
23
|
+
search_results_hash.each_value do |search_results_value|
|
24
|
+
URI.extract(search_results_value.to_s).each do |uri|
|
25
25
|
uri_arr.push(uri) if %w[http https].include?(URI.parse(uri).scheme)
|
26
26
|
end
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module PWN
|
|
30
30
|
URI::InvalidURIError,
|
31
31
|
URI::InvalidComponentError
|
32
32
|
|
33
|
-
|
33
|
+
false
|
34
34
|
rescue StandardError => e
|
35
35
|
raise e
|
36
36
|
end
|
@@ -504,7 +504,7 @@ module PWN
|
|
504
504
|
public_class_method def self.get_uris(opts = {})
|
505
505
|
search_results = opts[:search_results]
|
506
506
|
|
507
|
-
search_results
|
507
|
+
search_results.map do |search_results_hash|
|
508
508
|
extract_and_validate_uris(
|
509
509
|
search_results_hash: search_results_hash
|
510
510
|
)
|
@@ -604,6 +604,10 @@ module PWN
|
|
604
604
|
target_ips: 'required - comma-delimited list of ip addresses to target'
|
605
605
|
)
|
606
606
|
|
607
|
+
uri_arr = #{self}.get_uris(
|
608
|
+
search_results: 'required - search_results object returned from #search method'
|
609
|
+
)
|
610
|
+
|
607
611
|
#{self}.authors
|
608
612
|
"
|
609
613
|
end
|
data/lib/pwn/version.rb
CHANGED