How to do it...

Let's assume we have shell access to a machine. Now, follow these steps to get started:

  1. We will run ifconfig and find that the machine is connected to two other networks internally:

  1. 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.
  1. 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:

  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.247.31