We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a0926 commit e5d3289Copy full SHA for e5d3289
modules/auxiliary/admin/smb/psexec_command.rb
@@ -99,9 +99,9 @@ def execute_command(text, bat)
99
print_status("Executing the command...")
100
begin
101
return psexec(execute)
102
- 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
103
elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}", 'rex', LEV_3)
104
- print_error("Unable to execute specified command: #{exec_command_error}")
+ print_error("Unable to execute specified command: #{e}")
105
return false
106
end
107
0 commit comments