/usr/sbin/dbab-get-list is in dbab 1.3.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
##-----------------------------------------------------------------------
## Porgram: dbab-get-list
## Purpose: Get dnsmasq blocking list from pgl.yoyo.org
## Authors: Tong Sun (c) 2013
## License: BSD license
##-----------------------------------------------------------------------
grep -n '^[[:punct:]]*$' /etc/dbab/dbab.list- && {
echo "ERROR: Blank line(s) found in /etc/dbab/dbab.list-"
printf "\tRemove them before proceeding.\n"
exit 1
}
dbabsvr_addr=`cat /etc/dbab/dbab.addr`
# Down the DNSmasq formatted ad block list
curl "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext" | grep -vFf /etc/dbab/dbab.list- | sed "s/127\.0\.0\.1/$dbabsvr_addr/" > /etc/dnsmasq.d/dbab.adblock.conf
echo File /etc/dnsmasq.d/dbab.adblock.conf updated.
|