public override string[] Execute(ParsedArgs args) { LDAP spnLookup = new LDAP(); List <string> userListWitSPNs = spnLookup.GetAccountsWithSPNs(); return(userListWitSPNs.ToArray()); }
public override string[] Execute(ParsedArgs args) { try { LDAP spnLookup = new LDAP(); List <string> userListWitSPNs = spnLookup.GetAccountsWithSPNs(); return(userListWitSPNs.ToArray()); } catch (Exception e) { return(new string[] { "[X] Failure to enumerate info - " + e }); } }