{"id":13682735,"url":"https://github.com/dtaivpp/ghdorker","last_synced_at":"2025-04-26T20:30:59.115Z","repository":{"id":46038174,"uuid":"412900054","full_name":"dtaivpp/ghdorker","owner":"dtaivpp","description":"An extensible GitHub dorking project","archived":false,"fork":false,"pushed_at":"2021-12-10T15:28:42.000Z","size":60,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T17:47:42.730Z","etag":null,"topics":["cli-app","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dtaivpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-02T20:03:02.000Z","updated_at":"2023-08-17T08:12:29.000Z","dependencies_parsed_at":"2022-08-27T22:31:56.711Z","dependency_job_id":null,"html_url":"https://github.com/dtaivpp/ghdorker","commit_stats":null,"previous_names":["dtaivpp/gh-dorker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtaivpp%2Fghdorker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtaivpp%2Fghdorker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtaivpp%2Fghdorker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dtaivpp%2Fghdorker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dtaivpp","download_url":"https://codeload.github.com/dtaivpp/ghdorker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251051289,"owners_count":21528786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-app","python"],"created_at":"2024-08-02T13:01:52.181Z","updated_at":"2025-04-26T20:30:58.776Z","avatar_url":"https://github.com/dtaivpp.png","language":"Python","readme":"# GitHub Dorker\n\nGH Dorker is picking up where several GitHub dorking tools leave off. Many of these dorkers grow stale and old becuase the code is very tangled and intertwined. GH-Dorker is building on the work of several other dorkers and creating a more modular approach.\n\n## Usage\n\n1. Install with pip `pip install ghdorker`\n2. (Optional) you can either export an environment variable named \"GH_TOKEN\" or include it in a local .env file to ensure you can make the most requests. See [\"Creating a personal access token\"](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for more information on how to do so.\n\n```\nusage: ghdorker [-h] [-v] [-s {repo,user,org}] [-d DORKS] [--debug] [-o OUTPUT_FILENAME] [--options INPUT_OPTION [INPUT_OPTION ...]] search\n\nSearch github for github dorks\n\npositional arguments:\n  search                The repo, username, or organization you would like to search\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n  -s {repo,user,org}, --scope {repo,user,org}\n                        The type of GitHub object you would like to search\n  -d DORKS, --dorks DORKS\n                        Github dorks file. Eg: dorks.txt/.yaml\n  --debug               Set this if you would like to see verbose logging.\n  -o OUTPUT_FILENAME, --outputFile OUTPUT_FILENAME\n                        File to write results to. This overwrites the file provided! Accepts .json or .csv as output file types.\n  --options INPUT_OPTION [INPUT_OPTION ...]\n                        YAML Options to target for dorking for example: all.cloud.aws\n\nUse responsibly, Enjoy pentesting\n```\n\nHere is a simple example:\n```\n# The source is a repo and it is running against the gh_dorks_test.txt file\nghdorker -s repo -d samples/dorks.txt dtaivpp/NewsTicker\n```\n\nAdditionally you can create a yaml config file like so for using only specific dorks on repos.\n```yaml\nall:\n  identity:\n    - filename:.dockercfg auth\n    - filename:id_rsa or filename:id_dsa\n    - filename:.npmrc _auth\n    - datafilename:.dockercfg auth\n    - dataextension:pem private\n    - extension:ppk private\n  cloud:\n    aws:\n      - rds.amazonaws.com password\n      - filename:.bash_profile aws\n    google:\n      - extension:json googleusercontent client_secret\n```\n\nThis would run all the dorks that fall under the cloud section of the YAML.\n```\nghdorker -s repo dtaivpp/NewsTicker -d samples/dorks.yaml --options all.cloud\n```\n\nThis would run all the dorks that fall under the aws and the identity sections. It's okay to duplicate entries under different sections as on the backend it is checking each entry for uniqueness.\n```\nghdorker -s repo dtaivpp/NewsTicker -d samples/dorks.yaml --options all.cloud.aws all.identiy\n```\n\nAnd finally here is an example of how you could output the results to either a json or csv file.\n```\nghdorker -s user dtaivpp -d samples/dorks.yaml --options all.cloud.aws all.test -o output.json\n```\nThis is always output to the console:\n```\n2021-11-18 06:47:57,847 - dork: rds.amazonaws.com password user:dtaivpp, repository: dtaivpp/gh-dorker, path: samples/dorks.yaml, score: 1.0\n2021-11-18 06:47:57,848 - dork: rds.amazonaws.com password user:dtaivpp, repository: dtaivpp/gh-dorker, path: README.md, score: 1.0\n2021-11-18 06:48:05,171 - dork: extension:md user:dtaivpp, repository: dtaivpp/dtaivpp, path: README.md, score: 1.0\n2021-11-18 06:48:05,172 - dork: extension:md user:dtaivpp, repository: dtaivpp/gh-dorker, path: CONTRIBUTING.md, score: 1.0\n2021-11-18 06:48:05,172 - dork: extension:md user:dtaivpp, repository: dtaivpp/gh-dorker, path: README.md, score: 1.0\n2021-11-18 06:48:05,172 - dork: extension:md user:dtaivpp, repository: dtaivpp/OpenSearch-Utilization, path: README.md, score: 1.0\n2021-11-18 06:48:05,172 - dork: extension:md user:dtaivpp, repository: dtaivpp/DevOps-Template, path: README.md, score: 1.0\n```\n\nAnd in addition here is what it looks like as JSON:\n```json\n[\n    {\n        \"dork\": \"rds.amazonaws.com password user:dtaivpp\",\n        \"repository\": \"dtaivpp/gh-dorker\",\n        \"path\": \"samples/dorks.yaml\",\n        \"score\": 1.0\n    },\n    {\n        \"dork\": \"rds.amazonaws.com password user:dtaivpp\",\n        \"repository\": \"dtaivpp/gh-dorker\",\n        \"path\": \"README.md\",\n        \"score\": 1.0\n    },\n    {\n        \"dork\": \"extension:md user:dtaivpp\",\n        \"repository\": \"dtaivpp/dtaivpp\",\n        \"path\": \"README.md\",\n        \"score\": 1.0\n    },\n    {\n        \"dork\": \"extension:md user:dtaivpp\",\n        \"repository\": \"dtaivpp/gh-dorker\",\n        \"path\": \"CONTRIBUTING.md\",\n        \"score\": 1.0\n    },\n    {\n        \"dork\": \"extension:md user:dtaivpp\",\n        \"repository\": \"dtaivpp/gh-dorker\",\n        \"path\": \"README.md\",\n        \"score\": 1.0\n    }\n]\n```\n\nAs an aside, rate limiting is already built into the codebase. It will not allow you to make more requests than allowable. GH-Dorker grabs your real rate limits live from GitHub so it will make the maximim amount of requests permittable in a given timeframe.\n\n## Contributing\n\nFor how to contribute please see [CONTRIBUTING.md](\"CONTRIBUTING.md\").\n\n\n## Credits\nReference points for creating GitDorker and compiling dorks lists\n\n- [@techgaun](https://github.com/techgaun/github-dorks) - This was the primary repo I was looking to for inspiration when writing this dorker\n- [@obheda12](https://github.com/obheda12/GitDorker) - You have one of the cleanest README's ive read in a while and if you couldn't tell has inspired much of this project's structure\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtaivpp%2Fghdorker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdtaivpp%2Fghdorker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdtaivpp%2Fghdorker/lists"}