Assignment Goals (SLAE-1530)
-
Take up at least 3 shellcode samples created using Msfpayload for Linux/x86.
-
Use GDB/Ndisasm/Libemu to dissect the functionality of the shellcode.
-
Present your analysis.
Shellcode Candidates
We will use Msfvenom
from Metasploit Framework to generate three different payloads for Linux x86-32.
We can easily enumerate payloads for this architecture and operating system using the following command:
local@user:$ msfvenom -l payloads | grep "linux/x86"
We decided to use the three following payloads:
linux/x86/read_file
linux/x86/chmod
linux/x86/exec