Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: tldchecker.sh
- # Version: 1.1
- # Author: kohlbrr
- # Version history:
- # 1.0 - 4/13/18 - Initial commit
- # 1.1 - 4/13/18 - Added epoch dir layer
- #!/bin/bash
- set -eu
- rn=$1
- epoch="$(date +%s)"
- # Repository for logging the whois output
- mkdir -p output/$rn
- mkdir -p output/$rn/$epoch
- # Generate a .txt log of each whois response
- grep -v '^/' < list/public_suffix_list.dat |
- grep -v '^$' |
- { while read tld;
- do whois $rn.$tld |
- tee output/$rn/$epoch/$tld.txt;
- done; }
Add Comment
Please, Sign In to add comment