From 6b6cfbfc29ddee64d54dfdf54890760a44578670 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 10 Aug 2021 09:29:48 +0530 Subject: [PATCH] island: Change keyword argument in send_from_directory() (changed in flask 2.0) which was causing issues in T1216 --- monkey/monkey_island/cc/resources/T1216_pba_file_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/T1216_pba_file_download.py b/monkey/monkey_island/cc/resources/T1216_pba_file_download.py index de79d2e72..906d4c97f 100644 --- a/monkey/monkey_island/cc/resources/T1216_pba_file_download.py +++ b/monkey/monkey_island/cc/resources/T1216_pba_file_download.py @@ -16,5 +16,5 @@ class T1216PBAFileDownload(flask_restful.Resource): executable_file_name = "T1216_random_executable.exe" return send_from_directory( directory=os.path.join(MONKEY_ISLAND_ABS_PATH, "cc", "resources", "pba"), - filename=executable_file_name, + path=executable_file_name, )