Fix typos
parent
8fb2b943be
commit
9d1742ac47
|
@ -5,7 +5,7 @@ require 'rex/exploitation/js'
|
|||
|
||||
###
|
||||
#
|
||||
# The BrowserExploitServer mixin provides methods to acheive common tasks seen in modern browser
|
||||
# The BrowserExploitServer mixin provides methods to do common tasks seen in modern browser
|
||||
# exploitation, and is designed to work against common setups such as on Windows, OSX, and Linux.
|
||||
#
|
||||
###
|
||||
|
@ -20,7 +20,7 @@ module Msf
|
|||
def initialize(info={})
|
||||
super
|
||||
|
||||
# See get_profile's documenation to understand what @target_profiles stores
|
||||
# See get_profile's documentation to understand what @target_profiles stores
|
||||
@target_profiles = {}
|
||||
|
||||
# Requirements are conditions that the browser must have in order to be exploited.
|
||||
|
@ -109,7 +109,7 @@ module Msf
|
|||
# }
|
||||
# A profile should at least have info about the following:
|
||||
# :source : The data source. Either from 'script', or 'headers'. The 'script' source
|
||||
# should be more accureate in some scenarios like browser compatibility mode
|
||||
# should be more accurate in some scenarios like browser compatibility mode
|
||||
# :ua_name : The name of the browser
|
||||
# :ua_ver : The version of the browser
|
||||
# :os_name : The name of the OS
|
||||
|
@ -164,7 +164,7 @@ module Msf
|
|||
#
|
||||
# @param request [Rex::Proto::Http::Request] The HTTP request sent by the browser
|
||||
#
|
||||
def retreive_tag(request)
|
||||
def retrieve_tag(request)
|
||||
tag = request.headers['Cookie'].to_s
|
||||
|
||||
if tag.blank?
|
||||
|
@ -185,7 +185,7 @@ module Msf
|
|||
# @param request [Rex::Proto::Http::Request] The HTTP request sent by the browser
|
||||
#
|
||||
def process_browser_info(source, cli, request)
|
||||
tag = retreive_tag(request)
|
||||
tag = retrieve_tag(request)
|
||||
|
||||
# Browser doesn't allow cookies. Can't track that, use a different way to track.
|
||||
init_profile(tag) if request.headers['Cookie'].blank?
|
||||
|
@ -204,7 +204,7 @@ module Msf
|
|||
|
||||
when :headers
|
||||
# Gathers target data from headers
|
||||
# This may be less accureate, and most likely less info.
|
||||
# This may be less accurate, and most likely less info.
|
||||
fp = fingerprint_user_agent(request.headers['User-Agent'])
|
||||
# Module has all the info it needs, ua_string is kind of pointless.
|
||||
# Kill this to save space.
|
||||
|
|
Loading…
Reference in New Issue