{"id":21736200,"url":"https://github.com/audibleblink/git-ls","last_synced_at":"2025-04-13T01:54:52.529Z","repository":{"id":52412581,"uuid":"197670139","full_name":"audibleblink/git-ls","owner":"audibleblink","description":"List (or plunder) private repos/gists to which a token has access, including those of other users","archived":false,"fork":false,"pushed_at":"2022-01-29T01:46:00.000Z","size":35,"stargazers_count":11,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T01:53:48.275Z","etag":null,"topics":["golang","offsec","osint","redteam"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/audibleblink.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-18T23:37:32.000Z","updated_at":"2023-09-01T17:08:21.000Z","dependencies_parsed_at":"2022-08-26T03:33:01.117Z","dependency_job_id":null,"html_url":"https://github.com/audibleblink/git-ls","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audibleblink%2Fgit-ls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audibleblink%2Fgit-ls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audibleblink%2Fgit-ls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/audibleblink%2Fgit-ls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/audibleblink","download_url":"https://codeload.github.com/audibleblink/git-ls/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654052,"owners_count":21140235,"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":["golang","offsec","osint","redteam"],"created_at":"2024-11-26T05:17:24.594Z","updated_at":"2025-04-13T01:54:52.510Z","avatar_url":"https://github.com/audibleblink.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-ls\n\nExplore github content given a valid token.\n\n## Usage\n\nThe token is read from the `GITHUB_TOKEN` environment variable. I chose this so I don't end up\nputting tokens in HISTFILEs. Your options are to source it from a file with `source .env`, export\nit in your shell session, or go ahead and prepend it like so: `GITHUB_TOKEN=xyz git-ls user`.\n\nRun `git-ls` with no arguments to see what data can be listed.\n\n## Examples\n\nBelow are some useful filters to use with `jq`, the CLI json parser.\n\n```bash\n# Just private gists\n❯❯ git-ls gists | jq '.[] | select(.Private == true)'\n\n# Just repo names\n❯❯ git-ls repos | jq -r '.[].Name'\n\n# Repos that don't belong to the GITHUB_TOKEN owner\n❯❯ git-ls repos | jq '.[] | select(.Owner != \"audibleblink\")'\n# or\n❯❯ git-ls collabs\n```\n\n## Properties\n\nI tried to select the most useful properties returned by the GitHub API to keep noise low.\nThese are the properties that you can filter on with `jq`\n\n### Gists\n\n* Owner\n* Description\n* GitPullUrl\n* Files\n* Private\n\n### Repos\n\n* Name\n* Description\n* URL\n* Owner\n* Organization\n* StargazersConut\n* Private\n\n\n## Accessing Data\nIf you have the API token that got you this far, \nit can be placed into an HTTP clone request.\n\n```bash\ngit clone https://${GITHUB_TOKEN}@github.com/someOrg/someRepo\n```\n\nIf you just want all the secret repos the token has access to\n\n```bash\ngit-ls plunder\n```\nTo export all repos, regardless of them being private or public:\n\n```bash\ngit-ls export\n```\n\n![](https://i.imgur.com/lcn6Wop.png)\n\n![](https://i.imgur.com/s587JPU.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudibleblink%2Fgit-ls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faudibleblink%2Fgit-ls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faudibleblink%2Fgit-ls/lists"}