Skip to content

Commit bc4cb3f

Browse files
agixMeatballs1
authored andcommitted
Add DCERPC catch exception
1 parent 4a575d5 commit bc4cb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/smb/psexec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def psexec(command, disconnect=true, service_description=nil)
112112
NDR.wstring(service_description)
113113
begin
114114
response = dcerpc.call(0x25, stubdata)
115-
rescue ::Exception => e
115+
rescue Rex::Proto::DCERPC::Exceptions::Fault => e
116116
print_error("#{peer} - Error changing service description : #{e}")
117117
end
118118
end

0 commit comments

Comments
 (0)