We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0dca7a commit ce202cbCopy full SHA for ce202cb
plugins/nessus.rb
@@ -1136,7 +1136,14 @@ def cmd_nessus_db_scan_workspace(*args)
1136
end
1137
targets.chop!
1138
print_status("Creating scan from policy #{policy_id}, called \"#{name}\" and scanning all hosts in #{framework.db.workspace.name}")
1139
- scan = @n.scan_create(policy_id, name, desc, targets)
+ et=Hash.new
1140
+ et['enabled']=false
1141
+ et['launch']='ONETIME'
1142
+ et['name']=name
1143
+ et['text_targets']=targets
1144
+ et['description']=desc
1145
+ et['launch_now']=false
1146
+ scan = @n.scan_create(policy_id, et)
1147
if !scan["error"]
1148
scan = scan["scan"]
1149
print_status("Scan ID #{scan['id']} successfully created")
0 commit comments