|
|
@ -169,24 +169,23 @@ f_envparse() |
|
|
|
|
|
|
|
# set adblock source ruleset definitions |
|
|
|
# |
|
|
|
rset_start="sed -r 's/[[:space:]]|[\[!#/:;_].*|[0-9\.]*localhost.*//g; s/[\^#/:;_\.\t ]*$//g'" |
|
|
|
rset_end="tr -cd '[0-9a-z\.\-]\n' | sed -r 's/^[ \.\-].*$|^[a-z0-9]*[ \.\-]*$//g; /^[#/:;_\s]*$/d'" |
|
|
|
rset_adaway="${rset_start} | sed 's/\([0-9]\{1,3\}\.\)\{3\}[0-1]\{1,1\}//g' | ${rset_end}" |
|
|
|
rset_blacklist="${rset_start} | ${rset_end}" |
|
|
|
rset_disconnect="${rset_start} | ${rset_end}" |
|
|
|
rset_dshield="${rset_start} | ${rset_end}" |
|
|
|
rset_feodo="${rset_start} | ${rset_end}" |
|
|
|
rset_malware="${rset_start} | ${rset_end}" |
|
|
|
rset_malwarelist="${rset_start} | sed 's/\([0-9]\{1,3\}\.\)\{3\}[0-1]\{1,1\}//g' | ${rset_end}" |
|
|
|
rset_openphish="sed -e 's|^[^/]*//||' -e 's|/.*$||'" |
|
|
|
rset_palevo="${rset_start} | ${rset_end}" |
|
|
|
rset_ruadlist="sed -e '/^\|\|/! s/.*//; /\^$/! s/.*//; s/\^$//g; /[\.]/! s/.*//; s/^[\|]\{1,2\}//g' | ${rset_end}" |
|
|
|
rset_shalla="${rset_start} | sed 's/\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}$//g' | ${rset_end}" |
|
|
|
rset_spam404="${rset_start} | sed 's/^\|\|//g' | ${rset_end}" |
|
|
|
rset_whocares="${rset_start} | sed 's/\([0-9]\{1,3\}\.\)\{3\}[0-1]\{1,1\}//g' | ${rset_end}" |
|
|
|
rset_winhelp="${rset_start} | sed 's/\([0-9]\{1,3\}\.\)\{3\}[0-1]\{1,1\}//g' | ${rset_end}" |
|
|
|
rset_yoyo="${rset_start} | sed 's/,/\n/g' | ${rset_end}" |
|
|
|
rset_zeus="${rset_start} | ${rset_end}" |
|
|
|
rset_core="([A-Za-z0-9_-]+\.){1,}[A-Za-z]+" |
|
|
|
rset_adaway="awk '\$0 ~/^127\.0\.0\.1[ ]+${rset_core}/{print tolower(\$2)}'" |
|
|
|
rset_blacklist="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_disconnect="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_dshield="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_feodo="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_malware="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_malwarelist="awk '\$0 ~/^127\.0\.0\.1[ ]+${rset_core}/{print tolower(\$2)}'" |
|
|
|
rset_openphish="awk -F '/' '\$3 ~/^${rset_core}/{print tolower(\$3)}'" |
|
|
|
rset_palevo="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_ruadlist="awk -F '[|^]' '\$0 ~/^\|\|${rset_core}\^$/{print tolower(\$3)}'" |
|
|
|
rset_shalla="awk -F '/' '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_spam404="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_whocares="awk '\$0 ~/^127\.0\.0\.1[ ]+${rset_core}/{print tolower(\$2)}'" |
|
|
|
rset_winhelp="awk '\$0 ~/^0\.0\.0\.0[ ]+${rset_core}/{print tolower(\$2)}'" |
|
|
|
rset_yoyo="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
rset_zeus="awk '\$1 ~/^${rset_core}/{print tolower(\$1)}'" |
|
|
|
|
|
|
|
# get logical wan update interfaces (with default route) and their device names |
|
|
|
# |
|
|
|