Ejemplo n.º 1
0
        public override string[] Execute(ParsedArgs args)
        {
            if (string.IsNullOrEmpty(args.UserName))
            {
                throw new EDDException("UserName cannot be empty");
            }

            Amass  sidConverter = new Amass();
            string sid          = sidConverter.GetUsernameFromSID(args.UserName);

            return(new string[] { sid });
        }
Ejemplo n.º 2
0
        public override string[] Execute(ParsedArgs args)
        {
            try
            {
                if (string.IsNullOrEmpty(args.UserName))
                {
                    throw new EDDException("UserName cannot be empty");
                }

                Amass  sidConverter = new Amass();
                string sid          = sidConverter.GetUsernameFromSID(args.UserName);

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