GhostManager / Shepherd

A Django application to help red team operators manage a library of domain names
https://medium.com/@cmaddy/being-a-good-domain-shepherd-part-2-5e8597c3fe63
161 stars 37 forks source link

Domain Updates Failed #8

Closed kcoble closed 5 years ago

kcoble commented 5 years ago

Get the following error when running the Domain Update

argument of type 'NoneType' is not iterable : Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/django_q/cluster.py", line 377, in worker res = f(*task['args'], **task['kwargs']) File "/opt/Shepherd/tasks.py", line 103, in check_domains lab_results = domain_review.check_domain_status() File "/opt/Shepherd/modules/review.py", line 421, in check_domain_status if 'categories' in vt_results: TypeError: argument of type 'NoneType' is not iterable

ghost commented 5 years ago

This appears to take place when the VirusTotal API key is not configured. The error is not helpful at all but running through the code revealed the issue. You can request a free API key here and configure it in the settings.py file.

chrismaddalena commented 5 years ago

What @mut8nt mentioned above is accurate. The code changed a ton in the big August release for BlackHat, but that code has not moved over to the standalone Shepherd repo just yet. I plan to bring over those changes (from Ghostwriter) next week.