public HashCatCommandExecutorBuilder(IWorkingDirectoryProvider workingDirectoryProvider,
                                      IArgumentsBuilder argumentsBuilder,
                                      Config config,
                                      ILogger logger)
 {
     _argumentsBuilder = argumentsBuilder;
     _logger           = logger;
     _workingDirectoty = workingDirectoryProvider.Get();
     _settings         = config.HashCat;
 }
Esempio n. 2
0
        public async Task <IAgent> PrepareAgent()
        {
            Environment.CurrentDirectory = _workingDirectoryProvider.Get();

            _configValidator.Validate();

            await _registrationManager.Register();

            await _inventoryManager.Initialize();

            return(_agentBuilder.Build());
        }