Rename some stuff
parent
21891a8337
commit
5851d502b5
|
@ -145,7 +145,7 @@ module Msf
|
|||
# Registers target information to @target_profiles
|
||||
# Acceptable sources include :script, and :headers
|
||||
#
|
||||
def process_user_info(source, cli, request)
|
||||
def process_browser_info(source, cli, request)
|
||||
tag = retreive_tag(request)
|
||||
|
||||
# Browser doesn't allow cookies. Can't track that, use a different way to track.
|
||||
|
@ -276,7 +276,7 @@ module Msf
|
|||
#
|
||||
# The detection code will hit this if Javascript is enabled
|
||||
#
|
||||
process_user_info(source=:script, cli, request)
|
||||
process_browser_info(source=:script, cli, request)
|
||||
send_response(cli, '')
|
||||
|
||||
when /#{@noscript_receiver_page}/
|
||||
|
@ -284,7 +284,7 @@ module Msf
|
|||
# The detection code will hit this instead of Javascript is disabled
|
||||
# Should only be triggered by the img src in <noscript>
|
||||
#
|
||||
process_user_info(source=:headers, cli, request)
|
||||
process_browser_info(source=:headers, cli, request)
|
||||
send_not_found(cli)
|
||||
|
||||
when /#{@exploit_receiver_page}/
|
||||
|
@ -316,7 +316,7 @@ module Msf
|
|||
#
|
||||
# Overriding method. The module should override this.
|
||||
#
|
||||
def on_request_exploit(cli, request, target_info)
|
||||
def on_request_exploit(cli, request, browser_info)
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -331,10 +331,10 @@ module Msf
|
|||
# Generates a target-specific payload.
|
||||
# Should be called by the module.
|
||||
#
|
||||
def get_payload(cli, target_info)
|
||||
tag = target_info.first[0]
|
||||
arch = target_info[tag][:arch]
|
||||
platform = target_info[tag][:os_name]
|
||||
def get_payload(cli, browser_info)
|
||||
tag = browser_info.first[0]
|
||||
arch = browser_info[tag][:arch]
|
||||
platform = browser_info[tag][:os_name]
|
||||
|
||||
# Fix names for consisntecy so our API can find the right one
|
||||
# Originally defined in lib/msf/core/constants.rb
|
||||
|
|
Loading…
Reference in New Issue