Esempio n. 1
0
        public override string[] Execute(ParsedArgs args)
        {
            Amass  forestInfo    = new Amass();
            Forest currentForest = forestInfo.GetForestObject();

            return(new string[] { currentForest.Name });
        }
Esempio n. 2
0
 public override string[] Execute(ParsedArgs args)
 {
     try
     {
         Amass  forestInfo    = new Amass();
         Forest currentForest = forestInfo.GetForestObject();
         return(new string[] { currentForest.Name });
     }
     catch (Exception e)
     {
         return(new string[] { "[X] Failure to enumerate info - " + e });
     }
 }
Esempio n. 3
0
        public override string[] Execute(ParsedArgs args)
        {
            Amass            forestDomains    = new Amass();
            Forest           theCurrentForest = forestDomains.GetForestObject();
            DomainCollection forestDomainList = theCurrentForest.Domains;

            List <string> result = new List <string>();

            foreach (Domain internalDomain in forestDomainList)
            {
                result.Add(internalDomain.Name);
            }

            return(result.ToArray());
        }
Esempio n. 4
0
        public override string[] Execute(ParsedArgs args)
        {
            try
            {
                Amass            forestDomains    = new Amass();
                Forest           theCurrentForest = forestDomains.GetForestObject();
                DomainCollection forestDomainList = theCurrentForest.Domains;

                List <string> result = new List <string>();

                foreach (Domain internalDomain in forestDomainList)
                {
                    result.Add(internalDomain.Name);
                }

                return(result.ToArray());
            }
            catch (Exception e)
            {
                return(new string[] { "[X] Failure to enumerate info - " + e });
            }
        }