-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathblocklist-update.sh
More file actions
65 lines (48 loc) · 2.98 KB
/
blocklist-update.sh
File metadata and controls
65 lines (48 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
cat <<EOF
This script is for use with Transmission or other Bittorrent clients within
Linux. Use with caution, this will not anonymize you, this will help with some
countries or organizations tracking your torrenting traffic, but this is not
a replacement for a VPN. You've been warned!
EOF
echo "##################################################################"
echo "Moving To Centralized Location"
echo "##################################################################"
cd /tmp
echo "##################################################################"
echo "Commensing Download And Extraction Sequence Now"
echo "##################################################################"
wget "http://list.iblocklist.com/?list=gihxqmhyunbxhbmgqrla&fileformat=p2p&archiveformat=gz" -O peerblock1.gz
wget "http://list.iblocklist.com/?list=dufcxgnbjsdwmwctgfuj&fileformat=p2p&archiveformat=gz" -O peerblock2.gz
wget "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz" -O peerblock3.gz
wget "http://list.iblocklist.com/?list=gyisgnzbhppbvsphucsw&fileformat=p2p&archiveformat=gz" -O peerblock4.gz
wget "http://list.iblocklist.com/?list=uwnukjqktoggdknzrhgh&fileformat=p2p&archiveformat=gz" -O peerblock5.gz
wget "http://list.iblocklist.com/?list=plkehquoahljmyxjixpu&fileformat=p2p&archiveformat=gz" -O peerblock6.gz
wget "http://list.iblocklist.com/?list=cwworuawihqvocglcoss&fileformat=p2p&archiveformat=gz" -O peerblock7.gz
wget "http://list.iblocklist.com/?list=xpbqleszmajjesnzddhv&fileformat=p2p&archiveformat=gz" -O peerblock8.gz
wget "http://list.iblocklist.com/?list=llvtlsjyoyiczbkjsxpf&fileformat=p2p&archiveformat=gz" -O peerblock9.gz
wget "http://list.iblocklist.com/?list=ijfqtofzixtwayqovmxn&fileformat=p2p&archiveformat=gz" -O peerblock10.gz
echo "##################################################################"
echo "Extracting"
echo "##################################################################"
gunzip peerblock*.gz
echo "##################################################################"
echo "Merging lists"
echo "##################################################################"
cat peerblock* >> blocklist.bin
echo "##################################################################"
echo "Activating DeDuplication Algorithm"
echo "##################################################################"
awk '!dup[$0]++' blocklist.bin > blocklist.new && mv blocklist.new blocklist.bin
echo "##################################################################"
echo "Finalizing"
echo "##################################################################"
mv blocklist.bin ~/.config/transmission/blocklists/
echo "##################################################################"
echo "Cleaning Up"
echo "##################################################################"
rm peerblock*
echo "##################################################################"
echo "Process Complete"
echo "##################################################################"
exit