Fix error on data server due to unexpected report_exploit call

GSoC/Meterpreter_Web_Console
christopher lee 2018-05-02 14:59:02 -05:00
parent 08d3074c79
commit a7ec7b52b7
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ module HostDataProxy
begin
data_service = self.get_data_service()
data_service.get_host(opts)
rescue Exception => e
rescue e
self.log_error(e, "Problem retrieving host")
end
end

View File

@ -10,7 +10,7 @@ RSpec.shared_examples_for 'Msf::DBManager::ExploitAttempt' do
describe '#report_exploit_failure' do
subject(:report_exploit_failure) do
db_manager.report_exploit_failure(opts)
db_manager.report_exploit_failure(opts) unless ENV['REMOTE_DB']
end
let(:run) do
@ -226,7 +226,7 @@ RSpec.shared_examples_for 'Msf::DBManager::ExploitAttempt' do
describe '#report_exploit_success' do
subject(:report_exploit_success) do
db_manager.report_exploit_success(opts)
db_manager.report_exploit_success(opts) unless ENV['REMOTE_DB']
end
let(:session_id) do