Last active
April 5, 2022 19:16
-
-
Save pry0cc/439f4b99ace5408ad9b96f778faf7185 to your computer and use it in GitHub Desktop.
A script that uses interlace and urlcrazy to multi-threadedly check if domains are available for TypoSquats
This file contains hidden or 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 | |
echo "" > $1.txt | |
urlcrazy $1 -f csv | cut -d "," -f 2 | grep -v "Typo" > domains.txt 2>&1 | grep -v "warn" | |
interlace -tL domains.txt -threads 100 -c "curl -s \"https://api.scaleway.com/domain/v2alpha2/available-domains?search=_target_\" | jq -r '.[][] | select(.a | |
vailable==true) | .domain' >> $1.txt" >> /dev/null 2>&1 | |
rm -f domains.txt | |
/usr/bin/cat $1.txt | |
rm $1.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment