Add DCERPC catch exception

bug/bundler_fix
agix 2014-04-01 17:32:15 +02:00 committed by Meatballs
parent 4a575d57ab
commit bc4cb3febf
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ module Exploit::Remote::SMB::Psexec
NDR.wstring(service_description)
begin
response = dcerpc.call(0x25, stubdata)
rescue ::Exception => e
rescue Rex::Proto::DCERPC::Exceptions::Fault => e
print_error("#{peer} - Error changing service description : #{e}")
end
end