An exploit is a piece of code or program used to take advantage of a vulnerability in a system or application.