Exploit

A piece of code that exploits bugs or vulnerabilities in software or hardware to gain access a system or network.