Created
March 11, 2020 10:14
-
-
Save balook/c40313bb7be98378040f627349986ced to your computer and use it in GitHub Desktop.
small-recon for subdomains only
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 | |
findomain -t $1 -q | tee $1.txt | |
subfinder -d $1 -silent | tee -a $1.txt | |
#crtsh | |
crtsh(){ | |
curl -s https://crt.sh/?q\=%.$1\&output\=json | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u | |
} | |
crtsh $1 | tee -a $1.txt | |
dns(){ | |
curl -s https://dns.bufferover.run/dns?q=.$1 | jq -r .FDNS_A[]|cut -d',' -f2|sort -u | |
} | |
dns $1 | tee -a $1.txt | |
cat $1.txt | sort -u | tee $1 | |
rm -r $(pwd)/$1.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment