Created
March 11, 2020 10:14
-
-
Save balook/70251d6a273504feb9333657acb67a2b 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