Syntax :
assetfinder [example.com](<http://example.com>)—
we can save result in file like this
assetfinder [example.com](<http://example.com>) >> example.txt—
there’s option to show only subdomains , called --subs-only
assetfinder --subs-only [example.com](<http://example.com>) >> example.txtscript
#!/bin/bash
url=$1
if [ ! -d "$url" ];then
mkdir $url
fi
if [ ! -d "url/recon" ];then
mkdir $url/recon
fi
echo "[+] harvesting subdomains with assetfinder..."
assetfinder $url >> $url/recon/asset.txt
cat $url/recon/asset.txt | grep $1 >> $url/recon/final.txt
rm $url/recon/asset.txt