MSFvenom Cheatsheet
How to Install MSFvenom
MSFvenom is part of the Metasploit Framework. Install Metasploit to get MSFvenom:
Useful Commands for MSFvenom
-p [payload]: Specify the payload to use
-f [format]: Specify the output format (e.g., exe, elf, raw)
-o [options]: List all available options for the selected payload
-e [encoder]: Specify the encoder to use
-i [iterations]: Specify the number of iterations for encoding
-b [badchars]: Specify bad characters to avoid
-a [architecture]: Specify the architecture (e.g., x86, x64)
-p linux/x86/meterpreter/reverse_tcp: Generate a reverse TCP payload for Linux x86
-l payloads: List available payloads
-l encoders: List available encoders
-l formats: List available formats
Examples of MSFvenom Commands
Create a Windows reverse TCP shell payload:
Create a Linux reverse TCP shell payload:
Encode a payload to avoid detection:
Generate a payload with specified bad characters:
List available payloads:
List available encoders: