Skip to content

Commit

Permalink
Add chmod options
Browse files Browse the repository at this point in the history
  • Loading branch information
VakarisZ committed Jun 11, 2024
1 parent 0a763c0 commit abe3f7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion agentpluginapi/i_linux_agent_command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ class LinuxDownloadOptions(InfectionMonkeyBaseModel):
download_url: str


class LinuxChmodOptions(InfectionMonkeyBaseModel):
file_path: PurePosixPath
permission_string = "u+x"


class LinuxRunOptions(InfectionMonkeyBaseModel):
agent_destination_path: PurePosixPath
dropper_execution_mode: DropperExecutionMode
Expand Down Expand Up @@ -48,9 +53,11 @@ def build_download_command(self, download_options: LinuxDownloadOptions):
"""

@abc.abstractmethod
def build_chmod_command(self):
def build_chmod_command(self, chmod_options: LinuxChmodOptions):
"""
Build Agent's binary permission change command
:param chmod_options: Options needed for the command to be built
"""

@abc.abstractmethod
Expand Down

0 comments on commit abe3f7e

Please sign in to comment.