{"id":21721584,"url":"https://github.com/molly/gh-dork","last_synced_at":"2025-04-12T21:33:52.080Z","repository":{"id":59984746,"uuid":"416155870","full_name":"molly/gh-dork","owner":"molly","description":"Github dorking tool","archived":false,"fork":false,"pushed_at":"2022-03-12T16:38:59.000Z","size":11,"stargazers_count":136,"open_issues_count":1,"forks_count":24,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-26T15:48:01.152Z","etag":null,"topics":["dork","dorker","github-dork","hacking","security-audit"],"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/molly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-12T02:32:59.000Z","updated_at":"2025-03-13T12:45:49.000Z","dependencies_parsed_at":"2022-09-25T10:46:27.839Z","dependency_job_id":null,"html_url":"https://github.com/molly/gh-dork","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molly%2Fgh-dork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molly%2Fgh-dork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molly%2Fgh-dork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molly%2Fgh-dork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molly","download_url":"https://codeload.github.com/molly/gh-dork/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248636437,"owners_count":21137451,"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":["dork","dorker","github-dork","hacking","security-audit"],"created_at":"2024-11-26T02:17:43.763Z","updated_at":"2025-04-12T21:33:52.043Z","avatar_url":"https://github.com/molly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-dork\n\nSupply a list of dorks and, optionally, one of the following:\n* a user (`-u`)\n* a file with a list of users (`-uf`)\n* an organization (`-org`)\n* a file with a list of organizations (`-of`)\n* a repo (`-r`)\n\nYou can also pass:\n* an output directory to store results (`-o`)\n* a filename to store valid items, if your users or org file may contain nonexistent users/orgs (`-vif`)\n\nAll input files (dorks, users, or orgs) should be newline-separated.\n\n## Usage\nClone the repository, then run\n`pip install -r requirements.txt`\n\nThe only required parameter is the dorks file (`-d`). See\n[techguan's github-dorks.txt](https://github.com/techgaun/github-dorks/blob/master/github-dorks.txt) for ideas.\n\nIf an output directory is specified, a file will be created for\neach dork in the dorks list, and results will be saved there as well as printed. **Only use an empty/nonexistent\ndirectory or it will be cleared and its contents replaced.**\n\nIf your users or orgs files haven't already been filtered to remove non-existent users/orgs or those without any public\ncode, it's highly recommended that you pass in a `--valid-items-filename` (`-vif`). This will filter out any invalid\nusers/orgs when searching for the first dork, and avoid searching against them for subsequent dorks. The output file\ncan also then be used as the input users/orgs file to speed up later script runs.\n\nExample usage:\n```\npython gh-dork.py -d dorks.txt                                       # Basic usage\npython gh-dork.py -d dorks.txt -u molly                              # Search repos of a specific user\npython gh-dork.py -d dorks.txt -uf users.txt                         # Search repos of all users in the list\npython gh-dork.py -d dorks.txt -uf users.txt -vif valid_users.txt    # Search repos of all users in the list, filtering out nonexistent users\npython gh-dork.py -d dorks.txt -org github                           # Search repos of a specific organization\npython gh-dork.py -d dorks.txt -of orgs.txt                          # Search repos of all orgs in the list\npython gh-dork.py -d dorks.txt -of orgs.txt -vif valid_orgs.txt      # Search repos of all orgs in the list, filtering out nonexistent orgs\npython gh-dork.py -d dorks.txt -r molly/gh-dork                      # Search the specified repo\npython gh-dork.py -d dorks.txt -o results                            # Store results in files in the results/ directory, *overwriting any directory contents*\n```\n\n## Authentication\nAuthentication is done with environment variables. You can authenticate with a Github private access token (`GH_TOKEN`),\nor username and password (`GH_USER` and `GH_PASS`). If you have two-factor authentication enabled, you will be prompted\nfor a two-factor code.\n\nYou can also pass a Github Enterprise base URL (`GH_URL`) to search against that Github instance; if omitted, this will\nrun against github.com.\n\nIf no credentials are provided or if credentials are invalid, the script will still run, but will be limited by the \n[much lower rate limits](https://docs.github.com/en/rest/reference/search) for unauthenticated users.\n\n## Credits\nLoosely based on [techgaun/github-dorks](https://github.com/techgaun/github-dorks).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolly%2Fgh-dork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolly%2Fgh-dork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolly%2Fgh-dork/lists"}