Skip to content

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

Open
pierre42100 wants to merge 1 commit intofullhunt:masterfrom
pierre42100:master
Open

Fix issue on interact.sh pull_logs function ('NoneType' object is not iterable)#130
pierre42100 wants to merge 1 commit intofullhunt:masterfrom
pierre42100:master

Conversation

@pierre42100
Copy link
Copy Markdown

@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