{"id":25074766,"url":"https://github.com/rix4uni/gitrepoenum","last_synced_at":"2025-05-09T00:26:11.621Z","repository":{"id":257814475,"uuid":"868974047","full_name":"rix4uni/gitrepoenum","owner":"rix4uni","description":"Download all github repositories of a org, user, fetch all member of a org, then Find leaked credentials.","archived":false,"fork":false,"pushed_at":"2024-11-20T16:55:36.000Z","size":311,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T00:18:30.662Z","etag":null,"topics":["bugbounty","enumeration","github-osint","github-repository-search","github-user-search","osint","penetration-testing","penetration-testing-tools","pentesting","pentesting-tools","recon","reconnaissance","security"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rix4uni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.paypal.com/paypalme/rix4uni"}},"created_at":"2024-10-07T13:59:59.000Z","updated_at":"2024-12-11T08:19:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f749453b-9956-47ce-b70b-325d0e28803e","html_url":"https://github.com/rix4uni/gitrepoenum","commit_stats":null,"previous_names":["rix4uni/gitrepoenum"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rix4uni%2Fgitrepoenum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rix4uni%2Fgitrepoenum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rix4uni%2Fgitrepoenum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rix4uni%2Fgitrepoenum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rix4uni","download_url":"https://codeload.github.com/rix4uni/gitrepoenum/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531983,"owners_count":20792735,"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":["bugbounty","enumeration","github-osint","github-repository-search","github-user-search","osint","penetration-testing","penetration-testing-tools","pentesting","pentesting-tools","recon","reconnaissance","security"],"created_at":"2025-02-07T00:18:30.909Z","updated_at":"2025-03-31T19:47:12.600Z","avatar_url":"https://github.com/rix4uni.png","language":"Go","funding_links":["https://www.paypal.com/paypalme/rix4uni"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  gitrepoenum\n  \u003cbr\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003eDownload all github repositories of a org, user, fetch all member of a org, then Find leaked credentials.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/rix4uni/gitrepoenum\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/rix4uni/gitrepoenum.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/R0X4R/Pinaak/issues\"\u003e\u003cimg src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/rix4uni/gitrepoenum\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/rix4uni/gitrepoenum\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/rix4uni/gitrepoenum/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://twitter.com/rix4uni\"\u003e\u003cimg src=\"https://img.shields.io/badge/twitter-%40rix4uni-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"#workflow\"\u003eWorkflow\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n```\ngo install github.com/rix4uni/gitrepoenum@latest\n```\n\n## Download prebuilt binaries\n```\nwget https://github.com/rix4uni/gitrepoenum/releases/download/v0.0.1/gitrepoenum-linux-amd64-0.0.1.tgz\ntar -xvzf gitrepoenum-linux-amd64-0.0.1.tgz\nrm -rf gitrepoenum-linux-amd64-0.0.1.tgz\nmv gitrepoenum ~/go/bin/gitrepoenum\n```\nOr download [binary release](https://github.com/rix4uni/gitrepoenum/releases) for your platform.\n\n## Compile from source\n```\ngit clone --depth 1 github.com/rix4uni/gitrepoenum.git\ncd gitrepoenum; go install\n```\n\n## Usage\n```console\ngo run main.go -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nA longer description that spans multiple lines and likely contains\nexamples and usage of using your application. For example:\n\nCobra is a CLI library for Go that empowers applications.\nThis application is a tool to generate the needed files\nto quickly create a Cobra application.\n\nUsage:\n  gitrepoenum [flags]\n  gitrepoenum [command]\n\nAvailable Commands:\n  code        Fetch code from multiple commits\n  commit      Show commit logs\n  completion  Generate the autocompletion script for the specified shell\n  download    Clone Git repositories with a custom directory name and parallel option\n  help        Help about any command\n  member      Fetch GitHub member name of a single ORG or multiple ORGS using a list of orgnames\n  org         Fetch GitHub repositories of a single ORG or multiple ORGS using a list of orgnames\n  user        Fetch GitHub repositories of a single USER or multiple USERS using a list of usernames\n  vuln        Scan repositories for vulnerabilities using TruffleHog\n\nFlags:\n  -h, --help      help for gitrepoenum\n  -u, --update    update gitrepoenum to latest version\n  -v, --version   Print the version of the tool and exit.\n\nUse \"gitrepoenum [command] --help\" for more information about a command.\n```\n\n## Usage Examples\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum org -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go org -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nExamples:\n$ echo \"IBM\" | gitrepoenum org -c -o output.json\n$ cat orgnames.txt | gitrepoenum org -c -o output.json\n$ echo \"IBM\" | gitrepoenum org --delay 1ns\n$ echo \"IBM\" | gitrepoenum org --config custompath/config.yaml -t custompath/github-token.txt\n\nUsage:\n  gitrepoenum org [flags]\n\nFlags:\n      --config string   path to the config.yaml file (default \"$HOME/.config/gitrepoenum/config.yaml\")\n  -c, --custom-field    Custom Fields JSON output\n      --delay string    Delay duration between requests (e.g., 1ns, 1us, 1ms, 1s, 1m) (default \"-1ns\")\n  -h, --help            help for org\n  -o, --output string   File to save the output.\n  -t, --token string    Path to the file containing GitHub tokens, 1 token per line (default \"$HOME/.config/gitrepoenum/github-token.txt\")\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum member -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go member -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nExamples:\n$ echo \"IBM\" | gitrepoenum member -c -o output.json\n$ cat orgnames.txt | gitrepoenum member -c -o output.json\n$ echo \"IBM\" | gitrepoenum member --delay 1ns\n$ echo \"IBM\" | gitrepoenum member --config custompath/config.yaml -t custompath/github-token.txt\n\nUsage:\n  gitrepoenum member [flags]\n\nFlags:\n      --config string   path to the config.yaml file (default \"$HOME/.config/gitrepoenum/config.yaml\")\n  -c, --custom-field    Custom Fields JSON output\n      --delay string    Delay duration between requests (e.g., 1ns, 1us, 1ms, 1s, 1m) (default \"-1ns\")\n  -h, --help            help for member\n  -o, --output string   File to save the output.\n  -t, --token string    Path to the file containing GitHub tokens, 1 token per line (default \"$HOME/.config/gitrepoenum/github-token.txt\")\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum user -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go user -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nFetch GitHub repositories of a single USER or multiple USERS using a list of usernames\n\nExamples:\n$ echo \"rix4uni\" | gitrepoenum user -c -o output.json\n$ cat usernames.txt | gitrepoenum user -c -o output.json\n$ echo \"rix4uni\" | gitrepoenum user --delay 1ns\n$ echo \"rix4uni\" | gitrepoenum user --config custompath/config.yaml -t custompath/github-token.txt\n\nUsage:\n  gitrepoenum user [flags]\n\nFlags:\n      --config string   path to the config.yaml file (default \"$HOME/.config/gitrepoenum/config.yaml\")\n  -c, --custom-field    Custom Fields JSON output\n      --delay string    Delay duration between requests (e.g., 1ns, 1us, 1ms, 1s, 1m) (default \"-1ns\")\n  -h, --help            help for user\n  -o, --output string   File to save the output.\n  -t, --token string    Path to the file containing GitHub tokens, 1 token per line (default \"$HOME/.config/gitrepoenum/github-token.txt\")\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum download -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go download -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nClone Git repositories and customize the directory name to username-repositoryname with an option to clone in parallel.\n\nExamples:\n$ echo \"https://github.com/rix4uni/gitrepoenum.git\" | gitrepoenum download\n$ cat reponames.txt | gitrepoenum download\n$ cat reponames.txt | gitrepoenum download -o ~/allgithubrepo/download\n$ cat reponames.txt | gitrepoenum download -p 100\n$ cat reponames.txt | gitrepoenum download -d 1\n\nUsage:\n  gitrepoenum download [flags]\n\nFlags:\n  -d, --depth int                 Create a shallow clone with a history truncated to the specified number of commits, use -d 0 if you want all commits (default 1)\n  -h, --help                      help for download\n  -o, --output-directory string   Directory to clone the repositories into (default \"/root/allgithubrepo/download\")\n  -p, --parallel int              Number of repositories to clone in parallel (default 10)\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum commit -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go commit -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nThis command retrieves git commit logs based on date and time parameters.\n\nExamples:\n$ gitrepoenum commit -i ~/allgithubrepo/download -d 50s -t before -o ~/allgithubrepo/commits\n$ gitrepoenum commit -i ~/allgithubrepo/download -d 5h -t before -o ~/allgithubrepo/commits\n$ gitrepoenum commit -i ~/allgithubrepo/download -d 1d -t after -o ~/allgithubrepo/commits\n$ gitrepoenum commit -i ~/allgithubrepo/download -d all -o ~/allgithubrepo/commits\n\nDate Options:\n50s     # 50 seconds\n40m     # 40 minutes\n5h      # 5 hours\n1d      # 1 day\n2w      # 2 weeks\n3M      # 3 months\n1y      # 1 year\nall     # All commits\n\nUsage:\n  gitrepoenum commit [input] [flags]\n\nFlags:\n  -d, --date string     Specify the date range for the commits (e.g., 50s, 40m, 5h, 1d, 2w, 3M, 1y, all) (default \"all\")\n  -h, --help            help for commit\n  -i, --input string    Specify the input directory containing Git repositories (default \"/root/allgithubrepo/download\")\n  -o, --output string   Specify the output directory for commit logs (default \"/root/allgithubrepo/commits\")\n  -t, --time string     Specify 'before' or 'after' the given date\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum code -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go code -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nThis command fetches code from multiple commits based on a list in commits.txt for each repository.\n\nExamples:\n$ gitrepoenum code -i ~/allgithubrepo/download -o ~/allgithubrepo/commits\n\nUsage:\n  gitrepoenum code [flags]\n\nFlags:\n  -h, --help            help for code\n  -i, --input string    Specify the input directory containing Git repositories (default \"/root/allgithubrepo/download\")\n  -o, --output string   Specify the output directory for storing commit code (default \"/root/allgithubrepo/commits\")\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003egitrepoenum vuln -h\u003c/b\u003e\n  \u003c/summary\u003e\n\n```\ngo run main.go vuln -h\n\n           _  __\n   ____ _ (_)/ /_ _____ ___   ____   ____   ___   ____   __  __ ____ ___\n  / __  // // __// ___// _ \\ / __ \\ / __ \\ / _ \\ / __ \\ / / / // __  __ \\\n / /_/ // // /_ / /   /  __// /_/ // /_/ //  __// / / // /_/ // / / / / /\n \\__, //_/ \\__//_/    \\___// .___/ \\____/ \\___//_/ /_/ \\__,_//_/ /_/ /_/\n/____/                    /_/\n                                         Current gitrepoenum version v0.0.1\n\nThis command scans multiple repositories for vulnerabilities using TruffleHog\nand saves the results in the specified output directory.\n\nExamples:\n$ gitrepoenum vuln\n$ gitrepoenum vuln -i ~/allgithubrepo/commits -o ~/allgithubrepo/commits\n\nUsage:\n  gitrepoenum vuln [flags]\n\nFlags:\n  -h, --help            help for vuln\n  -i, --input string    Input directory containing repositories code (default \"/root/allgithubrepo/commits\")\n  -o, --output string   Output directory for vulnerability reports (default \"/root/allgithubrepo/commits\")\n```\n\u003c/details\u003e\n\n## Demo\n[asciinema Link](https://asciinema.org/~rix4uni)\n\n## Workflow\n\u003cp align=\"center\"\u003e \n\u003ca href=\"Workflow/gitrepoenum.png\" target=\"_blank\"\u003e \n\u003cimg src=\"Workflow/gitrepoenum.png\"/\u003e\n\u003c/a\u003e  \n\u003c/p\u003e\n\n## TODO\n\n\n## License\nThis tool is open source and available under the [MIT License](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frix4uni%2Fgitrepoenum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frix4uni%2Fgitrepoenum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frix4uni%2Fgitrepoenum/lists"}