monkey
monkey copied to clipboard
Agent fails to run via the Island on KDE Neon
Describe the bug
When running the Monkey Island on KDE Neon, running the agent from the Island results in the following error:
Traceback (most recent call last):
File "infection_monkey/main.py", line 13, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/dropper.py", line 14, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/utils/commands.py", line 2, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/exploit/__init__.py", line 3, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/exploit/exploiter_wrapper.py", line 4, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/model/__init__.py", line 2, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/model/victim_host_factory.py", line 5, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/network/__init__.py", line 1, in <module>
File "PyInstaller/loader/pyimod03_importers.py", line 495, in exec_module
File "infection_monkey/network/info.py", line 10, in <module>
ModuleNotFoundError: No module named 'psutil'
[78548] Failed to execute script 'main' due to unhandled exception!
Note that this occurs with a fresh agent build.
To Reproduce
Steps to reproduce the behavior:
- Set up the development environment on KDE Neon.
This was discovered on commit 7f915d987a4e0ccf87fa8804137732a8d8f03950. Unfortunately the script can only manage checking out a specific branch/tag and not a specific commit. Therefore, the deployment scripts are not an option, unless you edit the clone command to checkout the appropriate commit. Also note that the script will fail on the call to
install_mongo.sh, as KDE Neon is not officially supported. However, Mongo can be manually installed the remaining commands can be done manually in order to complete the dev setup. -
Build the agent as described in
monkey/infection_monkey/readme.md, under the Linux section. -
Run Monkey Island as described in
monkey/monkey_island/readme.md, under the On Linux section. - In the Monkey Island UI, and under 1. Run Monkey select From Island.
Expected behavior
You should observe the error in the Monkey Island log.
Screenshots
Machine version (please complete the following information):
- OS: KDE neon User Edition 5.22