
Escáner para la vulnerabilidad Log4j denominada Log4Shell (CVE-2021-44228)
Basado en el Log4jScanner de fullhunt.io, modificado con multithreading y servidor DNS Callback personalizado
pip3 install -r requirements.txt
$ python3 py-log4shellscanner.py -h
[•] CVE-2021-44228 - Apache Log4j RCE Scanner
[•] Proporcionado por https://github.com/scheibling
[•] Desarrollado originalmente por FullHunt.io
[•] Versión 1.0
usage: py-log4shellscanner.py [-h] -d DNSLOG_DOMAIN [-t TARGETS_FILE] [-i HEADERS_FILE] [-c CONCURRENT_REQUESTS] [--skip-waf-bypass] [-p PROXY_SERVER]
options:
-h, --help show this help message and exit
-d DNSLOG_DOMAIN, --dnslog-domain DNSLOG_DOMAIN
The DNSLog domain to use for the requests
-t TARGETS_FILE, --targets-file TARGETS_FILE
The hosts file to use for the requests (default: targets.txt)
-i HEADERS_FILE, --headers HEADERS_FILE
The file containing the headers for the requests (Default: headers.txt)
-c CONCURRENT_REQUESTS, --concurrent-requests CONCURRENT_REQUESTS
The number of concurrent requests to use (Default: 10)
-p PROXY_SERVER, --proxy-server PROXY_SERVER
Proxy server to use for the scans
--skip-waf-bypass Skip the WAF bypass payloads
# Ejecutar un escaneo contra los hosts en targets.txt con cabeceras por defecto y payloads de bypass de WAF (10 peticiones concurrentes)
python3 py-log4shellscanner.py -d dnslog.example.com -t targets.txt -c 10
# Ejecutar un escaneo contra los hosts en targets.txt con cabeceras personalizadas y sin payloads de bypass de WAF (10 peticiones concurrentes)
python3 py-log4shellscanner.py -d dnslog.example.com -t targets.txt -i custom-headers.txt -c 10 --skip-waf-bypass
# Ejecutar un escaneo a través de un servidor proxy con cabeceras personalizadas, 20 peticiones concurrentes y con payloads de bypass de WAF
python3 py-log4shellscanner.py -d dnslog.example.com -t targets.txt -i headers-large.txt -c 20 -p proxy.example.com
Este proyecto se ha creado únicamente con fines de prueba. El uso de py-dnslogserver para atacar objetivos sin consentimiento mutuo previo podría ser ilegal.
El proyecto está bajo la Licencia MIT.