Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

GitHack

> 开发工具
Open source

.git 泄漏利用工具,可还原历史版本

764 stars0 likes0 views
WebsiteGitHub

About

.git 泄漏利用工具,可还原历史版本

GitHack

.git 泄漏利用工具,可还原历史版本

依赖

不需要安装其它 Python 库,只需要有 git 命令

  • git
    • ubuntu/debian: $ apt-get install git
    • redhat/centos: $ yum install git
    • windows git-for-windows下载

使用前需确保 git 在 环境变量中

使用方法

bash
python GitHack.py http://www.example.com/.git/

还原后的文件在 dist/ 目录下

工作流程

  1. 尝试获取 packs克隆
  2. 尝试目录遍历克隆
  3. 尝试从缓存文件(index)、commit记录中恢复

截图

相关链接

  • BugScan
  • GitHack - lijiejie

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythongitvulnerabilities

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具