pwn 0.4.491 → 0.4.494

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41377231d1467a4e73bc6e8ec556281b64cd314895d44985fe0bd5cd91fd3c81
4
- data.tar.gz: 21faa2700771c978f13ddc190bece542979dd635b27a4512280a44f13c65fc25
3
+ metadata.gz: 8768ccdc969bae1bc9fa8f7504adb172c9093901736d825e61137e0565069b43
4
+ data.tar.gz: 024d680c7f6f619cf849cdb9617632bcac74c3cdbe40fd698e0eafcb5d4032d1
5
5
  SHA512:
6
- metadata.gz: 0f57e0cfe935b55f9f6f612a6abd13a19a2a1a9d87310530779333c074301415be5f67ec3a1e9b5404e16a00a24a47fa37f06e508545e9b41702085ec38f0a27
7
- data.tar.gz: 683937fbe729d6780e20eba920c97b0f8019e16f4392a0d6843343c5e486d328ac2955a555cbdf3ec15cee24404647c30c816585ec048e32f6e9109bcbb92430
6
+ metadata.gz: 4e1f54a0b6bab1f2e52c2269ca190cc78ebd1f36d837cc2dfb16c3d7b9f56221ae351e23b48f2b6811ab09d1e37bd5ea857719ad03f32f533e921378792ccc5a
7
+ data.tar.gz: fc9018fa4623f621cf9b8c09995c11e4eef8d3013d2aaea89d671e5a7c20ab6b3d9015689f247da5461189f130f6d8c521d47300f2f5aebbeefb1dcded45f811
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.15'
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'
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.491]:001 >>> PWN.help
40
+ pwn[v0.4.494]: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.491]:001 >>> PWN.help
55
+ pwn[v0.4.494]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -47,8 +47,8 @@ OptionParser.new do |options|
47
47
  opts[:scanner_name] = s
48
48
  end
49
49
 
50
- options.on('-D', '--disable-scan', '<Optional - If true, the schedule for the scan is disabled (Defaults to false)>') do |d|
51
- opts[:disabled] = d
50
+ options.on('-E', '--enable-schedule', '<Optional - If true, the schedule for the scan is enabled (Defaults to false)>') do |e|
51
+ opts[:enable_schedule] = e
52
52
  end
53
53
 
54
54
  options.on('-NTARGET', '--target-network-name=TARGET', '<Optional - If --scanner other than AUTO-ROUTED, Otherwise Required - Network to Scan (Defaults to "Default")>') do |n|
@@ -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 (Defaults to Time.now.strftime("%Y%m%dT%H%M%S")>') do |t|
66
+ options.on('-STIME', '--start-time=TIME', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan (e.g. "2777-07-07T00:00:00")>') 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=ONETIME;INTERVAL=0;BYDAY=null")>') do |r|
70
+ options.on('-rRRULES', '--rrules=RRULES', '<Optional - For One-Time Scans, the Starting Time and Date for the Scan (e.g. "FREQ=WEEKLY;INTERVAL=3;BYDAY=MO,WE,FR")>') do |r|
71
71
  opts[:rrules] = r
72
72
  end
73
73
 
@@ -79,12 +79,12 @@ 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 (Defaults to "UTC")>') do |t|
82
+ options.on('-zTIMEZONE', '--timezone=TIMEZONE', '<Optional - Timezone of the scheduled start time for the scan (e.g. "US/Eastern")>') do |t|
83
83
  opts[:timezone] = t
84
84
  end
85
85
 
86
- options.on('-gGROUPS', '--target-groups=GROUPS', '<Optional - Comma-delimited list of target group IDs to scan>') do |t|
87
- opts[:timezone] = t
86
+ options.on('-gGROUPS', '--target-groups=GROUPS', '<Optional - Comma-delimited list of target group IDs to scan>') do |g|
87
+ opts[:target_groups] = g
88
88
  end
89
89
  end.parse!
90
90
 
@@ -131,11 +131,8 @@ begin
131
131
  target_network_name = opts[:target_network_name]
132
132
  target_network_name ||= 'Default'
133
133
 
134
- disabled = true if opts[:disabled]
135
- disabled ||= false
136
-
137
- enabled = true
138
- enabled = false if disabled
134
+ enable_schedule = true if opts[:enable_schedule]
135
+ enable_schedule ||= false
139
136
 
140
137
  launch = opts[:launch]
141
138
  launch ||= 'ON_DEMAND'
@@ -144,13 +141,13 @@ begin
144
141
  scan_time_window ||= 0
145
142
 
146
143
  starttime = opts[:starttime]
147
- starttime ||= Time.now.strftime('%Y%m%dT%H%M%S')
144
+ # starttime ||= Time.now.strftime('%Y%m%dT%H%M%S')
148
145
 
149
146
  rrules = opts[:rrules]
150
- rrules ||= 'FREQ=ONETIME;INTERVAL=0;BYDAY=null'
147
+ # rrules ||= 'FREQ=null;INTERVAL=0;BYDAY=null'
151
148
 
152
149
  timezone = opts[:timezone]
153
- timezone ||= 'UTC'
150
+ # timezone ||= 'UTC'
154
151
 
155
152
  target_groups = opts[:target_groups]
156
153
 
@@ -217,9 +214,7 @@ begin
217
214
  nessus_obj: nessus_obj,
218
215
  name: scan_template_name
219
216
  )
220
- puts scan_template.inspect
221
217
  scan_template_uuid = scan_template[:uuid]
222
- puts scan_template_uuid
223
218
 
224
219
  # Part 2: Populate settings object from options passed to driver
225
220
  settings = {}
@@ -250,7 +245,7 @@ begin
250
245
  )
251
246
  settings[:target_network_uuid] = target_network[:uuid]
252
247
 
253
- settings[:enabled] = enabled
248
+ settings[:enabled] = enable_schedule
254
249
 
255
250
  settings[:launch] = launch
256
251
 
@@ -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
- uuid = opts[:scan_template_uuid]
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: uuid,
440
+ uuid: scan_template_uuid,
441
441
  settings: settings,
442
442
  credentials: credentials,
443
443
  plugins: plugins
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.491'
4
+ VERSION = '0.4.494'
5
5
  end
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.491
4
+ version: 0.4.494
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-14 00:00:00.000000000 Z
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.15
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.15
124
+ version: 2.3.16
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler-audit
127
127
  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.15
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