Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var dbLocation = new FileInfo(@"database.dat");
            var outputFile = new FileInfo(@"output.json");

            using (var eseDatabase = new ESEDatabase(dbLocation))
            {
                eseDatabase.JsonDump(outputFile);
            }
        }
Ejemplo n.º 2
0
 public void TestMethod1()
 {
     using (ESEDatabase eseDb = new ESEDatabase(@"C:\Projects\Evaluation013\tstglobal\ntds.dit"))
     {
         Queue <SortedList <string, string> > result = eseDb.RetrieveTranslatedAttributes("datatable",
                                                                                          ESEDatabase.JetColumn.objectSid
                                                                                          | ESEDatabase.JetColumn.sAMAccountName
                                                                                          | ESEDatabase.JetColumn.userAccountControl
                                                                                          | ESEDatabase.JetColumn.EncryptedNTHash
                                                                                          );
     }
 }