Example #1
0
 public ArgumentsBuilder(IWorkedFoldersProvider workedFoldersProvider,
                         Config config,
                         IInventoryManager inventoryManager)
 {
     _inventoryManager = inventoryManager;
     _workedFolders    = workedFoldersProvider.Get();
     _options          = config.HashCat.Options;
     _force            = config.HashCat.NeedForce
         ? "--force --self-test-disable "
         : string.Empty;
 }
Example #2
0
 public JobHandlerBuilder(IKrakerApi krakerApi,
                          IWorkedFoldersProvider workedFoldersProvider,
                          ITempFileManager tempFileManager,
                          IAgentIdManager agentIdManager,
                          ISpeedCalculator speedCalculator,
                          ILogger logger,
                          IHashCatCommandExecutorBuilder executorBuilder)
 {
     _krakerApi       = krakerApi;
     _workedFolders   = workedFoldersProvider.Get();
     _tempFileManager = tempFileManager;
     _agentIdManager  = agentIdManager;
     _speedCalculator = speedCalculator;
     _logger          = logger;
     _executorBuilder = executorBuilder;
 }
Example #3
0
        public InventoryManager(
            AppFolder appFolder,
            ILogger logger,
            IWorkedFoldersProvider workedFoldersProvider,
            IFileDescriptionBuilder descriptionBuilder,
            IKrakerApi krakerApi,
            IAgentIdManager agentIdManager)
        {
            _logger             = logger;
            _descriptionBuilder = descriptionBuilder;
            _krakerApi          = krakerApi;
            _agentIdManager     = agentIdManager;
            _workedFolders      = workedFoldersProvider.Get();
            _inventoryFilePath  = Path.Combine(appFolder.Value, ArtefactsFolder, InventoryFile);

            _fileDescriptions = new Dictionary <string, FileDescription>();
            _currentInventory = new Inventory(_fileDescriptions.Values);
        }