pwn 0.4.493 → 0.4.494
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_nessus_cloud_scan_crud +11 -14
- 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: 8768ccdc969bae1bc9fa8f7504adb172c9093901736d825e61137e0565069b43
|
4
|
+
data.tar.gz: 024d680c7f6f619cf849cdb9617632bcac74c3cdbe40fd698e0eafcb5d4032d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e1f54a0b6bab1f2e52c2269ca190cc78ebd1f36d837cc2dfb16c3d7b9f56221ae351e23b48f2b6811ab09d1e37bd5ea857719ad03f32f533e921378792ccc5a
|
7
|
+
data.tar.gz: fc9018fa4623f621cf9b8c09995c11e4eef8d3013d2aaea89d671e5a7c20ab6b3d9015689f247da5461189f130f6d8c521d47300f2f5aebbeefb1dcded45f811
|
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.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.
|
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('-
|
51
|
-
opts[:
|
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>') 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 (
|
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>') 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 |
|
87
|
-
opts[:
|
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
|
-
|
135
|
-
|
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'
|
@@ -147,7 +144,7 @@ begin
|
|
147
144
|
# starttime ||= Time.now.strftime('%Y%m%dT%H%M%S')
|
148
145
|
|
149
146
|
rrules = opts[:rrules]
|
150
|
-
rrules ||= 'FREQ=null;INTERVAL=0;BYDAY=null'
|
147
|
+
# rrules ||= 'FREQ=null;INTERVAL=0;BYDAY=null'
|
151
148
|
|
152
149
|
timezone = opts[:timezone]
|
153
150
|
# timezone ||= 'UTC'
|
@@ -248,7 +245,7 @@ begin
|
|
248
245
|
)
|
249
246
|
settings[:target_network_uuid] = target_network[:uuid]
|
250
247
|
|
251
|
-
settings[:enabled] =
|
248
|
+
settings[:enabled] = enable_schedule
|
252
249
|
|
253
250
|
settings[:launch] = launch
|
254
251
|
|
data/lib/pwn/version.rb
CHANGED