Merge fix

This commit is contained in:
ts
2018-02-15 12:19:40 +00:00
parent 56f543ade1
commit 7c125425d2

View File

@@ -9,13 +9,6 @@ define secgen_functions::leak_file($leaked_filename, $storage_directory, $string
provider => shell,
}
# create the directory tree, incase the file name has extra layers of directories
exec { "$leaked_from-$path_to_leak":
path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'],
command => "mkdir -p `dirname $path_to_leak`;chown $owner. `dirname $path_to_leak`",
provider => shell,
}
# If the file already exists append to it, otherwise create it.
if (defined(File[$path_to_leak])){
notice("File with that name already defined, appending leaked strings instead...")