fullhunt / log4j-scan

A fully automated, accurate, and extensive scanner for finding log4j RCE CVE-2021-44228
MIT License
3.4k stars 741 forks source link

Fix issue on interact.sh `pull_logs` function ('NoneType' object is not iterable) #130

Open pierre42100 opened 2 years ago

pierre42100 commented 2 years ago

Add a null check before iterating in pull_logs to avoid this error:

[•] Payloads sent to all URLs. Waiting for DNS OOB callbacks.
[•] Waiting...
    main()
  File "/app/log4j-scan.py", line 401, in main
    records = dns_callback.pull_logs()
  File "/app/log4j-scan.py", line 257, in pull_logs
    for i in data_list:
TypeError: 'NoneType' object is not iterable