
GitPwnd is a network penetration tool that lets you use a git repo for command and control of compromised machines
GitPwnd 是一个在网络渗透测试中使用的工具。GitPwnd 允许攻击者向被攻陷的机器发送命令,并使用 git 仓库作为命令与控制传输层接收结果。通过使用 git 作为通信机制,被攻陷的机器无需直接与你的攻击服务器通信,而攻击服务器的主机或 IP 很可能被被攻陷的机器视为不可信。
目前 GitPwnd 假设命令与控制 git 仓库托管在 GitHub 上,但这只是当前迭代的实现细节。同样的技术同样适用于任何可以托管 git 仓库的服务,无论是 BitBucket、Gitlab 等。
GitPwnd 的设置脚本(setup.py)和服务器(server/)是使用 Python3 编写和测试的,但 Python 2.7 很可能也能正常工作。在被攻陷的机器上建立持久化的引导过程是在 Python 2.7 上测试的。
# 安装 Python 依赖
$ pip3 install -r requirements.txt --user
# 设置配置
$ cp config.yml.example config.yml
# 使用你的自定义信息配置 config.yml
# 运行设置脚本
$ python3 setup.py config.yml
$ cd server/
$ pip3 install -r requirements.txt --user
$ python3 server.py
欢迎贡献!请随时提交 issue 或 PR,我们会尽快回复。