Let's assume we have shell access to a machine. Now, follow these steps to get started:
- We will run ifconfig and find that the machine is connected to two other networks internally:
- Now, we will Nmap scan the network and find some machines with a couple of ports open. We will learn about a cool way of pivoting into the network so that we can access the applications running behind other networks on our machine.
- We will do an ssh port forward by using the following command:
ssh -L <our port> <remote ip> <remote port> username@IP
The output of running the preceding command is shown in the following screenshot:
- Once you've done the port forward, open any browser and visit the port number we used:
We will have access to the application running on the remote host.