pwn 0.4.473 → 0.4.474
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_shodan_search +7 -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: 9ff179fc1eb5aa54b6c3546f5de3cc523044c53895dc2736b1207b6998068711
|
4
|
+
data.tar.gz: 6c56807bd01715adb522f82cb209bb7edac4856a6b73f22fe25a09cf0e9cf7c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18cb621068a698d6f43701137a298bb375df0b660a0a458a4a46e545ef9c1eaa587b574e4a8b38cb5ab51a63c98a0f9ba3e12d2781108af37c298c84673a2362
|
7
|
+
data.tar.gz: f679e8a261b1e8720cd064949c5c9d0a1d2e2f013bbaa54fa28f10729ca4e4d949895cec68d0d0e143bf4fec5fd0efa0cacf69ecc2104fa990b47faa36473686
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.474]: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.1.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.474]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_shodan_search
CHANGED
@@ -45,23 +45,25 @@ begin
|
|
45
45
|
|
46
46
|
timestamp = Time.now.strftime('%Y-%m-%d.%H:%M:%S')
|
47
47
|
query_results_file = opts[:output_results_file]
|
48
|
-
query_results_file ||= "/tmp/shodan-results-#{timestamp}
|
49
|
-
query_results_dir = File.dirname(query_results_file)
|
48
|
+
query_results_file ||= "/tmp/shodan-results-#{timestamp}"
|
50
49
|
|
51
|
-
raw_query_results_file = "#{
|
50
|
+
raw_query_results_file = "#{query_results_file}-RAW.json"
|
52
51
|
File.open(raw_query_results_file, 'w') do |r|
|
53
52
|
File.open(query_results_file, 'w') do |f|
|
54
53
|
queries.each do |query_line|
|
55
54
|
query = query_line.chomp
|
56
55
|
print "QUERY: '#{query}'"
|
57
|
-
r.puts("QUERY: '#{query}'")
|
58
56
|
f.puts("QUERY: '#{query}'")
|
59
57
|
search_results = PWN::Plugins::Shodan.search(
|
60
58
|
api_key: api_key,
|
61
59
|
query: query
|
62
60
|
)
|
63
61
|
puts " >>> Matches: #{search_results[:total]}"
|
64
|
-
|
62
|
+
|
63
|
+
raw_results = {}
|
64
|
+
raw_results[:query] = query
|
65
|
+
raw_results[:results] = search_results
|
66
|
+
r.puts raw_results.to_json
|
65
67
|
|
66
68
|
search_results[:matches].select do |m|
|
67
69
|
f.puts "ORG: #{m[:org]} | PUBIP: #{m[:ip_str]} #{'*' * 36}"
|
data/lib/pwn/version.rb
CHANGED