Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Note: You will probably have to turn some of these off, since the new iblocklist limiting downloads...
- #Finds who the user is for the directory to use below
- USER=$(whoami)
- #Directory variable to keep it clean
- DIR="/home/$USER/.config/transmission/blocklists"
- #A bunch of Wgets to iblocklist, I had problems after testing the script with it seeing me as wget for some of them so im hoping the useragent will help
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_level2&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_dshield&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_edu&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_level3&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_bogon&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_spyware&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=bt_hijacked&fileformat=p2p&archiveformat=gz
- wget -q -U "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36" -P $DIR http://list.iblocklist.com/?list=jcjfaxgyyshvdbceroxf&fileformat=p2p&archiveformat=gz
- #Give the lists time to download
- sleep 15
- #The files don't download cleanly so this chops off the beginning portions to that transmission makes the proper bin files
- for file in $DIR/*
- do
- mv "$file" $DIR/"`echo ${file}.gz|cut -d "=" -f 2`"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement