irenicus09

Phrack Downloader

Oct 21st, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.86 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. #########################################
  4. #                   #
  5. # PhrackDownloader.sh           #
  6. #                   #
  7. # Coded by Irenicus09           #
  8. #                   #
  9. # Required Tools: wget, tar     #
  10. #                   #
  11. #########################################
  12.  
  13.  
  14. # Edit this to control issue downloaded
  15. starting=1;
  16. limit=68;
  17.  
  18. count=$starting;
  19.  
  20. # Download path
  21. path="$HOME/Phrack";
  22.  
  23. # Setting up folders
  24. mkdir -p $path;
  25.  
  26. # Changing to specified directory
  27. cd $path;
  28.  
  29. echo "[!] Downloading contents..";
  30.  
  31. while [ $count -le $limit ]
  32. do
  33.     wget -c "http://www.phrack.org/archives/tgz/phrack$count.tar.gz";
  34.     let count++;
  35. done
  36.  
  37. echo "[+] All files downloaded successfully!";
  38.  
  39. echo "[!] Extracting please wait..";
  40.  
  41. count=$starting;
  42.  
  43. while [ $count -le $limit ]
  44. do
  45.     tar -xvf "phrack$count.tar.gz";
  46.     let count++;
  47. done
  48.  
  49. rm -rf *.tar.gz;
  50.  
  51. echo "[+] All tasks completed successfully!";
  52. exit 0;
Add Comment
Please, Sign In to add comment