From a8a09261e118506d28ecc28b9f24763c961682ac Mon Sep 17 00:00:00 2001 From: Dylan Davis Date: Fri, 11 Nov 2016 21:49:06 -0700 Subject: [PATCH] Use files for rescue error, because left is not available --- modules/auxiliary/admin/smb/psexec_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/admin/smb/psexec_command.rb b/modules/auxiliary/admin/smb/psexec_command.rb index 56e045687b..5648158c9d 100644 --- a/modules/auxiliary/admin/smb/psexec_command.rb +++ b/modules/auxiliary/admin/smb/psexec_command.rb @@ -162,7 +162,7 @@ class MetasploitModule < Msf::Auxiliary begin simple.connect("\\\\#{@ip}\\#{@smbshare}") rescue Rex::Proto::SMB::Exceptions::ErrorCode => accesserror - print_error("Unable to connect for cleanup: #{accesserror}. Maybe you'll need to manually remove #{left.join(", ")} from the target.") + print_error("Unable to connect for cleanup: #{accesserror}. Maybe you'll need to manually remove #{files.join(", ")} from the target.") return end print_status("Executing cleanup...")