Skip to content

Instantly share code, notes, and snippets.

@pry0cc
Last active April 5, 2022 19:16
Show Gist options
  • Save pry0cc/439f4b99ace5408ad9b96f778faf7185 to your computer and use it in GitHub Desktop.
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
#!/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