Advertisement
AlecsD

FilterCheck_V1_Full

Oct 20th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.74 KB | None | 0 0
  1. #!/bin/bash
  2. ################ Advertising Lists
  3. #################### AdguardDNS
  4. wget -O ~/lists/AdFilter-AdguardDNS.txt https://v.firebog.net/hosts/AdguardDNS.txt
  5.  
  6. echo '# Ad filter list by Adguard' > ~/lists/on/AdFilter-AdguardDNS.txt
  7. echo '# Filter by Alecs Denton' >> ~/lists/on/AdFilter-AdguardDNS.txt
  8. echo '# https://v.firebog.net/hosts/AdguardDNS.txt' >> ~/lists/on/AdFilter-AdguardDNS.txt
  9. echo '# License: GPL v3' >> ~/lists/on/AdFilter-AdguardDNS.txt
  10. echo '' >> ~/lists/on/AdFilter-AdguardDNS.txt
  11.  
  12. echo '# DEAD Links from AdguardDNS Filter List' > ~/lists/off/AdFilter-AdguardDNS.txt
  13. echo '# Ad filter list by Adguard' >> ~/lists/off/AdFilter-AdguardDNS.txt
  14. echo '# Filter by Alecs Denton' >> ~/lists/off/AdFilter-AdguardDNS.txt
  15. echo '# https://v.firebog.net/hosts/AdguardDNS.txt' >> ~/lists/off/AdFilter-AdguardDNS.txt
  16. echo '# License: GPL v3' >> ~/lists/off/AdFilter-AdguardDNS.txt
  17. echo '' >> ~/lists/off/AdFilter-AdguardDNS.txt
  18.  
  19. # Run
  20. bash ~/scripts/check.sh ~/lists/AdFilter-AdguardDNS.txt
  21.  
  22. cat ~/online.txt >> ~/lists/on/AdFilter-AdguardDNS.txt
  23. cat ~/offline.txt  >> ~/lists/off/AdFilter-AdguardDNS.txt
  24.  
  25. # Clear the Cache-Files
  26. rm ~/lists/*000000*
  27. rm ~/online.txt
  28. rm ~/offline.txt
  29.  
  30. #################### Anudeep Anudeep's Blacklist
  31. wget -O ~/lists/in_AdFilter-AnudeepBL.txt https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
  32.  
  33. # Replace
  34. sed 's/0.0.0.0 //g' ~/lists/in_AdFilter-AnudeepBL.txt > ~/lists/AdFilter-AnudeepBL.txt
  35. rm ~/lists/in_AdFilter-AnudeepBL.txt
  36.  
  37. echo '# Facebook Ad filter list by Anudeep' > ~/lists/on/AdFilter-AnudeepBL.txt
  38. echo '# Filter by Alecs Denton' >> ~/lists/on/AdFilter-AnudeepBL.txt
  39. echo '# More Infos: https://github.com/anudeepND' >> ~/lists/on/AdFilter-AnudeepBL.txt
  40. echo '# https://raw.githubusercontent.com/anudeepND/blacklist/master/facebook.txt' >> ~/lists/on/AdFilter-AnudeepBL.txt
  41. echo '# License: GPL v3' >> ~/lists/on/AdFilter-AnudeepBL.txt
  42. echo '' >> ~/lists/on/AdFilter-AnudeepBL.txt
  43.  
  44. echo '# DEAD Links from AnudeepBL Filter List' > ~/lists/off/AdFilter-AnudeepBL.txt
  45.  
  46. # Run
  47. bash ~/scripts/check.sh ~/lists/AdFilter-AnudeepBL.txt
  48.  
  49. cat ~/online.txt >> ~/lists/on/AdFilter-AnudeepBL.txt
  50. cat ~/offline.txt  >> ~/lists/off/AdFilter-AnudeepBL.txt
  51.  
  52. # Clear the Cache-Files
  53. rm ~/lists/*000000*
  54. rm ~/online.txt
  55. rm ~/offline.txt
  56.  
  57. #################### Anudeep Facebook
  58. wget -O ~/lists/in_AdFilter-AnudeepFB.txt https://raw.githubusercontent.com/anudeepND/blacklist/master/facebook.txt
  59.  
  60. # Replace
  61. sed 's/0.0.0.0 //g' ~/lists/in_AdFilter-AnudeepFB.txt > ~/lists/AdFilter-AnudeepFB.txt
  62. rm ~/lists/in_AdFilter-AnudeepFB.txt
  63.  
  64. echo '# Facebook Ad filter list by Anudeep' > ~/lists/on/AdFilter-AnudeepFB.txt
  65. echo '# Filter by Alecs Denton' >> ~/lists/on/AdFilter-AnudeepFB.txt
  66. echo '# More Infos: https://github.com/anudeepND' >> ~/lists/on/AdFilter-AnudeepFB.txt
  67. echo '# https://raw.githubusercontent.com/anudeepND/blacklist/master/facebook.txt' >> ~/lists/on/AdFilter-AnudeepFB.txt
  68. echo '# License: GPL v3' >> ~/lists/on/AdFilter-AnudeepFB.txt
  69. echo '' >> ~/lists/on/AdFilter-AnudeepFB.txt
  70.  
  71. echo '# DEAD Links from AnudeepFB Filter List' > ~/lists/off/AdFilter-AnudeepFB.txt
  72.  
  73. # Run
  74. bash ~/scripts/check.sh ~/lists/AdFilter-AnudeepFB.txt
  75.  
  76. cat ~/online.txt >> ~/lists/on/AdFilter-AnudeepFB.txt
  77. cat ~/offline.txt  >> ~/lists/off/AdFilter-AnudeepFB.txt
  78.  
  79. # Clear the Cache-Files
  80. rm ~/lists/*000000*
  81. rm ~/online.txt
  82. rm ~/offline.txt
  83.  
  84. #################### Disconnect
  85. wget -O ~/lists/AdFilter-Disconnect.txt https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  86.  
  87. echo '# Ad filter list by Disconnect' > ~/lists/on/AdFilter-Disconnect.txt
  88. echo '# Filter by Alecs Denton' >> ~/lists/on/AdFilter-Disconnect.txt
  89. echo '# https://v.firebog.net/hosts/AdguardDNS.txt' >> ~/lists/on/AdFilter-Disconnect.txt
  90. echo '# License: GPL v3' >> ~/lists/on/AdFilter-Disconnect.txt
  91. echo '' >> ~/lists/on/AdFilter-Disconnect.txt
  92.  
  93. echo '# DEAD Links from Disconnect Filter List' > ~/lists/off/AdFilter-Disconnect.txt
  94.  
  95. # Run
  96. bash ~/scripts/check.sh ~/lists/AdFilter-Disconnect.txt
  97.  
  98. cat ~/online.txt >> ~/lists/on/AdFilter-Disconnect.txt
  99. cat ~/offline.txt  >> ~/lists/off/AdFilter-Disconnect.txt
  100.  
  101. # Clear the Cache-Files
  102. rm ~/lists/*000000*
  103. rm ~/online.txt
  104. rm ~/offline.txt
  105.  
  106. #################### Easylist
  107. wget -O ~/lists/AdFilter-Easylist.txt https://v.firebog.net/hosts/Easylist.txt
  108.  
  109. echo '# Ad filter list by Easylist' > ~/lists/on/AdFilter-Easylist.txt
  110. echo '# Filter by Alecs Denton' >> ~/lists/on/AdFilter-Easylist.txt
  111. echo '# https://v.firebog.net/hosts/Easylist.txt' >> ~/lists/on/AdFilter-Easylist.txt
  112. echo '# License: GPL v3' >> ~/lists/on/AdFilter-Easylist.txt
  113. echo '' >> ~/lists/on/AdFilter-Easylist.txt
  114.  
  115. echo '# DEAD Links from Easylist Filter List' > ~/lists/off/AdFilter-Easylist.txt
  116. echo '# Ad filter list by Easylist' >> ~/lists/off/AdFilter-Easylist.txt
  117. echo '# Filter by Alecs Denton' >> ~/lists/off/AdFilter-Easylist.txt
  118. echo '# https://v.firebog.net/hosts/Easylist.txt' >> ~/lists/off/AdFilter-Easylist.txt
  119. echo '# License: GPL v3' >> ~/lists/off/AdFilter-Easylist.txt
  120. echo '' >> ~/lists/off/AdFilter-Easylist.txt
  121.  
  122. # Run
  123. bash ~/scripts/check.sh ~/lists/AdFilter-Easylist.txt
  124.  
  125. cat ~/online.txt >> ~/lists/on/AdFilter-Easylist.txt
  126. cat ~/offline.txt  >> ~/lists/off/AdFilter-Easylist.txt
  127.  
  128. # Clear the Cache-Files
  129. rm ~/lists/*000000*
  130. rm ~/online.txt
  131. rm ~/offline.txt
  132.  
  133. ################ Tracking & Telemetry Lists
  134. #################### Easyprivacy
  135. wget -O ~/lists/Privacy-Easyprivacy.txt https://v.firebog.net/hosts/Easyprivacy.txt
  136.  
  137. echo '# Privacy Filter list by Easyprivacy' > ~/lists/on/Privacy-Easyprivacy.txt
  138. echo '# Filter by Alecs Denton' >> ~/lists/on/Privacy-Easyprivacy.txt
  139. echo '# https://v.firebog.net/hosts/Easyprivacy.txt' >> ~/lists/on/Privacy-Easyprivacy.txt
  140. echo '# License: GPL v3' >> ~/lists/on/Privacy-Easyprivacy.txt
  141. echo '' >> ~/lists/on/Privacy-Easyprivacy.txt
  142.  
  143. echo '# DEAD Links from Easyprivacy Filter List' > ~/lists/off/Privacy-Easyprivacy.txt
  144. echo '# Privacy filter list by Easyprivacy' >> ~/lists/off/Privacy-Easyprivacy.txt
  145. echo '# Filter by Alecs Denton' >> ~/lists/off/Privacy-Easyprivacy.txt
  146. echo '# https://v.firebog.net/hosts/Easyprivacy.txt' >> ~/lists/off/Privacy-Easyprivacy.txt
  147. echo '# License: GPL v3' >> ~/lists/off/Privacy-Easyprivacy.txt
  148. echo '' >> ~/lists/off/Privacy-Easyprivacy.txt
  149.  
  150. # Run
  151. bash ~/scripts/check.sh ~/lists/Privacy-Easyprivacy.txt
  152.  
  153. cat ~/online.txt >> ~/lists/on/Privacy-Easyprivacy.txt
  154. cat ~/offline.txt  >> ~/lists/off/Privacy-Easyprivacy.txt
  155.  
  156. # Clear the Cache-Files
  157. rm ~/lists/*000000*
  158. rm ~/online.txt
  159. rm ~/offline.txt
  160.  
  161. ################### WindowsSpyBlocker
  162. wget -O ~/lists/in_Privacy-WindowsSpy.txt https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
  163.  
  164. # Replace
  165. sed 's/0.0.0.0 //g' ~/lists/in_Privacy-WindowsSpy.txt > ~/lists/Privacy-WindowsSpy.txt
  166. rm ~/lists/in_Privacy-WindowsSpy.txt
  167.  
  168. echo '# Privacy Filter list by WindowsSpy' > ~/lists/on/Privacy-WindowsSpy.txt
  169. echo '# Filter by Alecs Denton' >> ~/lists/on/Privacy-WindowsSpy.txt
  170. echo '# https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt' >> ~/lists/on/Privacy-WindowsSpy.txt
  171. echo '# License: GPL v3' >> ~/lists/on/Privacy-WindowsSpy.txt
  172. echo '' >> ~/lists/on/Privacy-WindowsSpy.txt
  173.  
  174. echo '# DEAD Links from WindowsSpy Filter List' > ~/lists/off/Privacy-WindowsSpy.txt
  175.  
  176. # Run
  177. bash ~/scripts/check.sh ~/lists/Privacy-WindowsSpy.txt
  178.  
  179. cat ~/online.txt >> ~/lists/on/Privacy-WindowsSpy.txt
  180. cat ~/offline.txt  >> ~/lists/off/Privacy-WindowsSpy.txt
  181.  
  182. # Clear the Cache-Files
  183. rm ~/lists/*000000*
  184. rm ~/online.txt
  185. rm ~/offline.txt
  186.  
  187. ################ Malicious Lists
  188. ################### Prigent Malware
  189. wget -O ~/lists/Malware-Prigent.txt https://v.firebog.net/hosts/Prigent-Malware.txt
  190.  
  191. echo '# Malware Filter list by Prigent' > ~/lists/on/Malware-Prigent.txt
  192. echo '# Filter by Alecs Denton' >> ~/lists/on/Malware-Prigent.txt
  193. echo '# https://v.firebog.net/hosts/Prigent-Malware.txt' >> ~/lists/on/Malware-Prigent.txt
  194. echo '# License: GPL v3' >> ~/lists/on/Malware-Prigent.txt
  195. echo '' >> ~/lists/on/Malware-Prigent.txt
  196.  
  197. echo '# DEAD Links from Prigent Malware Filter List' > ~/lists/off/Malware-Prigent.txt
  198. echo '# Malware Filter list by Prigent' > ~/lists/off/Malware-Prigent.txt
  199. echo '# Filter by Alecs Denton' >> ~/lists/off/Malware-Prigent.txt
  200. echo '# https://v.firebog.net/hosts/Prigent-Malware.txt' >> ~/lists/off/Malware-Prigent.txt
  201. echo '# License: GPL v3' >> ~/lists/off/Malware-Prigent.txt
  202. echo '' >> ~/lists/off/Malware-Prigent.txt
  203.  
  204. # Run
  205. bash ~/scripts/check.sh ~/lists/Malware-Prigent.txt
  206.  
  207. cat ~/online.txt >> ~/lists/on/Malware-Prigent.txt
  208. cat ~/offline.txt  >> ~/lists/off/Malware-Prigent.txt
  209.  
  210. # Clear the Cache-Files
  211. rm ~/lists/*000000*
  212. rm ~/online.txt
  213. rm ~/offline.txt
  214.  
  215. ################### Prigent Phishing
  216. wget -O ~/lists/Phishing-Prigent.txt https://v.firebog.net/hosts/Prigent-Phishing.txt
  217.  
  218. echo '# Phishing Filter list by Prigent' > ~/lists/on/Phishing-Prigent.txt
  219. echo '# Filter by Alecs Denton' >> ~/lists/on/Phishing-Prigent.txt
  220. echo '# https://v.firebog.net/hosts/Prigent-Phishing.txt' >> ~/lists/on/Phishing-Prigent.txt
  221. echo '# License: GPL v3' >> ~/lists/on/Phishing-Prigent.txt
  222. echo '' >> ~/lists/on/Phishing-Prigent.txt
  223.  
  224. echo '# DEAD Links from Prigent Phishing Filter List' > ~/lists/off/Phishing-Prigent.txt
  225. echo '# Phishing Filter list by Prigent' > ~/lists/off/Phishing-Prigent.txt
  226. echo '# Filter by Alecs Denton' >> ~/lists/off/Phishing-Prigent.txt
  227. echo '# https://v.firebog.net/hosts/Prigent-Phishing.txt' >> ~/lists/off/Phishing-Prigent.txt
  228. echo '# License: GPL v3' >> ~/lists/off/Phishing-Prigent.txt
  229. echo '' >> ~/lists/off/Phishing-Prigent.txt
  230.  
  231. # Run
  232. bash ~/scripts/check.sh ~/lists/Phishing-Prigent.txt
  233.  
  234. cat ~/online.txt >> ~/lists/on/Phishing-Prigent.txt
  235. cat ~/offline.txt  >> ~/lists/off/Phishing-Prigent.txt
  236.  
  237. # Clear the Cache-Files
  238. rm ~/lists/*000000*
  239. rm ~/online.txt
  240. rm ~/offline.txt
  241.  
  242. ################### Phishing Army
  243. wget -O ~/lists/Phishing-Army.txt https://phishing.army/download/phishing_army_blocklist_extended.txt
  244.  
  245. echo '# Phishing Filter list by Phishing Army' > ~/lists/on/Phishing-Army.txt
  246. echo '# Filter by Alecs Denton' >> ~/lists/on/Phishing-Army.txt
  247. echo '# https://phishing.army/download/phishing_army_blocklist_extended.txt' >> ~/lists/on/Phishing-Army.txt
  248. echo '# License: GPL v3' >> ~/lists/on/Phishing-Army.txt
  249. echo '' >> ~/lists/on/Phishing-Army.txt
  250.  
  251. echo '# DEAD Links from Army Phishing Filter List' > ~/lists/off/Phishing-Army.txt
  252.  
  253. # Run
  254. bash ~/scripts/check.sh ~/lists/Phishing-Army.txt
  255.  
  256. cat ~/online.txt >> ~/lists/on/Phishing-Army.txt
  257. cat ~/offline.txt  >> ~/lists/off/Phishing-Army.txt
  258.  
  259. # Clear the Cache-Files
  260. rm ~/lists/*000000*
  261. rm ~/online.txt
  262. rm ~/offline.txt
  263.  
  264. ######## Ad Filter Lists Uploaden
  265. bash ~/scripts/ftp.sh
  266.  
  267. touch ~/fin.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement