Add create_credential_and_login in report.rb

GSoC/Meterpreter_Web_Console
James Barnett 2018-06-14 13:30:46 -05:00
parent 9f2f61c481
commit 0d4b2afca7
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,14 @@ module Auxiliary::Report
end
end
def create_credential_and_login(opts={})
if active_db?
framework.db.create_credential_and_login(opts)
elsif !db_warning_given?
vprint_warning('No active DB -- Credential data will not be saved!')
end
end
def invalidate_login(opts={})
if active_db?
super(opts)