
log4j2 RCE 취약점(CVE-2021-44228) 내부망 스캐너로, 네트워크에 연결되지 않은 상태에서도 취약점 스캔을 수행할 수 있으며, 기업 내부에서 Log4jShell 취약점을 신속하게 발견할 수 있도록 도와줍니다.
log4j2 RCE 취약점(CVE-2021-44228) 내부망 스캐너로, 인터넷에 연결되지 않은 환경에서도 취약점 스캔이 가능하며, 기업 내부에서 Log4jShell 취약점을 신속하게 발견할 수 있도록 돕습니다.
수정 출처: https://github.com/fullhunt/log4j-scan
JNDIMonitor 출처: r00tSe7en/JNDIMonitor: LDAP 요청 모니터링 도구, dnslog 플랫폼 불필요 (github.com)
본 도구는 학습 및 연구를 위한 자체 점검 용도로만 사용해야 하며, 불법적인 용도로 사용하지 마십시오. 이 도구를 사용하여 발생하는 모든 위험은 사용자 본인에게 있습니다!
JNDIMonitor-2.0.1-SNAPSHOT.jar와 log4j-scan.py는 반드시 같은 디렉터리에 위치해야 합니다.
공인 IP에서 실행 가능 (인터넷 스캔), 로컬에서 실행 가능 (내부망 스캔)
java -jar JNDIMonitor-2.0.1-SNAPSHOT.jar -i 192.168.1.11



pip3 install -r requirements.txt
python3 log4j-scan.py -u http://192.168.111.129:8080/webstudy/hello-fengxuan --ldap-addr 192.168.1.11:1389
python3 log4j-scan.py -u http://192.168.111.129:8080/webstudy/hello-fengxuan --ldap-addr 192.168.1.11:1389 --run-all-tests


python3 log4j-scan.py -u http://192.168.111.129:8080/webstudy/hello-fengxuan --ldap-addr 192.168.1.11:1389 --run-all-tests --waf-bypass
python3 log4j-scan.py -l urls.txt --ldap-addr 192.168.1.11:1389 --run-all-tests
python3 log4j-scan.py -l urls.txt --ldap-addr 192.168.1.11:1389 --run-all-tests --waf-bypass
python3 log4j-scan.py -h
[•] CVE-2021-44228 - Apache Log4j RCE Scanner
usage: log4j-scan.py [-h] [-u URL] [-p PROXY] [-l USEDLIST] [--request-type REQUEST_TYPE]
[--headers-file HEADERS_FILE] [--run-all-tests] [--exclude-user-agent-fuzzing]
[--wait-time WAIT_TIME] [--waf-bypass] [--test-CVE-2021-45046]
[--ldap-addr CUSTOM_DNS_CALLBACK_ADDR] [--disable-http-redirects]
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Check a single URL.
-p PROXY, --proxy PROXY
send requests through proxy
-l USEDLIST, --list USEDLIST
Check a list of URLs.
--request-type REQUEST_TYPE
Request Type: (get, post) - [Default: get].
--headers-file HEADERS_FILE
Headers fuzzing list - [default: headers.txt].
--run-all-tests Run all available tests on each URL.
--exclude-user-agent-fuzzing
Exclude User-Agent header from fuzzing - useful to bypass weak checks on User-Agents.
--wait-time WAIT_TIME
Wait time after all URLs are processed (in seconds) - [Default: 5].
--waf-bypass Extend scans with WAF bypass payloads.
--test-CVE-2021-45046
Test using payloads for CVE-2021-45046 (detection payloads).
--ldap-addr CUSTOM_DNS_CALLBACK_ADDR
Custom DNS Callback Address.
--disable-http-redirects
Disable HTTP redirects. Note: HTTP redirects are useful as it allows the payloads to have higher chance of reaching vulnerable systems.