You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/pwn_nessus_cloud_scan_crud
+11-14Lines changed: 11 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -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>')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=null;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>')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|
0 commit comments