We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f4abd commit 160cf5cCopy full SHA for 160cf5c
modules/exploits/linux/persistence/yum_package_manager.rb
@@ -135,6 +135,7 @@ def install_persistence
135
write_file(payload_path, generate_payload_exe)
136
end
137
@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}\""
139
unless exist? payload_path
140
fail_with Failure::Unknown, "Failed to write #{payload_path}"
141
0 commit comments