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

Get "several No module" errors and "permission denied" when run cuckoo.py #308

Closed
alishaf opened this issue Jul 29, 2022 · 5 comments
Closed

Comments

@alishaf
Copy link

alishaf commented Jul 29, 2022

Hi, Will be thankful to help me with this issue.

I installed and configure capev2 using its documentation. The OS is ubuntu 20.04 LTS.

There are some "no module named ..." errors and one permission error for:
PermissionError: [Errno 13] Permission denied: '/opt/CAPEv2/log/cuckoo.log'

This is the output of running python3 cuckoo.py in /opt/CAPEv2/:
(As an example, I tried to install BumbleBee by pip3, but the error is not solved.)

CAPE parser: No module named BumbleBee - No module named 'regex'
CAPE parser: No module named CobaltStrikeBeacon - No module named 'netstruct'
CAPE parser: No module named Blister - No module named 'malduck'

.-----------------.
| Cuckoo Sandbox? |
| OH NOES! |\ '-.__.-'
'-----------------' \ /oo |--.--,--,--.
_.-'.i__i__i.'
"""""""""

Cuckoo Sandbox 2.2-CAPE
www.cuckoosandbox.org
Copyright (c) 2010-2015

CAPE: Config and Payload Extraction
github.com/kevoreilly/CAPEv2

Traceback (most recent call last):
File "cuckoo.py", line 118, in
cuckoo_init(quiet=args.quiet, debug=args.debug, artwork=args.artwork, test=args.test)
File "cuckoo.py", line 76, in cuckoo_init
init_logging(level)
File "/opt/CAPEv2/lib/cuckoo/core/startup.py", line 176, in init_logging
fh = logging.handlers.TimedRotatingFileHandler(
File "/usr/lib/python3.8/logging/handlers.py", line 200, in init
BaseRotatingHandler.init(self, filename, 'a', encoding, delay)
File "/usr/lib/python3.8/logging/handlers.py", line 55, in init
logging.FileHandler.init(self, filename, mode, encoding, delay)
File "/usr/lib/python3.8/logging/init.py", line 1147, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python3.8/logging/init.py", line 1176, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/opt/CAPEv2/log/cuckoo.log'

@doomedraven
Copy link
Collaborator

doomedraven commented Jul 29, 2022 via email

@doomedraven
Copy link
Collaborator

doomedraven commented Jul 29, 2022

Google missed modules and what is bumblebee

@alishaf
Copy link
Author

alishaf commented Jul 29, 2022

First of all wrong repo. Second you should run e everything as cape user El vie, 29 jul 2022 16:57, alishaf @.***> escribió:

Thank you for your help.
Firstly, what do you mean by the wrong repo?
Secondly, I logged in as cape user after reading your comment. Then when I start cuckoo it gives the first error I got when I executed with my own user. which is: "ERROR: Missing dependency: No module named 'gevent'"

When I executed cuckoo.py as my own user I got this error too. I solved the issues one by one and now I'm in the state I mentioned in the post.

Sorry if my questions are dumb.

@alishaf
Copy link
Author

alishaf commented Jul 29, 2022

Ok I solved the the "no modules ...".
I still have the permission issue. So shall I reinstall everything with cape user??

@doomedraven
Copy link
Collaborator

doomedraven commented Jul 29, 2022 via email

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