Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pierre42100
Copy link

@pierre42100 pierre42100 commented Aug 22, 2022

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

```
[•] 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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant