Common (reverse) shells

Python Shell (Linux only)

python -c 'import pty;pty.spawn("/bin/bash")' (Alternative: python3)

Metasploit / MSFVenom reverse_shell payloads

This is a list of payloads for Metasploit/MSFVenom that generate a reverse shell when successfully executed. Linux payloads generally have an .elf file extension, while Windows payloads have an .exe file extension.

Operating System

Architecture

Payload

Staged?

Meterpreter?

Windows

x86

windows/shell/reverse_tcp

Yes

No

Windows

x64

windows/x64/shell_reverse_tcp

Yes

No

Windows

x86/x64

windows/shell_reverse_tcp

No

No

Linux

x86

linux/x86/shell/reverse_tcp

Yes

No

Linux

x64

linux/x64/shell/reverse_tcp

Yes

No

Linux

x86

linux/x86/shell_reverse_tcp

No

No

Linux

x64

linux/x64/shell_reverse_tcp

No

No

.ASP (Web)

N/A

windows/shell/reverse_tcp

No

No

.JSP (Web)

N/A

java/jsp_shell_reverse_tcp

No

No

.WAR (Web)

N/A

java/jsp_shell_reverse_tcp

No

No

.PHP

N/A

php/reverse_php

No

No

โ€‹

โ€‹