From bfa35a2e2343d2aad0cb916e800b28ed973026f5 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 22 Feb 2018 16:58:08 +0100 Subject: [PATCH 1/2] fix: Added missing python3 dependencies for alertHandler (running under p3 for pymisp) --- installing_deps.sh | 4 +++- pip3_packages_requirement.txt | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pip3_packages_requirement.txt diff --git a/installing_deps.sh b/installing_deps.sh index 17e9c54b..c47a63a3 100755 --- a/installing_deps.sh +++ b/installing_deps.sh @@ -13,7 +13,6 @@ sudo apt-get install libssl-dev libfreetype6-dev python-numpy -y #pyMISP sudo apt-get -y install python3-pip -sudo pip3 install pymisp # DNS deps sudo apt-get install libadns1 libadns1-dev -y @@ -95,6 +94,7 @@ mkdir -p $AIL_HOME/LEVEL_DB_DATA/{$year1,$year2} pip install -U pip pip install -U -r pip_packages_requirement.txt +pip3 install -U -r pip3_packages_requirement.txt # Pyfaup pushd faup/src/lib/bindings/python/ @@ -105,6 +105,8 @@ popd pushd tlsh/py_ext python setup.py build python setup.py install +python3 setup.py build +python3 setup.py install # Download the necessary NLTK corpora and sentiment vader HOME=$(pwd) python -m textblob.download_corpora diff --git a/pip3_packages_requirement.txt b/pip3_packages_requirement.txt new file mode 100644 index 00000000..37610854 --- /dev/null +++ b/pip3_packages_requirement.txt @@ -0,0 +1,13 @@ +pymisp + +redis +filemagic +crcmod +mmh3 +ssdeep +tlsh +nltk +textblop + +pubsublogger +zmq From 42c1511528edeb707578ad9882050c26f7e61dbb Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 23 Feb 2018 09:27:40 +0100 Subject: [PATCH 2/2] fix: correct package names and more privilege for installing tlsh --- installing_deps.sh | 4 ++-- pip3_packages_requirement.txt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/installing_deps.sh b/installing_deps.sh index c47a63a3..9d066031 100755 --- a/installing_deps.sh +++ b/installing_deps.sh @@ -105,8 +105,8 @@ popd pushd tlsh/py_ext python setup.py build python setup.py install -python3 setup.py build -python3 setup.py install +sudo python3 setup.py build +sudo python3 setup.py install # Download the necessary NLTK corpora and sentiment vader HOME=$(pwd) python -m textblob.download_corpora diff --git a/pip3_packages_requirement.txt b/pip3_packages_requirement.txt index 37610854..f9677ad1 100644 --- a/pip3_packages_requirement.txt +++ b/pip3_packages_requirement.txt @@ -5,9 +5,8 @@ filemagic crcmod mmh3 ssdeep -tlsh nltk -textblop +textblob pubsublogger zmq