From 2f9eebe28b0513b79e7c3e2c58e4fd7500df9c02 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 15 Jan 2018 14:48:59 +0100 Subject: [PATCH] remove plugin dir --- modules/exploits/unix/webapp/wp_admin_shell_upload.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/exploits/unix/webapp/wp_admin_shell_upload.rb b/modules/exploits/unix/webapp/wp_admin_shell_upload.rb index 6e90a0cb73..4d8e63dec4 100644 --- a/modules/exploits/unix/webapp/wp_admin_shell_upload.rb +++ b/modules/exploits/unix/webapp/wp_admin_shell_upload.rb @@ -96,6 +96,7 @@ class MetasploitModule < Msf::Exploit::Remote print_status("Executing the payload at #{payload_uri}...") register_files_for_cleanup("#{payload_name}.php") register_files_for_cleanup("#{plugin_name}.php") + register_dir_for_cleanup("../#{plugin_name}") send_request_cgi({ 'uri' => payload_uri, 'method' => 'GET' }, 5) end end