From 9acc2d8df528f7a39e4626986471a57cbc5ca02f Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Fri, 5 Aug 2022 09:42:38 +0200 Subject: [PATCH] Island: Rename 'api/file-upload' to 'api/pba/upload' --- monkey/monkey_island/cc/resources/pba_file_upload.py | 7 +++---- .../cc/ui/src/components/pages/ConfigurePage.js | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/monkey/monkey_island/cc/resources/pba_file_upload.py b/monkey/monkey_island/cc/resources/pba_file_upload.py index f30bdeeb2..c62272e7c 100644 --- a/monkey/monkey_island/cc/resources/pba_file_upload.py +++ b/monkey/monkey_island/cc/resources/pba_file_upload.py @@ -19,15 +19,14 @@ WINDOWS_PBA_TYPE = "PBAwindows" # NOTE: This resource will be reworked when the Custom PBA feature is rebuilt as a payload plugin. class PBAFileUpload(AbstractResource): - # API Spec: FileUpload -> PBAFileUpload. Change endpoint accordingly. """ File upload endpoint used to send/receive Custom PBA files """ urls = [ - "/api/file-upload/", - "/api/file-upload/?load=", - "/api/file-upload/?restore=", + "/api/pba/upload/", + "/api/pba/upload/?load=", + "/api/pba/upload/?restore=", ] def __init__( diff --git a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js index 473554da9..37473d66a 100644 --- a/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js +++ b/monkey/monkey_island/cc/ui/src/components/pages/ConfigurePage.js @@ -27,8 +27,8 @@ import { const CONFIG_URL = '/api/agent-configuration'; const RESET_URL = '/api/reset-agent-configuration'; const CONFIGURED_PROPAGATION_CREDENTIALS_URL = '/api/propagation-credentials/configured-credentials'; -export const API_PBA_LINUX = '/api/file-upload/PBAlinux'; -export const API_PBA_WINDOWS = '/api/file-upload/PBAwindows'; +export const API_PBA_LINUX = '/api/pba/upload/PBAlinux'; +export const API_PBA_WINDOWS = '/api/pba/upload/PBAwindows'; const configSubmitAction = 'config-submit'; const configExportAction = 'config-export';