Advertisement
GAMELASTER

Untitled

Sep 29th, 2016
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/sh
  2. # the full path of the file we create
  3. filename=./test.rsc
  4.  
  5. # remove the comment  if you want to use the List of All Current Tor Server IP Addresses
  6. url=http://torstatus.blutmagie.de/ip_list_all.php/Tor_ip_list_ALL.csv
  7. # remove the comment  if you want to use the List of All Current Tor Server Exit Node IP Addresses
  8. #url=http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv
  9.  
  10. echo "# This scrip adds Tor IP addresses to an address-list (list created: $(date))" > $filename
  11. echo "/ip firewall address-list" >> $filename
  12.  
  13. wget -q -O - $url | sort -u | awk --posix '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/ { print "add list=addressListTor dynamic=yes address="$1" " ;}' >> $filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement