Skip to content

Commit 7faaa63

Browse files
Royce DavisRoyce Davis
authored andcommitted
Fixed exception handling to use smb::proto
1 parent 8162512 commit 7faaa63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/psexec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def cleanup_after
180180
file_rm(file)
181181
print_good("#{peer} - Deleted #{file}")
182182
end
183-
rescue ::Exception => cleanup_error
183+
rescue Rex::Proto::SMB::Exceptions::ErrorCode => cleanup_error
184184
print_error("#{peer} - Unable to delte #{file}. #{cleanup_error}")
185185
end
186186
end

0 commit comments

Comments
 (0)