Exemplo n.º 1
0
 private void PrepareStopNodes(GraphObjectReference ObjectReference, string domainSid)
 {
     stopNodes.Clear();
     foreach (var typology in ObjectReference.Objects.Keys)
     {
         foreach (var obj in ObjectReference.Objects[typology])
         {
             stopNodes.Add(obj.Name);
         }
     }
     // avoid additional explore of domain users & domain computers
     // (if there are members defined explicitely instead of using the primarygroup as usual)
     stopNodes.Add(domainSid + "-513");
     stopNodes.Add(domainSid + "-515");
 }
Exemplo n.º 2
0
 void PrepareDetailledData(ADDomainInfo domainInfo, HealthcheckData data, GraphObjectReference ObjectReference)
 {
     foreach (var typology in ObjectReference.Objects.Keys)
     {
         foreach (var obj in ObjectReference.Objects[typology])
         {
             Trace.WriteLine("Analyzing " + obj.Description);
             ProduceReportFile(domainInfo, data, typology, obj.Risk, obj.Description, obj.Name);
         }
     }
     data.ControlPaths.Data.Sort(
         (SingleCompromiseGraphData a, SingleCompromiseGraphData b)
         =>
     {
         return(string.Compare(a.Description, b.Description));
     });
 }