shellcode
termhackingsecurity
A small, self-contained piece of machine code an exploit runs, classically to open a shell.
Shellcode is written to be compact and position-independent because it executes in whatever cramped space the exploit gives it. The name is historical, its job today may be anything, but the craft, tiny code that runs from nowhere, is the same.
Also known as: shell code