Shellcode is part of the payload in the exploitation of a software vulnerability to take control of or exploit a compromised machine.