Skip to content

Commit 160cf5c

Browse files
committed
peer review for yum persistence
1 parent 15f4abd commit 160cf5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/linux/persistence/yum_package_manager.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def install_persistence
135135
write_file(payload_path, generate_payload_exe)
136136
end
137137
@clean_up_rc << "rm #{payload_path}\n"
138+
@clean_up_rc << "execute -f #{sed_path} -a \"-i /os\.system.*#{payload_name}/d #{full_plugin_path}\""
138139
unless exist? payload_path
139140
fail_with Failure::Unknown, "Failed to write #{payload_path}"
140141
end

0 commit comments

Comments
 (0)