Skip to content

Instantly share code, notes, and snippets.

@activeshadow
Created January 29, 2015 16:38
Show Gist options
  • Save activeshadow/58c587cd698b77ba614f to your computer and use it in GitHub Desktop.
Save activeshadow/58c587cd698b77ba614f to your computer and use it in GitHub Desktop.
#!/bin/bash
#Standard update from repos.
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
#Update the Exploit Database.
mkdir -p /root/Downloads && cd /root/Downloads
wget https://github.com/offensive-security/exploit-database/archive/master.zip
echo "Quietly unzipping master.zip..."
unzip -qq master.zip
echo "Done unzipping master.zip"
echo "Syncing downloaded exploit database with /usr/share/exploitdb/..."
rsync -a exploit-database-master/ /usr/share/exploitdb/
echo "Done syncing exploit database"
echo "Removing downloaded exploit database..."
rm -rf master.zip exploit-database-master
echo "Done updating!"
Copy link

ghost commented Jan 29, 2015

Thanks. Do you want to create a Downloads directory each time? I already have it in root. When you ran the update script, did you see 404 errors from the sources?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment