Created
January 29, 2015 16:38
-
-
Save activeshadow/58c587cd698b77ba614f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?