-
-
Save xiaokangwang/3e6b7ca99a30b13f82ed5fe6bf8d8f43 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/bash | |
input=$1 | |
while read -r line | |
do | |
if [ $(curl https://$line/ --header 'Host: snowflake-broker.torproject.net.global.prod.fastly.net' -v 2>&1 |grep '404 page not found'|wc -l) -gt 0 ] | |
then | |
echo $line | |
fi | |
done < "$input" |
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/bash | |
input=$1 | |
while read -r line | |
do | |
if [ $(curl https://$line/proxy --header 'Host: snowflake-broker.torproject.net.global.prod.fastly.net' -v 2>&1 |grep 'X-Session-ID'|wc -l) -gt 0 ] | |
then | |
echo $line | |
fi | |
done < "$input" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment