O'Reilly logo

Kali Linux Cookbook - Second Edition by Bob Perciaccante, Corey P. Schultz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

In this recipe we will try and discover a vulnerability that will allow us to escalate privileges in linux:

  1. Log in to the Metasploitable machine with the username msfadmin and password msfadmin.
  1. From the terminal prompt of the Metasploitable machine, run the following commands:
cd <enter>wget http://www.securitysift.com/download/linuxprivchecker.py <enter>python ./linuxprivchecker.py >> vulns.txt <enter>tail --lines=50 vulns.txt |more <enter>
  1. You can now scroll through a list of vulnerabilities that can be used against this machine to provide privilege escalation:
 Metasploitable console output
  1. From here, you can use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required