Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # the full path of the file we create
- filename=./test.rsc
- # remove the comment if you want to use the List of All Current Tor Server IP Addresses
- url=http://torstatus.blutmagie.de/ip_list_all.php/Tor_ip_list_ALL.csv
- # remove the comment if you want to use the List of All Current Tor Server Exit Node IP Addresses
- #url=http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv
- echo "# This scrip adds Tor IP addresses to an address-list (list created: $(date))" > $filename
- echo "/ip firewall address-list" >> $filename
- 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