diff --git a/monkey/monkey_island/cc/server_utils/file_utils.py b/monkey/monkey_island/cc/server_utils/file_utils.py index 73f13e05e..10e8d5760 100644 --- a/monkey/monkey_island/cc/server_utils/file_utils.py +++ b/monkey/monkey_island/cc/server_utils/file_utils.py @@ -21,6 +21,12 @@ if is_windows_os(): import monkey_island.cc.server_utils.windows_permissions as windows_permissions +def get_file_contents(file_path: Path) -> str: + with open(file_path, "rt") as f: + file_contents = f.read() + return file_contents + + def create_secure_directory(path: Path): if not path.is_dir(): if is_windows_os():