Github Dorking
GitHub is a code hosting platform for version control and collaboration usually used by development teams and by the individual developers as well.
GitHub Dorking?
GitHub Dorking is the process of using search operators to find specific repositories on GitHub. It can be used to find repositories by keyword, language, license, or other criteria. It is a way to search for specific repositories on GitHub. It can be a useful way to find repositories for specific projects or to find repositories that meet certain criteria. It can also be used to find repositories that have been abandoned or that are no longer maintained.
Dorking Methods:
- Automation (Tools)
- Manually
Automation Tools:
- Gitrob
- GitDorker
What Make Manually better than Automation tools?
- Automation tools only focuses on specific target employees which are listed in GitHub page by the organization.
- Although Automation save times but at mean time it misses the lot of precious information about the target.
- Manually source code is reviewed by the tester and information can be found which is use full.
- Manually you can search target employees names which are not listed on google, LinkedIn. But automation will skip this.
Now the question arises, how to get information about target employees which are not listed in organization?
"organization name" dotfiles
"organization name" langugae:bash
"organization name" langugae:pythonIn above example, the search result will contain information about changes in organization code, dotfile will contain configuration file that is how changes are made and language:bash or language:python will return files which are in bash and python respectively with author repo. So, if the target employee is not working in the organization and it has some connection in past with the company there repo and code will be present here and from here we can do further GitHub Dorking on that target employee to get something use full.
Note: In language: you can use any language.
Example of GitHub Dorks:
in:name:
Search for repositories with a specific name.
in:name language:python
will search for repositories with the name "python" and that are written
in Python.
filename:.env DB_USERNAME NOT homestead
laravel .env (CI, various ruby based frameworks too)
filename:wp-config.php
wordpress config files
filename:.htpasswd
htpasswd files
filename:passwd path:etc
Contains user account information including encrypted passwords of
traditional unix systems
filename:github-recovery-codes.txt
GitHub recovery key
filename:dbeaver-data-sources.xml
DBeaver config containing MySQL CredentialsMore useful GitHub Dorks can be found here…
Thanks for reading.