Oops. Need to init the profile before accessed.
parent
ad592fd114
commit
05067b4e33
|
@ -14,4 +14,5 @@ function postInfo(path, data, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
xmlHttp.send(data);
|
xmlHttp.send(data);
|
||||||
|
return xmlHttp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,8 +291,8 @@ module Msf
|
||||||
#
|
#
|
||||||
def process_browser_info(source, cli, request)
|
def process_browser_info(source, cli, request)
|
||||||
tag = retrieve_tag(cli, request)
|
tag = retrieve_tag(cli, request)
|
||||||
target_info = get_profile(tag)
|
|
||||||
init_profile(tag)
|
init_profile(tag)
|
||||||
|
target_info = get_profile(tag)
|
||||||
update_profile(target_info, :source, source.to_s)
|
update_profile(target_info, :source, source.to_s)
|
||||||
|
|
||||||
# Gathering target info from the detection stage
|
# Gathering target info from the detection stage
|
||||||
|
@ -300,7 +300,7 @@ module Msf
|
||||||
when :script
|
when :script
|
||||||
# Gathers target data from a POST request
|
# Gathers target data from a POST request
|
||||||
parsed_body = CGI::parse(Rex::Text.decode_base64(request.body) || '')
|
parsed_body = CGI::parse(Rex::Text.decode_base64(request.body) || '')
|
||||||
vprint_status("Received sniffed browser data over POST: \n#{parsed_body}.")
|
vprint_debug("Received sniffed browser data over POST: \n#{parsed_body}.")
|
||||||
parsed_body.each { |k, v| update_profile(target_info, k.to_sym, v.first) }
|
parsed_body.each { |k, v| update_profile(target_info, k.to_sym, v.first) }
|
||||||
when :headers
|
when :headers
|
||||||
# Gathers target data from headers
|
# Gathers target data from headers
|
||||||
|
|
Loading…
Reference in New Issue