Skip to content

Instantly share code, notes, and snippets.

@balook
Created March 11, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balook/70251d6a273504feb9333657acb67a2b to your computer and use it in GitHub Desktop.
Save balook/70251d6a273504feb9333657acb67a2b to your computer and use it in GitHub Desktop.
small-recon for subdomains only
#! /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