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