Update the Exploit-DB Automatically On Backtrack

28 Jul

Time is a valuable thing in penetration testers life.So every pen-tester must know how to automate certain things that will allow him to have time for others most important.Updating the ExploitDB it is a necessary task so we will use a small bash script that will allow us to perform the update in Backtrack automatically.

ExploitDB-Update Code


The function of the above script is pretty simple.It will download the latest archive from the exploit-db website and it will extract it in the /pentest/exploits/exploitdb folder and then it will delete the archive file.

You can see the usage of the script in the screenshot below:

ExploitDB-Update in Action


This is a simple script that will allow you with one command to update your ExploitDB.


Posted by on July 28, 2012 in Coding


Tags: , ,

5 responses to “Update the Exploit-DB Automatically On Backtrack

  1. Adam Maxwell

    July 29, 2012 at 8:32 am

    Spooky, I wrote a similar script a week ago, the only difference is that I set the +x attrib back on the files.csv file. Not sure if it’s needed or not but.. This is my code

    echo “Downloading latest exploit-db archive file”
    wget -O /tmp/archive.tar.bz2
    echo “File successfully downloaded”
    echo “Decompressing archive file to /pentest/exploits/exploitdb/”
    tar -xvjf /tmp/archive.tar.bz2 -C /pentest/exploits/exploitdb/
    echo “Decompression complete, reseting executable properties for files.csv”
    chmod +x /pentest/exploits/exploitdb/files.csv
    echo “Tidying up downloaded file”
    rm /tmp/archive.tar.bz2
    echo “Update complete.”

  2. Sun Tzu

    July 31, 2012 at 11:42 am

    echo ‘***’
    echo ‘***’ “Now Updating Exploit-DB.”
    echo ‘***’
    wget -U ‘Mozilla/5.0’ -O /tmp/archive.tar.bz2
    tar -xjf /tmp/archive.tar.bz2 -C /pentest/exploits/exploitdb/
    rm -f /tmp/archive.tar.bz2
    echo ‘***’
    echo ‘***’ “Exploit-DB Update Has Completed.”
    echo ‘***’

  3. lkafle

    August 3, 2012 at 3:07 am

    Reblogged this on lava kafle kathmandu nepal.

  4. SearchSploit

    December 7, 2012 at 4:30 am

    What updates the “files.csv” file?
    You know, the one on which searchsploit depends?

  5. TiM

    December 22, 2012 at 12:34 pm

    ## The simple way to update exploitdb (and save you some bandwidth) is to do the following
    cd /pentest/exploits/exploitdb/
    svn update

    # feel free to through in as many echo “some information” as you feel is needed.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: