
A micro lab for CVE-2021-44228 (log4j)
A micro lab (playground?) for CVE-2021-44228 (log4j)
% pip3 install pyasn1 pyjnius git+https://github.com/tasooshi/horrors
Copy and adjust the attacker_config.py.example configuration file.
Listens on 8080 by default and exposes two paths: / and /endpoint:
$ cd Vulnerable; mvn spring-boot:run
This daemon collects data incoming from exploited machines and logs into a JSON file:
(.venv) $ ./collector.py
Opens up several ports that get proxied to a single JNDI handler (class JNDI(services.Service)). Starts sending requests automatically:
(.venv) $ ./attacker.py
Visit http://127.0.0.1:8889/send-requests to resend the requests.
So, in the end you should have the following services running:
collector.py at port 8888attacker.py for static content and control at port 8889attacker.py at ports 1389 and 8443Vulnerable.java at port 8080