Beispiel #1
0
        public static async Task <List <FileResult> > GetSYSVOLAsync(SearchString searchstring)
        {
            SMBSearchString searchString = (SMBSearchString)searchstring;

            var tasks = new List <Task <FileResult> >();

            foreach (var filePath in searchString.FilePathList)
            {
                var ss = new SMBSearchString {
                    Title = searchString.Title, FilePath = filePath, FileAttributes = searchString.FileAttributes
                };
                tasks.Add(Task.Run(() => CollectSYSVOL.Collect(ss)));
            }

            var aclList = (await Task.WhenAll(tasks)).ToList();

            return(aclList);
        }
Beispiel #2
0
        public void Run()
        {
            GetLDAPBasicInfo(new List <Dictionary <string, List <string> > > {
                Searcher.BasicLDAPInfo
            });

            GetTypeObject(typeof(Trust));

            GetLDAP();

            GetNGAGP();

            GetACL();

            GetADCS();

            CanConnectSYSVOL = CollectSYSVOL.CanConnectSYSVOL();

            GetSMB();

            GetGPP();

            GetADIDNS();
        }