Skip to content

Commit

Permalink
Log4Shell: Use build_permission_change_comman
Browse files Browse the repository at this point in the history
  • Loading branch information
VakarisZ committed Jun 11, 2024
1 parent 0cddb34 commit e150b83
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
IWindowsAgentCommandBuilder,
LinuxDownloadMethod,
LinuxDownloadOptions,
LinuxPermissionChangeOptions,
LinuxRunOptions,
TargetHost,
WindowsDownloadMethod,
Expand Down Expand Up @@ -77,11 +78,14 @@ def _build_linux_log4shell_command(
download_url=agent_download_url,
)

permission_options = LinuxPermissionChangeOptions(file_path=agent_destination_path)

run_options = LinuxRunOptions(
agent_destination_path=agent_destination_path,
dropper_execution_mode=DropperExecutionMode.DROPPER,
)

agent_command_builder.build_download_command(download_options)
agent_command_builder.build_permission_change_command(permission_options)
agent_command_builder.build_run_command(run_options)
return agent_command_builder.get_command()

0 comments on commit e150b83

Please sign in to comment.