Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
git-dumper — 一个用于从网站转储Git仓库的工具 | Kitploit
工具/GitHubGitHub/arthaud/git-dumper
侦察漏洞分析信息收集Web安全
GitHubarthaud/git-dumper

git-dumper

一个用于从网站转储Git仓库的工具

查看仓库
2.6k3051个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

git-dumper

一个从网站转储 git 仓库的工具。

安装

可以通过 pip 轻松安装:

root@kitploit:~
pip install git-dumper

使用

root@kitploit:~
usage: git-dumper [options] URL DIR

Dump a git repository from a website.

positional arguments:
  URL                   url
  DIR                   output directory

optional arguments:
  -h, --help            show this help message and exit
  --proxy PROXY         use the specified proxy
  -j JOBS, --jobs JOBS  number of simultaneous requests
  -r RETRY, --retry RETRY
                        number of request attempts before giving up
  -t TIMEOUT, --timeout TIMEOUT
                        maximum time in seconds before giving up
  -u USER_AGENT, --user-agent USER_AGENT
                        user-agent to use for requests
  -H HEADER, --header HEADER
                        additional http headers, e.g `NAME=VALUE`
  --client-cert-p12 CLIENT_CERT_P12
                        client certificate in PKCS#12 format
  --client-cert-p12-password CLIENT_CERT_P12_PASSWORD
                        password for the client certificate
  -b BRANCH, --branch BRANCH
                        additional branch name to check for (repeatable)

示例

root@kitploit:~
git-dumper http://website.com/.git ~/website

免责声明

请自行承担使用本软件的风险!

您应当知道,如果您下载的仓库受到攻击者控制,这可能导致您的计算机被远程执行代码。

从源码构建

只需用 pip 安装依赖:

root@kitploit:~
pip install -r requirements.txt

然后,直接运行:

root@kitploit:~
./git_dumper.py http://website.com/.git ~/website

工作原理

该工具首先检查目录列表是否可用。如果可用,则只需递归下载 .git 目录(相当于用 wget 下载)。

如果目录列表不可用,它将使用多种方法尽可能多地查找文件。git-dumper 会逐步执行以下操作:

  • 获取所有常见文件(.gitignore、.git/HEAD、.git/index 等);
  • 通过分析 .git/HEAD、.git/logs/HEAD、.git/config、.git/packed-refs 等,尽可能多地查找引用(如 refs/heads/master、refs/remotes/origin/HEAD 等);
  • 通过分析 .git/packed-refs、.git/index、.git/refs/* 和 .git/logs/*,尽可能多地查找对象(sha1);
  • 递归获取所有对象,分析每次提交以查找它们的父提交;
  • 运行 git checkout . 来恢复当前工作树。
下载工具