Fix the symbol vs string prob
parent
ee13a215e9
commit
188b15b17f
|
@ -514,8 +514,10 @@ module Msf
|
|||
try_set_target(profile)
|
||||
bad_reqs = get_bad_requirements(profile)
|
||||
if bad_reqs.empty?
|
||||
browser_info = profile.values.first
|
||||
browser_info = browser_info.inject({}){|data,(k,v)| data[k.to_sym] = v; data}
|
||||
begin
|
||||
method(:on_request_exploit).call(cli, request, profile.values.first)
|
||||
method(:on_request_exploit).call(cli, request, browser_info)
|
||||
rescue BESException => e
|
||||
elog("BESException: #{e.message}\n#{e.backtrace * "\n"}")
|
||||
send_not_found(cli)
|
||||
|
@ -574,8 +576,8 @@ module Msf
|
|||
# @param browser_info [Hash] The target profile
|
||||
# @return [String] The payload
|
||||
def get_payload(cli, browser_info)
|
||||
arch = browser_info['arch']
|
||||
platform = browser_info['os_name']
|
||||
arch = browser_info[:arch]
|
||||
platform = browser_info[:os_name]
|
||||
|
||||
# Fix names for consistency so our API can find the right one
|
||||
# Originally defined in lib/msf/core/constants.rb
|
||||
|
|
Loading…
Reference in New Issue