Local escalation

In this section, we are going to use a local exploit to escalate our privilege.

To demonstrate this, we will use the following virtual machines:

  • Metasploitable 2 as our victim machine
  • Kali Linux as our attacking machine

First, we will identify the open network services available on the victim machine. For this, we utilize the Nmap port scanner with the following command:

nmap -p- 172.16.43.156

We configure Nmap to scan for all of the ports (from port 1 to port 65,535) using the -p- option.

The following screenshot shows the brief result of the preceding command:

After doing some research on the internet, we found that the ...

Get Kali Linux 2018: Assuring Security by Penetration Testing - Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.