Skip to content

Commit a8a0926

Browse files
committed
Use files for rescue error, because left is not available
1 parent db32c5f commit a8a0926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/smb/psexec_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def cleanup_after(*files)
162162
begin
163163
simple.connect("\\\\#{@ip}\\#{@smbshare}")
164164
rescue Rex::Proto::SMB::Exceptions::ErrorCode => accesserror
165-
print_error("Unable to connect for cleanup: #{accesserror}. Maybe you'll need to manually remove #{left.join(", ")} from the target.")
165+
print_error("Unable to connect for cleanup: #{accesserror}. Maybe you'll need to manually remove #{files.join(", ")} from the target.")
166166
return
167167
end
168168
print_status("Executing cleanup...")

0 commit comments

Comments
 (0)