Exposed Git Repositories
OWASP A3:2017-Sensitive Data Exposure
Theory
Practice
Enumeration
cat domains.txt | httpx -path /.git/HEAD -silent -mr "refs/heads"feroxbuster -u http://target.com -w /usr/share/wordlists/seclists/Discovery/Web-Content/common.txtintext:"index of" ".git"
{intitle: indexof/.git }
intitle:"index of" "/.git/config"
filetype:git -github.com inurl:"/.git"./gitfinder.py -i domains.txtDump
./gitdumper.sh http://target.com/.git/ dest-dir./extractor.sh /tmp/mygitrepo /tmp/mygitrepodump# quick start
githacker --url http://127.0.0.1/.git/ --output-folder result
# brute for the name of branchs / tags
githacker --brute --url http://127.0.0.1/.git/ --output-folder result
# exploit multiple websites, one site per line
githacker --brute --url-file websites.txt --output-folder resultgoop target.comgit-dumper http://target.com/.git ~/TargetOutputFolderHunting
Resources
Last updated