#!/bin/sh # # Author: TL Guan (GuTi) guantl@gmail.com ################################### # 1. Download domain list from malwaredomains.com, or other website # 2. Run perl script domain-filter.pl to grab the domains to a list # 3. Shout DONE, and remove the downloaded domains.txt # 4. Restart Ourmon ################################### WGET_PATH="/usr/local/bin/wget"; PERL_PATH="/usr/bin/perl"; BL_URL="http://www.malwaredomains.com/files/domains.txt"; SCRIPT="/usr/local/mrourmon/bin/domain-filter.pl"; READFILE="domains.txt"; WRITEFILE="/usr/local/mrourmon/etc/dns_blacklist.txt"; OURMON_STARTUP="/usr/local/etc/rc.d/ourmon.sh"; cd /usr/local/mrourmon/etc $WGET_PATH $BL_URL; $PERL_PATH $SCRIPT $READFILE $WRITEFILE; echo DONE!!; rm -rf domains.txt $OURMON_STARTUP restart