How it works...
msfvenom helps us create payloads from the extensive list of Metasploit's payloads, and incorporates them into source code in many languages, or creates scripts and executable files, as we did in this recipe. The parameters we used here were the payload to use (linux/x86/meterpreter/reverse_tcp), the host and port to connect back (lhost and lport), and the output format (-f elf), redirecting the standard output to a file to have it saved as cute_dolphin.bin.
The exploit/multi/handler module of Metasploit is a payload handler. This means it doesn't actually perform any exploitation; instead it only processes connections with payloads executed in compromised hosts. In this case, we used it to listen for the connection and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access