We will now launch DirtyCOW against a Linux machine:
- Open up a terminal window by clicking on the terminal icon:
- 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>
- From within nano, look for the section struct Userinfo user; and change the user.username to "dirtycow":
- Now we will send over the C code to our Metasploitable machine for compiling.
I will use the same username and password I created ...