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

VirustotalSearch returns 500 error #48

Closed
Lost4Now opened this issue Nov 20, 2016 · 1 comment
Closed

VirustotalSearch returns 500 error #48

Lost4Now opened this issue Nov 20, 2016 · 1 comment

Comments

@Lost4Now
Copy link

Doing virustotalsearch from ProcDump returns a 500.

Log output:
ERROR Internal Server Error: /ajaxhandler/VirusTotalSearch/
Traceback (most recent call last):
File "/home/steven/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "/home/steven/.local/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/steven/.local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/opt/VolUtility/web/views.py", line 673, in ajax_handler
extension.run()
File "/opt/VolUtility/extensions/virustotalsearch/virustotalsearch.py", line 40, in run
vt = PublicApi(self.config.api_key)
AttributeError: 'dict' object has no attribute 'api_key'

I fixed the problem by changing line 40 in the script from:
vt = PublicApi(self.config.api_key)

to:
vt = PublicApi(self.config['virustotal']['api_key'])

Sorry I don't have time or the mental capability tonight to do a pull request sorry.

@kevthehermit
Copy link
Owner

Thanks will fix in the morning

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

No branches or pull requests

2 participants