quarkslab / irma

IRMA is an asynchronous & customizable analysis system for suspicious files.
https://irma.quarkslab.com
Apache License 2.0
269 stars 55 forks source link

Query on installation process #74

Closed solveryn91 closed 3 years ago

solveryn91 commented 3 years ago

Hi, i am interested with this framework to be installed for educational purposes but I am not experienced in Linux. I am currently installing on a Ubuntu 20.04 LTS in VirtualBox, as in allinone_dev.

My installation process came to a halt when I attempted to run the following command:

python3 irma-ansible.py environments/allinone_dev.yml playbooks/playbook.yml

install_log.txt

Attached with an install log where the error indicates, and I would like to know how to resolve it.

Thank you.

ch0k0bn commented 3 years ago

Need to investigate this issue, I reproduced it also locally. I guess at the time of v2 we were mainly using python2 for ansible and the different behaviour comes from here, now we are using python3 but with a different version of Ansible (2.8.12 now vs 2.7.12).

As a temporary workaround, could you try using python2 for the irma-ansible command ?

Btw I just added a fix in master for a deprecated url for get-pip.

solveryn91 commented 3 years ago

Thanks for the reply.

So yea I ran with python2 after obtaining the fix , hinted me with missing libraries. Had yaml settled. Then something shown up:

ImportError: No module named ansible.cli.galaxy

Ansible version as below:

ansible 2.7.12 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/irma/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/irma/.local/lib/python3.8/site-packages/ansible executable location = /home/irma/.local/bin/ansible python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]

So far checked with pip install ansible, hinted me that installation requirements already satisfied. Not sure if it was a part from ansible, or current ansible running with python3.

ch0k0bn commented 3 years ago

Could you try inside a python2 virtualenv:

# if needed
$ sudo apt install virtualenv
# create a python2 venv
$ virtualenv -p python2 venv
# activate it
$ source venv2/bin/activate
# install dependencies
$ cd <irma_folder>/ansible
$ pip install -r requirements.txt
# Then launch install
$ python irma-ansible.py environments/allinone_dev.yml playbooks/playbook.yml
solveryn91 commented 3 years ago

Allrite installing as intended, cheers :) The installation went hours so far no problem.

ch0k0bn commented 3 years ago

good to know! :+1: