Fix name for exception

bug/bundler_fix
wchen-r7 2016-11-15 12:14:58 -06:00
parent a8a09261e1
commit e5d3289c18
1 changed files with 2 additions and 2 deletions

View File

@ -99,9 +99,9 @@ class MetasploitModule < Msf::Auxiliary
print_status("Executing the command...")
begin
return psexec(execute)
rescue Rex::Proto::DCERPC::Exceptions::Error, Rex::Proto::SMB::Exceptions::Error => exec_command_error
rescue Rex::Proto::DCERPC::Exceptions::Error, Rex::Proto::SMB::Exceptions::Error => e
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}", 'rex', LEV_3)
print_error("Unable to execute specified command: #{exec_command_error}")
print_error("Unable to execute specified command: #{e}")
return false
end
end