How to do it...

  1. The first step of rooting any box would be to check whether there are any publicly available local root exploits.
  2. We can use scripts such as Linux Exploit Suggester for this. It is a script that's built in Perl. We can specify the kernel version and it will show us the possible publicly available exploits we can use to gain root privileges.
  3. The script can be downloaded by using the following command:
git clone https://github.com/PenturaLabs/Linux_Exploit_Suggester.git 

We can see the Linux Exploit Suggester in the following screenshot:

  1. Now, we will browse into the directory using the cd command:
cd Linux_Exploit_Suggester/ ...

Get Kali Linux - An Ethical Hacker's 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.