Last active
November 25, 2016 18:30
-
-
Save rampageX/8db695a5d5b8574630867ffd0ef4d15d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
gfwlist="/opt/etc/domain_gfwlist.txt" | |
polluted_domain="/opt/etc/polluted_domain.txt" | |
while read host; do | |
dig +trace +tries=1 +time=1 $host | |
if [ $(dig +trace +tries=1 +time=1 $host | wc -l) -eq 21 ]; then | |
echo $host >> $polluted_domain | |
fi | |
done < $gfwlist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment