Cross Distribution Exploit Testing: 2 Part

Last month we published a post about a tool we were using:

One of the things that limited us a bit the first time around was that we were working with Docker. Not all the vulnerabilities can be tested using the first version of the tool, because kernel's related problems can't be exploited inside Docker.

To improve upon this, we made some changes and we incorporated Vagrant, which lets us try basically any vulnerability as we already have a complete virtual environment.

In the following example, we would execute the "id" command within the different VMs, specifying the variable "distros".

./ -c id

We have to run this command in the following distros:

distros = [
           {'name' :'centos/7',

           {'name' :'ubuntu/vivid64',

           {'name' :'ubuntu/trusty64',
           {'name' :'debian/jessie64',
           {'name' :'debian/wheezy64',

In the following demo we will use the exploit ofs.c for the vulnerability CVE-2015-1328 in different distributions of Ubuntu:

We are going to use other repositories except for the last one as Ubuntu already has the last parches in its VM.
This new version we can find in

After a few tests, it's important not forget the following commands so you can do cleanings:

$ vagrant box list  #list of vms in our local repository
$ vagrant box remove "vmname" #eliminates the specific vm
$ vagrant destroy #eliminates vm for the local directory, if por some reason we were to cancel the executtion of, we recommend running this command as it possible that there still is a VM in the repository.

This tool can also be used (like we did in our case) for doing cross distribution testing for functionalities, installation and for setting up Faraday in different environments

Hopefully you found this useful.
Post a Comment
Thanks for your comment