GithubHelp home page GithubHelp logo

net-hun73r / garud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r0x4r/garud

0.0 0.0 0.0 3.46 MB

An automation tool that scans sub-domains, sub-domain takeover, then filters out XSS, SSTI, SSRF, and more injection point parameters and scans for some low hanging vulnerabilities automatically.

License: MIT License

Shell 100.00%

garud's Introduction


Garud

An automation tool that scans sub-domains, sub-domain takeover and then filters out xss, ssti, ssrf and more injection point parameters.


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, subfinder, amass, httpx, sublister, gauplus and gf patterns and then it uses dirsearch, dalfox, nuclei and kxss to find some low-hanging fruits.

The script first enumerates all the subdomains of the give target domain using assetfinder, sublister, subfinder and amass then filters all live domains from the whole subdomain list then it extarct titles of the subdomains using httpx then it scans for subdomain takeover using nuclei. Then it uses gauplus 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. Then it will send the notifications about the scan using notify.

What's new in v2.5: Get results on the terminal screen. You can resume where you left just delete the last completed file and run the script again in the same output folder.


garud mindmap
How garud works

Installation

Requirements: Go Language and 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

subfindersublist3rgf patternsdnsxassetfinderhttpxkxssqsreplacenucleidalfoxanewnotifyaquatoneurldedupeamassgaupluscrlfuzzffufsubjsJSAgoBusterwaybackurls

#Make sure you're root before installing the tool

garud:~ sudo su
garud:~ apt install git
garud:~ git clone https://github.com/R0X4R/Garud.git && cd Garud/ && chmod +x garud install.sh && mv garud /usr/bin/ && ./install.sh

Usage

[GARUD] - Coded by R0X4R in INDIA with <3

Example Usage:
garud [-d target.tld] [-o output destination] [-t threads] [-b blind xss URL] [-x OOS domains]

Flags:
  -b, --blind          Add your xss server for BXSS [Default: false] (e.g. -b test.xss.ht)
  -d, --domain         Add your target (e.g -d target.tld)
  -o, --output         Write to output folder (e.g -o results/)
  -s, --silent         Hide output in the terminal [Default: false]
  -t, --threads        Number of threads [Default: 100] (e.g. -t 300)
  -v, --version        Print current version of Garud
  -x, --exclude        Exclude out of scope domains [Default: false] (e.g. -x ~/oosdomains.txt)                                                    

Fix errors while using or installing Garud

garud:~ chmod +x install.sh && ./install.sh
Error: ./install.sh : /bin/bash^M : bad interpretor: No such file or directory
                                                    
# fix
garud:~ sed -i -e 's/\r$//' install.sh

You can also copy the error and search on google this will make your debugging skills better ;)

Example Usage

garud:~ garud -d hackerone.com -o hackerone

Add threads to your scan

garud:~ garud -d hackerone.com -o hackerone -t 200

Scan for blind xss, you can get your xss server from xsshunter.com

garud:~ garud -d hackerone.com -o hackerone -b test.xss.ht

Exclude out of scope domains

garud:~ echo test.hackerone.com > ossdomain.txt
garud:~ garud -d hackerone.com -o hackerone -x ~/ossdomain.txt

With all flags

garud:~ garud -d hackerone.com -o hackerone -t 300 -b test.xss.ht -x ~/ossdomain.txt

Hide output in the terminal

garud:~ garud -d hackerone.com -o hackerone -t 300 -b test.xss.ht -x ~/ossdomain.txt -s

Start where you left

garud:~ garud -d hackerone.com. -o hackerone -t 300
Starting scan...
^C # assume you stopped at nuclei scan
garud:~ cd hackerone && rm -rf nuclei
garud:~ cd
garud:~ garud -d hackerone.com. -o hackerone -t 300

Notifications

Slack Notification BotDiscord Notification BotTelegram Notification BotConfigure Notify

Donate

Thanks to the authors of the tools used in this script.

@aboul3la @tomnomnom @lc @hahwul @projectdiscovery @maurosoria @shelld3v @devanshbatham @michenriksen @defparam @projectdiscovery @bp0lr @ameenmaali @dwisiswant0 @OWASP @1ndianl33t @sqlmapproject @w9w @OJ

Warning: This code was originally created for personal use, it generates a substantial amount of traffic, please use with caution.

garud's People

Contributors

f8al avatar hangyakuzero avatar kathanp19 avatar r0x4r avatar simrotion13 avatar theamanrawat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.