Skip to content

A bash script which creates URLs for git dorks. Inspired by Jason Haddix. Improved w/ regex word boundaries!

Notifications You must be signed in to change notification settings

PentestPuppy/gitdork

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

GitDork.sh

Install

git clone git@github.com:pentestpuppy/gitdork.git
chmod +x gitdork.sh

Basic Use

./gitdork.sh <domain name>

You can also let the script prompt you for a domain:

./gitdork.sh

            :-- GITHUB DORK LINKS --:

:-- Enter domain to dork:
target.com

Change your dorks:

If your input includes a tld, you'll be prompted for whether you want to dork GitHub for target.tld or just target:

:-- Do you want to dork the entire domain name? Ex: ('target.com'): y/n
n

Just the domain :-- https://github.com/search?q=/\btarget/&type=code
.bash_history :-- https://github.com/search?q=/\btarget/+.bash_history&type=code
.exs :-- https://github.com/search?q=/\btarget/+.exs&type=code
... SNIP ...

VS

:-- Do you want to dork the entire domain name? Ex: ('target.com'): y/n
y

Just the domain :-- https://github.com/search?q=/\btarget\.com/&type=code
.bash_history :-- https://github.com/search?q=/\btarget\.com/+.bash_history&type=code
.exs :-- https://github.com/search?q=/\btarget\.com/+.exs&type=code
.sls :-- https://github.com/search?q=/\btarget\.com/+.sls&type=code
... SNIP ...

About

A bash script which creates URLs for git dorks. Inspired by Jason Haddix. Improved w/ regex word boundaries!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages