Skip to content

Commit

Permalink
Land #17970, Fix #17969 Assign empty hash to variable status
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanusz-r7 authored Sep 11, 2023
2 parents 5ea6340 + d91a963 commit 0fcba5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/nessus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,7 @@ def cmd_nessus_db_import(*args)
if is_scan_complete(scan_id)
print_status("Exporting scan ID #{scan_id} is Nessus format...")
export = @n.scan_export(scan_id, 'nessus')
status = {}
if export['file']
file_id = export['file']
print_good("The export file ID for scan ID #{scan_id} is #{file_id}")
Expand Down Expand Up @@ -1485,6 +1486,7 @@ def cmd_nessus_scan_export(*args)
end
if format.in?(['nessus', 'html', 'pdf', 'csv', 'db'])
export = @n.scan_export(scan_id, format)
status = {}
if export['file']
file_id = export['file']
print_good("The export file ID for scan ID #{scan_id} is #{file_id}")
Expand Down Expand Up @@ -1526,6 +1528,7 @@ def cmd_nessus_scan_export_status(*args)
when 2
scan_id = args[0]
file_id = args[1]
status = {}
loop do
status = @n.scan_export_status(scan_id, file_id)
print_status('Export status: ' + status['status'])
Expand Down

0 comments on commit 0fcba5e

Please sign in to comment.