예제 #1
0
        public override string[] Execute(ParsedArgs args)
        {
            if (string.IsNullOrEmpty(args.DomainName))
            {
                throw new EDDException("DomainName cannot be empty");
            }

            LDAP   ldapSIDFinder = new LDAP();
            string sid           = ldapSIDFinder.GetDomainSID(args.DomainName);

            return(new string[] { sid });
        }
예제 #2
0
        public override string[] Execute(ParsedArgs args)
        {
            try
            {
                if (string.IsNullOrEmpty(args.DomainName))
                {
                    throw new EDDException("DomainName cannot be empty");
                }

                LDAP   ldapSIDFinder = new LDAP();
                string sid           = ldapSIDFinder.GetDomainSID(args.DomainName);

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