主动探测结果列表

This commit is contained in:
gently 2019-12-21 17:05:28 +08:00
parent 759dd0c4cf
commit e023637063
8 changed files with 69584 additions and 3 deletions

5689
dist/anti-ad-easylist-basic.txt vendored Normal file

File diff suppressed because it is too large Load Diff

29097
dist/anti-ad-easylist-full.conf vendored Normal file

File diff suppressed because it is too large Load Diff

5690
dist/anti-ad-surge-basic.txt vendored Normal file

File diff suppressed because it is too large Load Diff

29098
dist/anti-ad-surge-full.txt vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -46,8 +46,8 @@ if(count($arr_china_list) <= 0 && count($arr_dead_horse) <= 0){
$black_list = require LIB_DIR . '/black_domain_list.php';
$src_fp = fopen(SRC_FILE, 'r');
$basic_fp = fopen(DIST_DIR . '/anti-ad-basic.conf', 'w');
$full_fp = fopen(DIST_DIR . '/anti-ad-full.conf', 'w');
$basic_fp = fopen(DIST_DIR . '/anti-ad-dnsmasq-basic.conf', 'w');
$full_fp = fopen(DIST_DIR . '/anti-ad-dnsmasq-full.conf', 'w');
$write_len = fwrite($basic_fp, '#TIME=' . date('YmdHis') . "\n");
$write_len += fwrite($basic_fp, '#URL=https://github.com/gentlyxu/anti-AD' . "\n");
$write_len = fwrite($full_fp, '#TIME=' . date('YmdHis') . "\n");

View File

@ -4,4 +4,11 @@
source /etc/profile
cd $(cd "$(dirname "$0")";pwd)
nohup php research-addr.php >> ./std-research.out &
nohup php research-addr.php >> ./std-research.out
cd ../dist/
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-full.conf > anti-ad-easylist-full.conf
sed -E 's/address=\/(.+)?\//||\1^/g' anti-ad-dnsmasq-basic.conf > anti-ad-easylist-basic.conf
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-basic.conf >anti-ad-surge-basic.txt
sed -E 's/address=\/(.+)?\//DOMAIN-SUFFIX,\1,REJECT/g' anti-ad-dnsmasq-full.conf >anti-ad-surge-full.txt
sed -i '3 i [RULE]' anti-ad-surge-basic.txt
sed -i '3 i [RULE]' anti-ad-surge-full.txt