What is Shellcode?

Shellcode is defined as a set of instructions injected and then executed by an exploit. It is used to directly manipulate the logs and functionality of an exploit, even ensuring a shell on the target machine, being its main purpose and many harnessing the codename shell to this, but maybe it turns out to be just an idea.

It is a type of code which attacket/hacker use to exploit a variety of software vulnerabilities.