Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/bin/sh
  2. #uh
  3.  
  4. disad='https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt'
  5. dismal='https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt'
  6. distra='https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt'
  7. dismvt='https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt'
  8.  
  9. curl $disad $dismal $distra $dismvt >> ~/hosts/data/disconnect-filters/hosts
  10. sed -i -e '/#/d' -e '/ /d' -e '/^$/d' -e 's/^/0.0.0.0 /' ~/hosts/data/disconnect-filters/hosts
  11. sort -u ~/hosts/data/disconnect-filters/hosts -o ~/hosts/data/disconnect-filters/hosts
  12.  
  13. cd ~/hosts || exit
  14. python updateHostsFile.py --auto --replace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement