Module: Msf::Exploit::Remote::BrowserProfileManager

Included in:
BrowserExploitServer
Defined in:
lib/msf/core/exploit/remote/browser_profile_manager.rb

Instance Method Summary collapse

Instance Method Details

#browser_profileHash

Storage backend for browser profiles

Returns:

  • (Hash)


13
14
15
16
# File 'lib/msf/core/exploit/remote/browser_profile_manager.rb', line 13

def browser_profile
  framework.browser_profiles[browser_profile_prefix] ||= {}
  framework.browser_profiles[browser_profile_prefix]
end

#browser_profile_prefixObject

Sets the profile prefix to retrieve or load target information.

Raises:

  • (NoMethodError)


6
7
8
# File 'lib/msf/core/exploit/remote/browser_profile_manager.rb', line 6

def browser_profile_prefix
  raise NoMethodError, "A mixin that's using BrowserProfileManager should define browser_profile_prefix"
end

#clear_browser_profilesObject

Storage backend for browser profiles



20
21
22
# File 'lib/msf/core/exploit/remote/browser_profile_manager.rb', line 20

def clear_browser_profiles
  framework.browser_profiles.delete(browser_profile_prefix)
end