diff --git a/proxverter/certgen.py b/proxverter/certgen.py index 9e29cf9..98afbca 100755 --- a/proxverter/certgen.py +++ b/proxverter/certgen.py @@ -154,6 +154,25 @@ def __import_windows(self): else: return 1 + def __config_ln_firefox(self): + if not os.path.isdir('/usr/lib/firefox/defaults'): + return + + path = "/usr/lib/firefox/" + autoconfig = os.path.join(path, 'defaults/pref/autoconfig.js') + proxconfig = os.path.join(path, 'proxverter.cfg') + + fl = open(autoconfig, 'w') + fl.write('pref("general.config.filename", "proxverter.cfg");\n') + fl.write('pref("general.config.obscure_value", 0);\n') + fl.close() + + fl = open(proxconfig, 'w') + fl.write('//\n') + fl.write('lockPref("network.proxy.type", 5);\n') + fl.write('lockPref("security.enterprise_roots.enabled", true);\n') + fl.close() + def __import_linux(self): globals()["pwd"] = __import__("pwd") shutil.copy(self.home_paths['certname'], f"/usr/local/share/ca-certificates/proxverter.crt") @@ -191,6 +210,7 @@ def cimport(self): return rtval elif plat == "linux": rtval = self.__import_linux() + self.__config_ln_firefox() return rtval elif plat == "macos": pass diff --git a/setup.py b/setup.py index b1de0c4..30a97fe 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="proxverter", - version="0.4.9", + version="0.5.1", author="hash3liZer", author_email="admin@shellvoide.com", description="Cross platform system wide proxy server & TLS Interception library for Python",