From 9b7c19db087e7202f6e5d64ce2f1ab5168e837cf Mon Sep 17 00:00:00 2001 From: zerosum0x0 Date: Mon, 29 Jan 2018 07:57:08 -0700 Subject: [PATCH] fix exception --- lib/msf/core/exploit/smb/client/psexec_ms17_010.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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