Closed berssutti closed 1 year ago
hey did you ensure that agent is running inside of the VM? the confs are correct, we don't use vbox so idk if that is some vbox problems
Hi, thank you for your reply. I had the agent.py running already, here's a screenshot of the agent output in the vm ip adress:
One thing I forgot to mention, is that every time I execute the poetry run python3 cuckoo.py
command, it print a message saying that the alias "CAPE_SERVICE" is already defined. I didn't understand what that message means, and I couldn't say if it is connected to the error I am having.
if your vm is running, then it sound like vbox changed some of the apis maybe to get state etc, if you want to dig into that here is the code for vbox https://github.com/kevoreilly/CAPEv2/blob/master/modules/machinery/virtualbox.py
we don't use vbox so you will need to handle that by yourself or wait till someone who uses that tries to find the problem
Sorry, random person who just happened to install CAPE with vbox haha. I ran into a similar warning message about the VM state being unable to be found. Mine was a networking issue, so I would double check that all the networking stuff is in order.
ip addr
are you seeing vboxnet0?Once I got all that sorted, I was able to start analyses. Sorry if it isn't that much help, but since I was also plagued by this error message, I figured I would throw some troubleshooting steps out :)
thank you @mjdepuy. any extra input is useful for area where devs can't help. lets see if that helps him
Thanks for the replies @doomedraven @mjdepuy. I'll give it a try now and let you know how it goes ASAP.
I was unable to make it work with VBox, so I ended up installing KVM and setting up Cape to run with it. Although I am no longer encountering the same errors as before, I am still having trouble in obtaining results.
After running Cape for several minutes, I receive the following error message: ERROR: Machine win10: the guest initialization hit the critical timeout, analysis aborted
. It appears that the error is occurring in this session of the code (guest.py):
I attempted to debug with Python console to determine whether the connection is happening or not, and apparently it is.
I've run out of ideas on what I could do to solve this.
Another error is occurring with the database when I attempt to submit an .exe file. Which is strange because this issue does not occur with a .dll file. Sadly, I don't have a clue what's causing this error.
Error: adding task to database
I have successfully resolved the error with the guest initialization. However, although my code can now process .dll files(I am still unable to submit .exe files), the logs of execution are not being sent to the result server. When I refreshed the result server IP, I received the message: WARNING: ResultServer did not have a task for IP 192.168.122.1.
While debugging, I discovered that this issue is occurring because the code is attempting to retrieve the value of the host's IP address, while the task_id value is stored in the guest IP. I am not sure if this is intentional or not, and I cannot locate where this function is called. I would appreciate any help in resolving this issue.
well it works just fine for us, so you should have something bad in configuration of kvm or vm, not sure
About accounts on capesandbox.com
This is open source and you are getting free support so be friendly!
Prerequisites
Please answer the following questions for yourself before submitting an issue.
custom/conf/
Expected Behavior
Having the files processed and the results of processing in the
storage/analysis
folder or in the ip address I configured.Current Behavior
When I run the application with
poetry run python3 cuckoo.py
and then submit a analysis withsudo -u cape poetry run python3 submit.py /path/to/binary/test.exe
nothing happens. When I tried to reload the address where I configured the results to be(192.168.56.1:2042), it gives me aWARNING: ResultServer did not have a task for IP 192.168.56.1
. After several minute I got a critical errorCRITICAL: CuckooCriticalError: Please update your configuration. Unable to shut 'Win7' down or find the machine in its proper state: Timeout hit while for machine Win7 to change status
.cuckoo.conf
virtualbox.conf
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions. Operating system version, bitness, installed software versions, test sample details/hash/binary (if applicable).
$ git log \| head -n1
to find outFailure Logs
Please include any relevant log snippets or files here.