review comment
This commit is contained in:
parent
16c95c4e85
commit
c9f39def13
|
@ -56,10 +56,6 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def firefox?(user_agent)
|
|
||||||
user_agent.include?('Firefox')
|
|
||||||
end
|
|
||||||
|
|
||||||
def html_content
|
def html_content
|
||||||
# For some reason, tends to work best when double iframes. Single will pop up the 'open app' message, but tends to not connect.
|
# For some reason, tends to work best when double iframes. Single will pop up the 'open app' message, but tends to not connect.
|
||||||
%(
|
%(
|
||||||
|
@ -76,7 +72,9 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
def on_request_uri(cli, req)
|
def on_request_uri(cli, req)
|
||||||
print_status("Request received for: #{req.uri}")
|
print_status("Request received for: #{req.uri}")
|
||||||
|
|
||||||
unless firefox?(req.headers['User-Agent'])
|
ua = req.headers['User-Agent'].to_s
|
||||||
|
|
||||||
|
unless ua.include?('Firefox')
|
||||||
print_error('Target is not Firefox')
|
print_error('Target is not Firefox')
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue