Port Forwarding

SSH

  • Method 1:

On Kali machine:
 sudo systemctl start ssh
 nano /etc/proxychains.conf
  # Append socks5 127.0.0.1 <port>
  # Append proxychains infront of any command targeted at the internal network moving forward

On Victim machine:
 ssh -N -R <port> kali@192.168.45.x

  • Method 2:

ssh <user>@<IP> -L <port>:127.0.0.1:<port>
 # Target 127.0.0.1:<port> to access the target machine's "hidden" port

Chisel

Ligolo-ng

  1. Set up ligolo

  1. Initiate tunnel

  • Now you can reach the internal network directly like is just part of your network

  • Just that the internal machines are talking to your proxy (pivot point) instead of directly to you

Last updated