{"id":13843942,"url":"https://github.com/BugScanTeam/GitHack","last_synced_at":"2025-07-11T20:30:57.468Z","repository":{"id":48148792,"uuid":"82994967","full_name":"BugScanTeam/GitHack","owner":"BugScanTeam","description":".git 泄漏利用工具，可还原历史版本","archived":true,"fork":false,"pushed_at":"2020-02-25T10:15:12.000Z","size":45,"stargazers_count":724,"open_issues_count":5,"forks_count":150,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-21T15:39:38.381Z","etag":null,"topics":["git","vulnerabilities"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/BugScanTeam.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":"2017-02-24T02:58:50.000Z","updated_at":"2024-11-19T14:40:26.000Z","dependencies_parsed_at":"2022-08-22T20:21:08.336Z","dependency_job_id":null,"html_url":"https://github.com/BugScanTeam/GitHack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BugScanTeam/GitHack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugScanTeam%2FGitHack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugScanTeam%2FGitHack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugScanTeam%2FGitHack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugScanTeam%2FGitHack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BugScanTeam","download_url":"https://codeload.github.com/BugScanTeam/GitHack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugScanTeam%2FGitHack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264892044,"owners_count":23679210,"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":["git","vulnerabilities"],"created_at":"2024-08-04T17:02:31.120Z","updated_at":"2025-07-11T20:30:57.123Z","avatar_url":"https://github.com/BugScanTeam.png","language":"Python","funding_links":[],"categories":["Python (1887)","Python"],"sub_categories":[],"readme":"# GitHack\n\n\u003e `.git` 泄漏利用工具，可还原历史版本\n\n### 依赖\n\n\u003e 不需要安装其它 Python 库，只需要有 git 命令\n\n* git\n    * ubuntu/debian: `$ apt-get install git`\n    * redhat/centos: `$ yum install git`\n    * windows [git-for-windows下载](https://github.com/git-for-windows/git/releases/latest)\n\n**使用前需确保 git 在 环境变量中**\n\n### 使用方法\n\n```\npython GitHack.py http://www.example.com/.git/\n```\n\n\u003e 还原后的文件在 `dist/` 目录下\n\n### 工作流程\n\n1. 尝试获取 `packs`克隆\n2. 尝试目录遍历克隆\n3. 尝试从缓存文件(index)、commit记录中恢复\n\n### 截图\n\n![](http://7xtigg.com1.z0.glb.clouddn.com/githack.png)\n\n### 相关链接\n\n* [BugScan](http://www.bugscan.net)\n* [GitHack - lijiejie](https://github.com/lijiejie/GitHack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBugScanTeam%2FGitHack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBugScanTeam%2FGitHack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBugScanTeam%2FGitHack/lists"}