Skip to content

Commit

Permalink
Jboss_remoting_unified_invoker_rce flags location, for #315
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffe committed Jun 26, 2024
1 parent 4c44664 commit cc2d0d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include jboss_remoting_unified_invoker_rce::install
include jboss_remoting_unified_invoker_rce::flags

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
ensure_packages(['apt-transport-https', 'ca-certificates', 'wget', 'dirmngr', 'gnupg', 'software-properties-common'])

$secgen_parameters = secgen_functions::get_parameters($::base64_inputs_file)
$leaked_filenames = $secgen_parameters['leaked_filenames']
$strings_to_leak = $secgen_parameters['strings_to_leak']
$user = $secgen_parameters['unix_username'][0]
$user_home = "/home/${user}"

Expand Down Expand Up @@ -75,4 +77,13 @@
ensure => running,
enable => true,
}

::secgen_functions::leak_files { 'jboss-flag':
storage_directory => $user_home,
leaked_filenames => $leaked_filenames,
strings_to_leak => $strings_to_leak,
owner => $user,
mode => '0600',
leaked_from => 'jboss',
}
}

0 comments on commit cc2d0d5

Please sign in to comment.