Skip to content

Commit

Permalink
Fixed exception handling to use smb::proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Royce Davis authored and Royce Davis committed Feb 4, 2013
1 parent 8162512 commit 7faaa63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/psexec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def cleanup_after
file_rm(file)
print_good("#{peer} - Deleted #{file}")
end
rescue ::Exception => cleanup_error
rescue Rex::Proto::SMB::Exceptions::ErrorCode => cleanup_error
print_error("#{peer} - Unable to delte #{file}. #{cleanup_error}")
end
end
Expand Down

0 comments on commit 7faaa63

Please sign in to comment.