diff --git a/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb b/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb index 9e4ca6b95d..1eea64c600 100644 --- a/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb +++ b/lib/msf/core/exploit/smb/client/psexec_ms17_010.rb @@ -76,7 +76,7 @@ module Exploit::Remote::SMB::Client::Psexec_MS17_010 end disconnect # also disconnect trees and logoff?? - rescue => ::Rex::Proto::SMB::Exceptions::NoReply + rescue ::Rex::Proto::SMB::Exceptions::NoReply => e # pass # it's fine. rescue => error