How to do it...

We will now elevate privileges in Linux:

  1. Start by finding the IP address of the VulnOS2 image – we can use a simple nmap scan to find it. Open a terminal window by clicking on the terminal icon.
  2. Enter the following commands to run a quick nmap for the host-only network of 192.168.56.0/24:
nmap -T4 -F 192.168.56.0/24
  1. From our output, we can see that the address of the machine is 192.168.56.104:
Kali console output
We are going to use this exploit through SSH access to the device. Local access to the device will work; however, ...

Get Kali Linux Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.