Island: Remove ConfigurationExport endpoint

This commit is contained in:
Ilija Lazoroski 2022-06-28 11:47:02 +02:00 committed by Shreya Malviya
parent de0ab88c3a
commit 50351c9e88
3 changed files with 1 additions and 17 deletions

View File

@ -23,7 +23,6 @@ from monkey_island.cc.resources.blackbox.monkey_blackbox_endpoint import MonkeyB
from monkey_island.cc.resources.blackbox.telemetry_blackbox_endpoint import (
TelemetryBlackboxEndpoint,
)
from monkey_island.cc.resources.configuration_export import ConfigurationExport
from monkey_island.cc.resources.edge import Edge
from monkey_island.cc.resources.exploitations.manual_exploitation import ManualExploitation
from monkey_island.cc.resources.exploitations.monkey_exploitation import MonkeyExploitation
@ -153,7 +152,6 @@ def init_api_resources(api: FlaskDIWrapper):
api.add_resource(IslandMode)
api.add_resource(IslandConfiguration)
api.add_resource(ConfigurationExport)
api.add_resource(AgentConfiguration)
api.add_resource(AgentBinaries)
api.add_resource(NetMap)

View File

@ -1,15 +0,0 @@
from monkey_island.cc.resources.AbstractResource import AbstractResource
from monkey_island.cc.resources.request_authentication import jwt_required
from monkey_island.cc.services.config import ConfigService
class ConfigurationExport(AbstractResource):
urls = ["/api/configuration/export"]
@jwt_required
def post(self):
plaintext_config = ConfigService.get_config()
config_export = plaintext_config
return {"config_export": config_export, "encrypted": False}

View File

@ -12,6 +12,7 @@ type Props = {
}
const ConfigExportModal = (props: Props) => {
// TODO: Change this endpoint to new agent-configuration endpoint
const configExportEndpoint = '/api/configuration/export';
const [pass, setPass] = useState('');