From a23317ecdf21f4ba5ff3b56296cfcb485b0a1e4f Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Sun, 13 Aug 2017 17:13:39 +0300 Subject: [PATCH 1/2] Fix deb package requirement --- monkey_island/deb-package/DEBIAN/postinst | 4 ++++ monkey_island/deb-package/monkey_island_pip_requirements.txt | 1 - monkey_island/requirements.txt | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monkey_island/deb-package/DEBIAN/postinst b/monkey_island/deb-package/DEBIAN/postinst index f30767760..3b9ba92ff 100644 --- a/monkey_island/deb-package/DEBIAN/postinst +++ b/monkey_island/deb-package/DEBIAN/postinst @@ -6,9 +6,13 @@ INSTALLATION_FOLDER=/var/monkey_island/installation cp -f ${MONKEY_FOLDER}/monkey.sh /usr/bin/monkey chmod 755 /usr/bin/monkey +# Fix dependency bug +pip uninstall -y bson + # install pip requirements pip install -r $MONKEY_FOLDER/pip_requirements.txt --no-index --find-links file://$INSTALLATION_FOLDER + # remove installation folder and unnecessary files rm -rf ${INSTALLATION_FOLDER} rm -f ${MONKEY_FOLDER}/pip_requirements.txt diff --git a/monkey_island/deb-package/monkey_island_pip_requirements.txt b/monkey_island/deb-package/monkey_island_pip_requirements.txt index 149f8667f..ee11b691f 100644 --- a/monkey_island/deb-package/monkey_island_pip_requirements.txt +++ b/monkey_island/deb-package/monkey_island_pip_requirements.txt @@ -5,7 +5,6 @@ jinja2 markupsafe itsdangerous click -bson flask Flask-Pymongo Flask-Restful \ No newline at end of file diff --git a/monkey_island/requirements.txt b/monkey_island/requirements.txt index 149f8667f..ee11b691f 100644 --- a/monkey_island/requirements.txt +++ b/monkey_island/requirements.txt @@ -5,7 +5,6 @@ jinja2 markupsafe itsdangerous click -bson flask Flask-Pymongo Flask-Restful \ No newline at end of file From 943ac023c6d4cc324e238eb7d23fcad02d7ced79 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Sun, 13 Aug 2017 17:51:45 +0300 Subject: [PATCH 2/2] Add warning in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9df617a6f..bb331007e 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ The Monkey itself has been tested on Windows XP, 7, 8.1 and 10. The Linux build ### Installation +Warning! The Debian package will uninstall the python library 'bson' because of an issue with pymongo. You can reinstall it later, but monkey island will probably not work. + For off-the-shelf use, download our Debian package from our website and follow the guide [written in our blog](https://www.guardicore.com/2016/07/infection-monkey-loose-2/). To manually set up and the C&C server follow the instructions on [Monkey Island readme](monkey_island/readme.txt). If you wish to compile the binaries yourself, follow the instructions under Building the Monkey from Source.