pwn 0.4.490 → 0.4.493
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/Gemfile +2 -2
- data/README.md +2 -2
- data/bin/pwn_nessus_cloud_scan_crud +6 -7
- data/lib/pwn/plugins/nessus_cloud.rb +2 -2
- data/lib/pwn/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca875035f78d9cde4a61de1e0e89512474fced9934988411aa58f14237f1c6e9
|
|
4
|
+
data.tar.gz: 14cd3c5cb46ca810c7fa30db4af280f05e1c1e0ba389e71c8e8c1ffb24b09241
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de05863476f114617fef1ee3133b78648199ac295cf23e953ace0ec44fb4a5d16847ff05239e335d74ada06618dfdb7cd28aad351780eebd1e6e0a56ffc8c0ba
|
|
7
|
+
data.tar.gz: bffdd5def65dd8d7417fe1781aca00fd3d1d1fdf1475551d1e04f2aea72f2b24a40fc714c6d19470c547b3e4c5992853ce76f5966a020a0b634762e6795ef36f
|
data/Gemfile
CHANGED
|
@@ -18,7 +18,7 @@ gem 'aws-sdk', '3.1.0'
|
|
|
18
18
|
gem 'bettercap', '1.6.2'
|
|
19
19
|
gem 'brakeman', '5.2.3'
|
|
20
20
|
gem 'bson', '4.15.0'
|
|
21
|
-
gem 'bundler', '>=2.3.
|
|
21
|
+
gem 'bundler', '>=2.3.16'
|
|
22
22
|
gem 'bundler-audit', '0.9.1'
|
|
23
23
|
gem 'bunny', '2.19.0'
|
|
24
24
|
gem 'colorize', '0.8.1'
|
|
@@ -73,7 +73,7 @@ gem 'sinatra', '2.2.0'
|
|
|
73
73
|
gem 'slack-ruby-client', '1.1.0'
|
|
74
74
|
gem 'socksify', '1.7.1'
|
|
75
75
|
gem 'spreadsheet', '1.3.0'
|
|
76
|
-
gem 'sqlite3', '1.4.
|
|
76
|
+
gem 'sqlite3', '1.4.4'
|
|
77
77
|
gem 'thin', '1.8.1'
|
|
78
78
|
gem 'tty-prompt', '0.23.1'
|
|
79
79
|
gem 'watir', '7.1.0'
|
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.493]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.493]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
|
|
@@ -63,11 +63,11 @@ OptionParser.new do |options|
|
|
|
63
63
|
opts[:scan_time_window] = t
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
options.on('-STIME', '--start-time=TIME', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan
|
|
66
|
+
options.on('-STIME', '--start-time=TIME', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan>') do |t|
|
|
67
67
|
opts[:starttime] = t
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
options.on('-rRRULES', '--rrules=RRULES', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan (Defaults to "FREQ=
|
|
70
|
+
options.on('-rRRULES', '--rrules=RRULES', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan (Defaults to "FREQ=null;INTERVAL=0;BYDAY=null")>') do |r|
|
|
71
71
|
opts[:rrules] = r
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -79,7 +79,7 @@ OptionParser.new do |options|
|
|
|
79
79
|
opts[:tag_category_name] = y
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
-
options.on('-zTIMEZONE', '--timezone=TIMEZONE', '<Optional - Timezone of the scheduled start time for the scan
|
|
82
|
+
options.on('-zTIMEZONE', '--timezone=TIMEZONE', '<Optional - Timezone of the scheduled start time for the scan>') do |t|
|
|
83
83
|
opts[:timezone] = t
|
|
84
84
|
end
|
|
85
85
|
|
|
@@ -144,13 +144,13 @@ begin
|
|
|
144
144
|
scan_time_window ||= 0
|
|
145
145
|
|
|
146
146
|
starttime = opts[:starttime]
|
|
147
|
-
starttime ||= Time.now.strftime('%Y%m%dT%H%M%S')
|
|
147
|
+
# starttime ||= Time.now.strftime('%Y%m%dT%H%M%S')
|
|
148
148
|
|
|
149
149
|
rrules = opts[:rrules]
|
|
150
|
-
rrules ||= 'FREQ=
|
|
150
|
+
rrules ||= 'FREQ=null;INTERVAL=0;BYDAY=null'
|
|
151
151
|
|
|
152
152
|
timezone = opts[:timezone]
|
|
153
|
-
timezone ||= 'UTC'
|
|
153
|
+
# timezone ||= 'UTC'
|
|
154
154
|
|
|
155
155
|
target_groups = opts[:target_groups]
|
|
156
156
|
|
|
@@ -218,7 +218,6 @@ begin
|
|
|
218
218
|
name: scan_template_name
|
|
219
219
|
)
|
|
220
220
|
scan_template_uuid = scan_template[:uuid]
|
|
221
|
-
puts scan_template_uuid
|
|
222
221
|
|
|
223
222
|
# Part 2: Populate settings object from options passed to driver
|
|
224
223
|
settings = {}
|
|
@@ -431,13 +431,13 @@ module PWN
|
|
|
431
431
|
|
|
432
432
|
public_class_method def self.create_scan(opts = {})
|
|
433
433
|
nessus_obj = opts[:nessus_obj]
|
|
434
|
-
|
|
434
|
+
scan_template_uuid = opts[:scan_template_uuid]
|
|
435
435
|
settings = opts[:settings]
|
|
436
436
|
credentials = opts[:credentials]
|
|
437
437
|
plugins = opts[:plugins]
|
|
438
438
|
|
|
439
439
|
http_body = {
|
|
440
|
-
uuid:
|
|
440
|
+
uuid: scan_template_uuid,
|
|
441
441
|
settings: settings,
|
|
442
442
|
credentials: credentials,
|
|
443
443
|
plugins: plugins
|
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.493
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-06-
|
|
11
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -114,14 +114,14 @@ dependencies:
|
|
|
114
114
|
requirements:
|
|
115
115
|
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 2.3.
|
|
117
|
+
version: 2.3.16
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 2.3.
|
|
124
|
+
version: 2.3.16
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: bundler-audit
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -870,14 +870,14 @@ dependencies:
|
|
|
870
870
|
requirements:
|
|
871
871
|
- - '='
|
|
872
872
|
- !ruby/object:Gem::Version
|
|
873
|
-
version: 1.4.
|
|
873
|
+
version: 1.4.4
|
|
874
874
|
type: :runtime
|
|
875
875
|
prerelease: false
|
|
876
876
|
version_requirements: !ruby/object:Gem::Requirement
|
|
877
877
|
requirements:
|
|
878
878
|
- - '='
|
|
879
879
|
- !ruby/object:Gem::Version
|
|
880
|
-
version: 1.4.
|
|
880
|
+
version: 1.4.4
|
|
881
881
|
- !ruby/object:Gem::Dependency
|
|
882
882
|
name: thin
|
|
883
883
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -1976,7 +1976,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1976
1976
|
- !ruby/object:Gem::Version
|
|
1977
1977
|
version: '0'
|
|
1978
1978
|
requirements: []
|
|
1979
|
-
rubygems_version: 3.3.
|
|
1979
|
+
rubygems_version: 3.3.16
|
|
1980
1980
|
signing_key:
|
|
1981
1981
|
specification_version: 4
|
|
1982
1982
|
summary: Automated Security Testing for CI/CD Pipelines & Beyond
|