Skip to content

Instantly share code, notes, and snippets.

@KathanP19
Last active April 15, 2024 18:43
Show Gist options
  • Save KathanP19/6801aaa838f5b03d0b10cfc85775ace6 to your computer and use it in GitHub Desktop.
Save KathanP19/6801aaa838f5b03d0b10cfc85775ace6 to your computer and use it in GitHub Desktop.
simple bash script
#!/bin/bash
echo -e "\e[32mRunning Findomain on $1 \e[0m";
findomain -t $1 -u domain_$1.txt
echo -e "\e[32m Running assetfinder on $1 \e[0m";
assetfinder --subs-only $1 >> domain_$1.txt
echo -e "\e[32mRunning Subfinder on $1 \e[0m";
subfinder -d $1 -silent >> domain_$1.txt
echo -e "\e[32mCleaning Subs \e[0m";
cat domain_$1.txt | sort -u >> domain_$1.tmp
rm domain_$1.txt
mv domain_$1.tmp domain_$1.txt
echo -e "\e[32m Done. \e[0m";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment