Verify that database is ready for usage

This commit is contained in:
Noam Rathaus 2020-05-17 18:11:03 +03:00 committed by GitHub
parent 70bb057885
commit 016c261a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,11 @@ class Plugin::BeSECURE < Msf::Plugin
def cmd_besecure_report_import(*args)
if args?(args, 2)
if !database?
print_error("Database not ready")
return ''
end
tempfile = Tempfile.new('results')
cmd_besecure_report_download(args[0], 'nbe', File.dirname(tempfile) + "/", File.basename(tempfile) )