class FirefoxPrivacy: def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'network.cookie.cookieBehavior': '1', 'signon.rememberSignons': 'false', 'privacy.sanitize.sanitizeOnShutdown': 'true', 'security.ask_for_password': '******', 'browser.formfill.enable': 'false', 'browser.sessionstore.privacy_level': '1', 'browser.history_expire_days': '0', 'browser.history_expire_days.mirror': '0', 'browser.download.manager.retention': '0', 'security.warn_leaving_secure': 'true', 'security.warn_entering_secure': 'true', 'security.warn_submit_insecure': 'true' } self.__firefox_utils = Firefox_utils(ff_settings) def scan(self, option=None): return self.__firefox_utils.scan() def apply(self, option=None): return self.__firefox_utils.apply() def undo(self, change_record=None): return self.__firefox_utils.undo(change_record)
def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'xpinstall.whitelist.add': '\"\"', 'xpinstall.whitelist.add.103': '\"\"', 'xpinstall.whitelist.required': 'true' } self.__firefox_utils = Firefox_utils(ff_settings)
def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'network.http.sendSecureXSiteReferrer': 'false', 'network.protocol-handler.external.shell': 'false', 'network.ntlm.send-lm-response': 'false' } self.__firefox_utils = Firefox_utils(ff_settings)
def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'security.enable_ssl2': 'false', 'security.enable_ssl3': 'false', 'security.enable_tls': 'true', 'security.warn_viewing_mixed': 'true', 'security.warn_entering_weak': 'true', 'security.OCSP.enabled': '1', 'security.default_personal_cert': '\"Ask Every Time\"' } self.__firefox_utils = Firefox_utils(ff_settings)
def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'dom.disable_window_open_feature.status': 'false', 'browser.cache.disk_cache_ssl': 'false', 'browser.download.folderList': '2', 'browser.safebrowsing.enabled': 'true', 'browser.safebrowsing.malware.enabled': 'true', 'browser.urlbar.filter.javascript': 'true', 'browser.download.manager.scanWhenDone': 'true' } self.__firefox_utils = Firefox_utils(ff_settings)
class FirefoxAddons: def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'xpinstall.whitelist.add': '\"\"', 'xpinstall.whitelist.add.103': '\"\"', 'xpinstall.whitelist.required': 'true' } self.__firefox_utils = Firefox_utils(ff_settings) def scan(self, option=None): return self.__firefox_utils.scan() def apply(self, option=None): return self.__firefox_utils.apply() def undo(self, change_record=None): return self.__firefox_utils.undo(change_record)
class FirefoxNetwork: def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'network.http.sendSecureXSiteReferrer': 'false', 'network.protocol-handler.external.shell': 'false', 'network.ntlm.send-lm-response': 'false' } self.__firefox_utils = Firefox_utils(ff_settings) def scan(self, option=None): return self.__firefox_utils.scan() def apply(self, option=None): return self.__firefox_utils.apply() def undo(self, change_record=None): return self.__firefox_utils.undo(change_record)
def apply(self, optionDict=None): if optionDict == None or not 'FirefoxJavascript' in optionDict: msg = "No module option provided" raise tcs_utils.ScanError('%s %s' % (self.module_name, msg)) option = optionDict['FirefoxJavascript'] option = int(option) if option < 0 or option > 1: msg = "Invalid option type provided" raise tcs_utils.ActionError('%s %s' % (self.module_name, msg)) ff_settings = self._ff_settings if option == 0: ff_settings['javascript.enabled'] = 'false' else: ff_settings['javascript.enabled'] = 'true' firefox_utils = Firefox_utils(ff_settings) return firefox_utils.apply()
def scan(self, optionDict=None): if optionDict == None or not 'FirefoxJava' in optionDict: msg = "No module option provided" raise tcs_utils.ScanError('%s %s' % (self.module_name, msg)) option = optionDict['FirefoxJava'] option = int(option) if option < 0 or option > 1: msg = "Invalid option provided" raise tcs_utils.ScanError('%s %s' % (self.module_name, msg)) ff_settings = self._ff_settings if option == 0: ff_settings['security.enable_java'] = 'false' else: ff_settings['security.enable_java'] = 'true' firefox_utils = Firefox_utils(ff_settings) return firefox_utils.scan()
class FirefoxEncryption: def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'security.enable_ssl2': 'false', 'security.enable_ssl3': 'false', 'security.enable_tls': 'true', 'security.warn_viewing_mixed': 'true', 'security.warn_entering_weak': 'true', 'security.OCSP.enabled': '1', 'security.default_personal_cert': '\"Ask Every Time\"' } self.__firefox_utils = Firefox_utils(ff_settings) def scan(self, option=None): return self.__firefox_utils.scan() def apply(self, option=None): return self.__firefox_utils.apply() def undo(self, change_record=None): return self.__firefox_utils.undo(change_record)
class FirefoxDynamicContent: def __init__(self): self.module_name = self.__class__.__name__ ff_settings = { 'dom.disable_window_open_feature.status': 'false', 'browser.cache.disk_cache_ssl': 'false', 'browser.download.folderList': '2', 'browser.safebrowsing.enabled': 'true', 'browser.safebrowsing.malware.enabled': 'true', 'browser.urlbar.filter.javascript': 'true', 'browser.download.manager.scanWhenDone': 'true' } self.__firefox_utils = Firefox_utils(ff_settings) def scan(self, option=None): return self.__firefox_utils.scan() def apply(self, option=None): return self.__firefox_utils.apply() def undo(self, change_record=None): return self.__firefox_utils.undo(change_record)
def undo(self, change_record=None): firefox_utils = Firefox_utils({}) return firefox_utils.undo(change_record)