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 }); }
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 }); } }