tankdthedruid

foobar_plugins.sh

Nov 22nd, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. # Make a directory to contain plugins
  2.  
  3. mkdir ~/Downloads/foobar_plugins
  4.  
  5. # Run lynx dump, use awk to grab http links, grep out lines \view\foo, sort the list and remove duplicate links, and save output to foo_repo.lst
  6.  
  7. lynx -dump http://www.foobar2000.org/components | awk '/http/{print $2}' | grep -E '\/view\/foo' | sort -u > ~/Downloads/foobar_plugins/foo_repo.lst
  8.  
  9. # Change directory to foobar_plugins
  10.  
  11. cd ~/Downloads/foobar_plugins
  12.  
  13. # Run wget scan with a recursive depth of 1, and downloading all files with the .zip extension from foobar_repo.lst
  14.  
  15. wget -e robots=off -r -l1 -nd -A.zip -i foo_repo.lst
Advertisement
Add Comment
Please, Sign In to add comment