mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
Merge fix
This commit is contained in:
@@ -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...")
|
||||
|
||||
Reference in New Issue
Block a user