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

We will now launch DirtyCOW against a Linux machine:

  1. Open up a terminal window by clicking on the terminal icon: 
  2. Enter the following commands to download our DirtyCOW exploit:
cd <enter>wget https://github.com/FireFart/dirtycow/raw/master/dirty.c <enter>nano dirty.c <enter>
  1. From within nano, look for the section struct Userinfo user; and change the user.username to "dirtycow":
nano interface
  1. Now we will send over the C code to our Metasploitable machine for compiling.
I will use the same username and password I created ...

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