public Utils(Sharphound.Options cli) { _options = cli; _cache = Cache.Instance; _domainList = CreateDomainList(); _pingTimeout = TimeSpan.FromMilliseconds(_options.PingTimeout); }
public Utils(Sharphound.Options cli) { _options = cli; _cache = Cache.Instance; _domainList = CreateDomainList(); _pingTimeout = TimeSpan.FromMilliseconds(_options.PingTimeout); _ldapConnectionCache = new ConcurrentDictionary <string, LdapConnection>(); _gcConnectionCache = new ConcurrentDictionary <string, LdapConnection>(); }
private Cache(Sharphound.Options opts) { _options = opts; _fileName = Path.Combine(_options.JsonFolder, _options.CacheFile); var oldFilePath = Path.Combine(_options.JsonFolder, "BloodHound.bin"); if (File.Exists(oldFilePath)) { File.Move(oldFilePath, _fileName); } LoadCache(); }
private Cache(Sharphound.Options opts) { _options = opts; _fileName = Path.Combine(_options.CSVFolder, _options.CacheFile); LoadCache(); }
public static void CreateInstance(Sharphound.Options opts) { Instance = new Cache(opts); }
public static void CreateInstance(Sharphound.Options cli) { Instance = new Utils(cli); _fileTimeStamp = $"{DateTime.Now:yyyyMMddHHmmss}"; }
public static void CreateInstance(Sharphound.Options cli) { Instance = new Utils(cli); }
private Cache(Sharphound.Options opts) { _options = opts; LoadCache(_options.CacheFile); }