Skip to content

Instantly share code, notes, and snippets.

@jivoi
Created July 28, 2017 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jivoi/641f1279851d9328d3659fbba99e1f3d to your computer and use it in GitHub Desktop.
Save jivoi/641f1279851d9328d3659fbba99e1f3d to your computer and use it in GitHub Desktop.
Download BH PDFs
#!/bin/bash
curl -s https://www.blackhat.com/us-17/briefings.html | egrep 'https://www.blackhat.com/docs/us-17/.*\.pdf' | awk -F '"' '{ print $4 }' | while read URL;
do
F=$(basename $URL)
if [ ! -r $F ]; then
curl -s -o $F $URL
echo "Scrapped $f"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment