pwn 0.4.471 → 0.4.472
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 +4 -3
- 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: 79226d5832fb6d629db612d4a2f44e02c27ae32ddbfdd41722feca31cfb13b7c
|
4
|
+
data.tar.gz: d1116586791753444e1d60d46efe5f4f8d099fd40d4397e4f045943fb41dce23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23b26a6bbb579a707b948ea8bec858089e6a5dce7df26c8920946e6bc4637762cc71e8e03aa013d96ec9ad4fc35a497d4323b4fe006f5e50615e0093b6a279dd
|
7
|
+
data.tar.gz: 072f7811b42f425ef8a56fc120d64f6132df02408a19fa6229d725595464fe7a585db4bc9563c382a35ac5b083cc77f6df0017db466afaef86a2a99f147d5780
|
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.472]: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.472]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_shodan_search
CHANGED
@@ -31,14 +31,14 @@ if opts.empty?
|
|
31
31
|
end
|
32
32
|
|
33
33
|
begin
|
34
|
-
yaml_file = opts[:yaml]
|
34
|
+
yaml_file = opts[:yaml].to_s
|
35
35
|
raise "ERROR: #{yaml_file} does not exist." unless File.exist?(yaml_file)
|
36
36
|
|
37
37
|
yaml = YAML.load_file(yaml_file, symbolize_names: true)
|
38
38
|
|
39
39
|
api_key = yaml[:api_key]
|
40
40
|
|
41
|
-
query_file = opts[:query_file]
|
41
|
+
query_file = opts[:query_file].to_s
|
42
42
|
raise "ERROR: #{query_file} does not exist." unless File.exist?(query_file)
|
43
43
|
|
44
44
|
queries = File.readlines(query_file)
|
@@ -46,8 +46,9 @@ begin
|
|
46
46
|
timestamp = Time.now.strftime('%Y-%m-%d.%H:%M:%S')
|
47
47
|
query_results_file = opts[:output_results_file]
|
48
48
|
query_results_file ||= "/tmp/shodan-results-#{timestamp}.txt"
|
49
|
+
query_results_dir = File.dirname(query_results_file)
|
49
50
|
|
50
|
-
raw_query_results_file = "/
|
51
|
+
raw_query_results_file = "#{query_results_dir}/shodan-results-#{timestamp}-RAW.json"
|
51
52
|
File.open(raw_query_results_file, 'w') do |r|
|
52
53
|
File.open(query_results_file, 'w') do |f|
|
53
54
|
queries.each do |query_line|
|
data/lib/pwn/version.rb
CHANGED