Garud – An automation tool that scans sub-domains, sub-domain takeover
An automation tool that scans sub-domains, sub-domain takeover and then filters out xss, ssti, ssrf and more injection point parameters.
- Requirements: Go Language, Python 2.7 or Python 3.
- System requirements: Recommended to run on vps with 1VCPU and 2GB ram.
- Tools used – You must need to install these tools to use this script
- Installation – Make sure you’re root before installing the tool
git clone https://github.com/R0X4R/Garud.git && cd Garud/ && chmod +x garud install.sh && mv garud /usr/bin/ && ./install.sh
- Usage
█▀▀ ▄▀█ █▀█ █░█ █▀▄ █▄█ █▀█ █▀▄ █▄█ █▄▀ coded by R0X4R with <3 Usage: -d target you want to scan (target.com) Usage: -f output directory where you want to save file (~/target-output/) Usage: -x Exclude out of scope domains (~/out-domains.txt) garud -d target.com -f target-output
- Slack Bot
wget https://raw.githubusercontent.com/R0X4R/Garud/master/slack-bot.py ~/slack-bot.py pip3 install slackclient slacker
Add your slack token in slack-bot.py file.
-
- Slack bot tutorial: https://www.freecodecamp.org/news/how-to-build-a-basic-slackbot-a-beginners-guide-6b40507db5c5/
- Slack Webhook for notify: https://slack.com/intl/en-it/help/articles/115005265063-Incoming-webhooks-for-Slack
- Configure Notify: https://github.com/projectdiscovery/notify#config-file
About Garud
I made this tool to automate my recon and save my time. It really give me headache always type such command and then wait to complete one command and I type other command. So I collected some of the tools which is widely used in the bugbounty field. In this script I used Assetfinder, get-titles, httprobe, subjack, subzy, sublister, gau and gf patterns and then it uses ffuf, dalfox, nuclei and kxss to find some low hanging fruits.
The script first enumerates all the subdomains of the give target domain using assetfinder and sublister then filters all live domains from the whole subdomain list then it extarct titles of the subdomains using get-title then it scans for subdomain takeover using subjack and subzy. Then it uses gau to extract paramters of the given subdomains then it use gf patterns to filters xss, ssti, ssrf, sqli params from that given subdomains and then it scans for low hanging fruits as well. Then it’ll save all the output in a text file like target-xss.txt.
Thanks to the authors of the tools used in this script.
@aboul3la @tomnomnom @lc @LukaSikic @haccer @hahwul @projectdiscovery @maurosoria @shelld3v @devanshbatham @michenriksen @hakluke
Warning: This code was originally created for personal use, it generates a substantial amount of traffic, please use with caution.
Original repository: https://github.com/R0X4R/Garud
The post Garud – An automation tool that scans sub-domains, sub-domain takeover appeared first on Hakin9 – IT Security Magazine.