Advertisement
noes1s

BlackBuntu's Hosts Defense

Jun 20th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | None | 0 0
  1. #!/bin/bash
  2. #  ,___    
  3. #  ¡  _`    BlackBuntu's Hosts Defense
  4. #  ª_/()    noes1s
  5. #  |\` `,   http://pastebin.com/u/noes1s
  6. # _·'   l   CC BY-SA 3.0
  7.  
  8. #__________________________________________________________
  9. # 127.0.0.1 DEFENSE (http://winhelp2002.mvps.org/hosts.htm)
  10. cp /etc/hosts /etc/hosts.bak
  11. cp /etc/hosts /tmp/hosts
  12. wget http://winhelp2002.mvps.org/hosts.txt -O- >> /tmp/hosts
  13. cat /tmp/hosts |awk ' !x[$0]++' > /tmp/newhosts
  14. sudo mv /tmp/newhosts /etc/hosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement