pwn 0.4.828 → 0.4.830
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/bin/pwn_shodan_search +12 -3
- data/lib/pwn/plugins/black_duck_binary_analysis.rb +1 -1
- data/lib/pwn/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f8fe3b903e8f8cdcb3bd315ba1c9f8a2a3864e1186c8606f22092278e40f03d
|
4
|
+
data.tar.gz: cdb2e98c75a3e13daa0dcbf48fcd1c45653f7837015163581af9fd081e3dbf23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 159987de9835f9cb5e49d000cbcaab1bb377d4cf49f527ff3a0b5632081011496d206c076f7fc5ce0ca4227a0d121aafd5d37cfdec61f7611475ba7187ff937d
|
7
|
+
data.tar.gz: a97eafa3d0aea791e3f30b361c53c5a4edb5b1bd2593680a8298b43e3d0af666b6a4eb77d38432f9cc3ede31a452497a3bee6cb8370992dfe1d51434e5fa29d1
|
data/Gemfile
CHANGED
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.830]: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.830]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
data/bin/pwn_shodan_search
CHANGED
@@ -20,7 +20,11 @@ OptionParser.new do |options|
|
|
20
20
|
opts[:query_file] = q
|
21
21
|
end
|
22
22
|
|
23
|
-
options.on('-
|
23
|
+
options.on('-rFLOAT', '--rate-limit=FLOAT', '<Optional - Rate Limit Between API Calls (Default: 1.0, must be >= 1.0)>') do |r|
|
24
|
+
opts[:rate_limit_duration] = r
|
25
|
+
end
|
26
|
+
|
27
|
+
options.on('-oFILE', '--output-results-file=FILE', '<Optional - Defaults to ./shodan-results-Time.now.strftime("%y-%m-%d.%H:%M:%S").txt>') do |o|
|
24
28
|
opts[:output_results_file] = o
|
25
29
|
end
|
26
30
|
end.parse!
|
@@ -41,11 +45,15 @@ begin
|
|
41
45
|
query_file = opts[:query_file].to_s
|
42
46
|
raise "ERROR: #{query_file} does not exist." unless File.exist?(query_file)
|
43
47
|
|
48
|
+
rate_limit_duration = opts[:rate_limit_duration].to_f
|
49
|
+
rate_limit_duration = 1.0 if rate_limit_duration.zero?
|
50
|
+
raise 'ERROR: Rate Limit must be >= 1.0' unless rate_limit_duration.positive?
|
51
|
+
|
44
52
|
queries = File.readlines(query_file)
|
45
53
|
|
46
54
|
timestamp = Time.now.strftime('%Y-%m-%d.%H:%M:%S')
|
47
55
|
query_results_file = opts[:output_results_file]
|
48
|
-
query_results_file ||= "
|
56
|
+
query_results_file ||= "./shodan-results-#{timestamp}"
|
49
57
|
|
50
58
|
raw_query_results_file = "#{query_results_file}-RAW.json"
|
51
59
|
raw_results_arr = []
|
@@ -59,7 +67,6 @@ begin
|
|
59
67
|
query: query
|
60
68
|
)
|
61
69
|
puts " >>> Matches: #{search_results[:total]}"
|
62
|
-
sleep 1
|
63
70
|
|
64
71
|
raw_results = {}
|
65
72
|
raw_results[:query] = query
|
@@ -72,6 +79,8 @@ begin
|
|
72
79
|
f.puts "TCP Port: #{m[:port]}"
|
73
80
|
f.puts "Data: #{m[:data]}\n\n\n"
|
74
81
|
end
|
82
|
+
|
83
|
+
sleep rate_limit_duration
|
75
84
|
end
|
76
85
|
end
|
77
86
|
File.write(raw_query_results_file, JSON.pretty_generate(raw_results_arr))
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.830
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 3.2.
|
215
|
+
version: 3.2.1
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - '='
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 3.2.
|
222
|
+
version: 3.2.1
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: faye-websocket
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|