Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Mon Dec 25 2017
- # Generate sci-hub domains in bulk, for DNSMasq use
- # Except for the valid / otherwise-assigned TLDs
- exclude=$(echo sci-hub.{hk,la,mn,name,tv,tw,tree.la,org,cc,ac,io,bz} |
- sed -e 's/ /|/g')
- echo "# Created: $( date )"
- curl https://data.iana.org/TLD/tlds-alpha-by-domain.txt |
- tr [A-Z] [a-z] |
- awk '! /^#/ {
- printf( "address=/sci-hub.%s/80.82.77.8%s\n", $1, 3+NR%2) }' |
- egrep -v "(${exclude})"
Advertisement
Add Comment
Please, Sign In to add comment