cuckoosandbox / cuckoo

Cuckoo Sandbox is an automated dynamic malware analysis system
http://www.cuckoosandbox.org
Other
5.56k stars 1.7k forks source link

TypeError: community() got an unexpected keyword argument 'file' #2781

Open joselbr2099 opened 5 years ago

joselbr2099 commented 5 years ago

I try to update the signatures with the command:

$ cuckoo community

But I get the following error:

jhon$ cuckoo community
Traceback (most recent call last):
  File "/usr/local/bin/cuckoo", line 11, in <module>
    sys.exit(main())
  File "/home/jhon/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/jhon/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/jhon/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/jhon/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jhon/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/jhon/.local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
TypeError: community() got an unexpected keyword argument 'file'
jhon$ 

this happens to me in 2 computers

cuckoo version: 2.0.7 ubuntu version: 18.04 architecture: x64 python version: 2.7.15+

RicoVZ commented 5 years ago

Hi Odyssey2247,

Thanks for reporting an issue.

I have (yet) not been able to reproduce this. Do any perform any commands before cuckoo community? Could you also tell us how you installed Cuckoo and if you have edited any code after that?

joselbr2099 commented 5 years ago

do not modify anything of cuckoo, this happens to me in 2 computers with ubuntu 18.04 (both use the same version of ubuntu and python), the first three commands I used were:

$cuckoo                    //no errors
$cuckoo -d               //VirtualBox errors by vboxnet0 interface (nothing serious)
$cuckoo community //error 

This is my cuckoo installation process

root# apt-get update 
root# apt-get install volatility 
root# apt-get install python python-pip python-dev libffi-dev libssl-dev python-virtualenv python-setuptools libjpeg-dev zlib1g-dev swig  mongodb postgresql libpq-dev tcpdump apparmor-utils swig libguac-client-rdp0 libguac-client-vnc0 libguac-client-ssh0 guacd
root# pip install -U pip setuptools 
root# pip install -U cuckoo      
root# groupadd pcap 
root# usermod -a -G pcap jhon 
root# chgrp pcap /usr/sbin/tcpdump 
root# chmod 750 /usr/sbin/tcpdump 
root# setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
root# aa-disable /usr/sbin/tcpdump

finally:

jhon$ cuckoo
jhon$ cuckoo -d

cuckoo works normal together with VirtualBox, only when executing;

jhon$ cuckoo comunity

I get that error

joselbr2099 commented 5 years ago

i fixed it simple removing "click" package pip uninstall click