An exploit is a code that maliciously takes advantage of the security flaws or vulnerabilities in software or hardware to initiate a denial-of-service(DoS) attack.