Advertisement
Bkmz

Untitled

Aug 14th, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/usr/local/bin/bash
  2.  
  3. route del 0.0.0.0/1
  4. ROUTE=`netstat -nr | grep 128 | awk '{print $2}'`
  5.  
  6. domains="2ip.ru whatismyip.com "
  7.  
  8. for i in $domains
  9. do
  10.         IP=`nslookup $i | grep Addr | grep -v "#" | cut -d " " -f2 | tr "\n" " "`
  11.         for j in $IP
  12.         do
  13.                 route add -host $j $ROUTE
  14.         done
  15. done
  16.  
  17. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement