Skip to content

Instantly share code, notes, and snippets.

@prestelpirate
Created August 12, 2019 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestelpirate/feb34369248875b55d643b4ee6b192c2 to your computer and use it in GitHub Desktop.
Save prestelpirate/feb34369248875b55d643b4ee6b192c2 to your computer and use it in GitHub Desktop.
Download and unpack all issues of Phrack
#!/bin/bash
# Current issue is 69, cycle through everything since issue 1
# Create a subdirectory to stash the files in
# and make sure the downloaded archive is removed once done
for i in {1..69}
do
FILE="phrack${i}.tar.gz"
mkdir ${i}
cd ${i}
wget http://phrack.org/archives/tgz/${FILE}
tar xvzf ${FILE}
rm ${FILE}
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment