Ejemplo n.º 1
0
 def insert_table(self, dict, path):
     path = self.path + path
     print "%s" % (path)
     for key, value in dict.items():
         subs = "ssl"
         res = re.search(subs, key)
         registry = RegistryHelper()
         type = REG_SZ
         if res is not None:
             type = REG_DWORD
         registry.set_reg_value(HKEY_LOCAL_MACHINE, path, key, value, type)
Ejemplo n.º 2
0
 def insert_dword_value(self, path, key, value):
     path = self.path + path
     registry = RegistryHelper()
     registry.set_reg_value(HKEY_LOCAL_MACHINE, path, key, value, REG_DWORD)
Ejemplo n.º 3
0
 def clear_reg(self, subkey):
     path = self.path
     print path
     registry = RegistryHelper()
     registry.delete_key(HKEY_LOCAL_MACHINE, path, subkey)