Use files for rescue error, because left is not available

bug/bundler_fix
Dylan Davis 2016-11-11 21:49:06 -07:00
parent db32c5fdcc
commit a8a09261e1
1 changed files with 1 additions and 1 deletions

View File

@ -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...")