Results 1 to 4 of 4

Thread: update-exploitdb

  1. #1
    Just burned his ISO
    Join Date
    Nov 2009
    Posts
    1

    Default update-exploitdb

    Update-exploitdb script similar to update-milw0rm, but for the new exploit repository at offsec. Replace hxxp with http before using.

    Code:
    #!/bin/bash
    # update-exploitdb script
    # by nick <nick [-at-] executionflow.org>
    
    archive_file='archive.tar.bz2'
    archive_url="http://exploits.offensive-security.com/${archive_file}"
    db_directory='exploitdb'
    
    echo "Backing up old"
    mv -vf ${archive_file} ${archive_file}.old 
    
    wget ${archive_url}
    
    if [ ${?} -eq 0 ] && [ -e ${archive_file} ]; then
    	echo "Backing up old directory"
    	mv -vf ${db_directory} ${db_directory}.old 
    
    	echo "Unarchiving to ${db_directory}"
    	mkdir ${db_directory}
    	cd ${db_directory} && tar jxf ../${archive_file}
    	
    	if [ ${?} -eq 0 ]; then
    		echo "Removing ${archive_file}.old and ${db_directory}.old"
    		cd .. && rm -rf ${archive_file}.old ${db_directory}.old
    	fi
    fi

  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    I fixed the url for you in the script.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  3. #3
    Developer muts's Avatar
    Join Date
    Jan 2006
    Posts
    272

    Default Updated Exploit DB

    check :
    http://www.offensive-security.com/bl...it-db-updates/

    svn co svn://devel.offensive-security.com/exploitdb

  4. #4
    Just burned his ISO Wolfheart's Avatar
    Join Date
    Dec 2009
    Posts
    19

    Default

    Hmm I got this when running your script

    tar: platforms: implausibly old time stamp 1969-12-31 16:00:00
    tar: files.csv: implausibly old time stamp 1969-12-31 16:00:00


    Hmmm 1969.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •