{"id":24975818,"url":"https://github.com/4m3rr0r/gitversionhashsearch","last_synced_at":"2025-03-29T08:15:46.484Z","repository":{"id":260904789,"uuid":"882675340","full_name":"4m3rr0r/GitVersionHashSearch","owner":"4m3rr0r","description":"GitVersionHashSearch is a bash script designed for bug bounty hunters, CTF participants, and red team operations. It allows you to search for specific patterns in the MD5 hashes of all versions of a file in a Git repository, making it a valuable tool for security assessments and exploit development.","archived":false,"fork":false,"pushed_at":"2024-11-03T13:41:01.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T21:58:06.021Z","etag":null,"topics":["bugbounty","ctf","gitversion","gitversionhashsearch","red-team"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4m3rr0r.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-03T13:17:41.000Z","updated_at":"2025-01-26T18:59:25.000Z","dependencies_parsed_at":"2024-11-03T14:35:02.490Z","dependency_job_id":null,"html_url":"https://github.com/4m3rr0r/GitVersionHashSearch","commit_stats":null,"previous_names":["4m3rr0r/gitversionhashsearch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4m3rr0r%2FGitVersionHashSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4m3rr0r%2FGitVersionHashSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4m3rr0r%2FGitVersionHashSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4m3rr0r%2FGitVersionHashSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4m3rr0r","download_url":"https://codeload.github.com/4m3rr0r/GitVersionHashSearch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156417,"owners_count":20732397,"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","ctf","gitversion","gitversionhashsearch","red-team"],"created_at":"2025-02-03T21:58:13.208Z","updated_at":"2025-03-29T08:15:46.455Z","avatar_url":"https://github.com/4m3rr0r.png","language":"Shell","readme":"# GitVersionHashSearch\nGitVersionHashSearch is a bash script designed for bug bounty hunters, CTF participants, and red team operations. It allows you to search for specific patterns in the MD5 hashes of all versions of a file in a Git repository, making it a valuable tool for security assessments and exploit development.\n\n## Features\n\n- Search through the commit history of a specified file.\n- Output commit hashes and their corresponding MD5 hashes.\n- Optionally display the full commit details for matching MD5 hashes.\n\n## Use Cases\n\n- **Bug Bounty**: Identify vulnerabilities in version-controlled files by analyzing changes over time.\n- **CTF**: Quickly search for specific file changes that might contain flags or sensitive information.\n- **Red Team**: Analyze source code history to find potential exploits and sensitive data exposure.\n\n## Usage\n\nTo use the script, follow these steps:\n\n1. Clone the repository or download the script.\n   ```bash\n   https://github.com/4m3rr0r/GitVersionHashSearch.git\n    ```\n2. Make the script executable:\n   ```bash\n   chmod +x GitVersionHashSearch\n    ```\n3. Run the script with the required arguments:\n\n   ```bash\n    ./GitVersionHashSearch -f \u003cfile_path\u003e -h \u003csearch_pattern\u003e [-s]\n    ```\n\n## Options\n- -f \u003cfile_path\u003e: Specify the path to the file in the Git repository.\n- -h \u003csearch_pattern\u003e: Specify the pattern to search for in the MD5 hash.\n- -s: (Optional) Show the full git show output for each matching commit hash.\n\n\n## Example\n\nTo search for a specific MD5 hash pattern in `composer.json` and display full commit details, run the following command:\n\n```bash\n./GitVersionHashSearch.sh -f composer.json -h cb280572f9fe74315bd568b3a3bf2905 -s\n```\n### output\nWhen you run the above command, you can expect output similar to this:\n\n```bash\nCommit Hash                              MD5 Hash                        \n------------                             --------                        \nc85e9852dff1f380094a947ce3ab39e723458d2f cb280572f9fe74315bd568b3a3bf2905\n\nFull details for commit c85e9852dff1f380094a947ce3ab39e723458d2f:\ncommit c85e9852dff1f380094a947ce3ab39e723458d2f\nAuthor: Borja Sánchez \u003c114572427+BorjaSanchezBeezNest@users.noreply.github.com\u003e\nDate:   Tue Aug 1 14:10:32 2023 +0200\n\n    Plugin: H5P Import: Add first H5P import plugin implementation - refs BT#20717\n\n    Author: @BorjaSanchezBeezNest\n\ndiff --git a/composer.json b/composer.json\nindex 94206ad0a5..30bdca120f 100755\n--- a/composer.json\n+++ b/composer.json\n@@ -68,6 +68,7 @@\n         \"graphp/algorithms\": \"~0.8.0\",\n         \"graphp/graphviz\": \"~0.2.0\",\n         \"guzzlehttp/guzzle\": \"~6.0\",\n+        \"h5p/h5p-core\": \"*\",\n         \"imagine/imagine\": \"0.6.3\",\n         \"ircmaxell/password-compat\": \"~1.0.4\",\n         \"jbroadway/urlify\": \"1.1.0-stable\",\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4m3rr0r%2Fgitversionhashsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4m3rr0r%2Fgitversionhashsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4m3rr0r%2Fgitversionhashsearch/lists"}