Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Reporting html #1166

Closed
Quietiger opened this issue Nov 9, 2016 · 20 comments
Closed

Reporting html #1166

Quietiger opened this issue Nov 9, 2016 · 20 comments

Comments

@Quietiger
Copy link

Cuckoo not creating report.html file..

@doomedraven
Copy link
Contributor

Logs? Details?

@Quietiger
Copy link
Author

I am running cuckoo sandbox in Ubuntu 16.04 xenial and it is working fine, when i tested a malware file the report generated with all the events after test in storage folder with ID numbe have all the file including json but it is not creating a html file for the web interface.

later i installed the reporting module where i added nginx and other dependencies and executed api.py file with default port it is still showing page not found error.

@doomedraven
Copy link
Contributor

api.py not showing html, you need execute python manage runserver from web to see webgui

@Quietiger
Copy link
Author

did that and did some changes to reporting and localsettings:

and this is error

./manage.py runserver
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x7f3521737a28>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper
fn(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 121, in inner_run
self.check(display_num_errors=True)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 420, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:
?: (admin.E402) 'django.contrib.auth.context_processors.auth' must be in TEMPLATES in order to use the admin application.

System check identified 1 issue (0 silenced).

@doomedraven
Copy link
Contributor

i think you have missed dependencies

@doomedraven
Copy link
Contributor

you also need post version of cuckoo, django, etc

@Quietiger
Copy link
Author

okay i will re install the system and look for it..thank you

@doomedraven
Copy link
Contributor

google also probably can help, but you post too small portions to details to tell you what could be wrong

@Quietiger
Copy link
Author

sorry for that i will get back back to you once i finish re installing, as i am doing a project where i am connecting Cuckoo with MISP...and i did so many changes to conf files and now i am lost.. i will redo it again carefully.

@doomedraven
Copy link
Contributor

see the pulls in this repo, you have my pull req about misp integration which works just fine, and also there already misp recon mpdule in processing, in pull req, it upgrate to be able push back to misp

@Quietiger
Copy link
Author

okay thank you...

@Quietiger
Copy link
Author

Hi after installing all the requirements and cuckoo
The error is now this:
root@mvsgroup-VirtualBox:~/cuckoo/web# ./manage.py runserver
Traceback (most recent call last):
File "./manage.py", line 15, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 316, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 53, in getattr
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 97, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/root/cuckoo/web/web/settings.py", line 20, in
raise Exception("Mongo reporting module is not enabled in cuckoo, aborting!")
Exception: Mongo reporting module is not enabled in cuckoo, aborting!

i am using this link to setup cuckoo:
http://hacktr.org/2014/11/12/cuckoo-sandbox-installation/

and also i used cuckoo documentation to install requirements.txt contents

@jbremer
Copy link
Member

jbremer commented Nov 10, 2016

Did you read the last sentence?
** Exception: Mongo reporting module is not enabled in cuckoo, aborting!**

@Quietiger
Copy link
Author

yes.. i installed mongo and upgraded it....do i need to install mongodb server?

@Quietiger
Copy link
Author

i enabled mongo in reporting.conf and encountered a new error:

**root@mvsgroup-VirtualBox:~/cuckoo/web# ./manage.py runserver
Performing system checks...

Unhandled exception in thread started by <function wrapper at 0x7fd2a82f7410>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper
fn(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 121, in inner_run
self.check(display_num_errors=True)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 420, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:

ERRORS:
?: (admin.E402) 'django.contrib.auth.context_processors.auth' must be in TEMPLATES in order to use the admin application.

System check identified 1 issue (0 silenced).**

@jbremer
Copy link
Member

jbremer commented Nov 10, 2016

Which version of Django do you have installed? Can you share the output of pip freeze with us?

@Quietiger
Copy link
Author

root@mvsgroup-VirtualBox:~/cuckoo# pip freeze
adium-theme-ubuntu==0.3.4
alembic==0.8.0
beautifulsoup4==4.4.1
bottle==0.12.7
bson==0.4.3
chardet==2.3.0
click==6.6
cybox==2.0.1.4
Django==1.10.2
dpkt==1.8
dumbnet==1.12
Flask==0.11.1
itsdangerous==0.24
Jinja2==2.8
libvirt-python==1.3.1
lxml==3.6.4
maec==4.0.1.0
Magic-file-extensions==0.2
Mako==1.0.1
MarkupSafe==0.23
pefile==1.2.10.post139
pycparser==2.14
pydeep==0.4
pymongo==3.3.1
python-dateutil==2.5.3
python-editor==0.3
pytz==2016.7
requests==2.11.1
six==1.10.0
SQLAlchemy==1.0.8
unity-lens-photos==1.0
vboxapi==1.0
Werkzeug==0.11.11
XenAPI==1.2
yara-python==3.1

@jbremer
Copy link
Member

jbremer commented Nov 10, 2016

As per requirements.txt we don't support Django version 1.10.2. Please install the appropriate version - we still have to upgrade to the latest version. Closing as resolved.

@jbremer jbremer closed this as completed Nov 10, 2016
@Quietiger
Copy link
Author

which version should i do....just got the latest but still error?

@jbremer
Copy link
Member

jbremer commented Nov 10, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants