Skip to content

ntnu-rgb/rgb-hashcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hashcat

Deprecated module: As of hashcat version 4.1.0, hashcat must be located in the current working directory to work, and is therefore not suited for automated installation (see hashcat/hashcat#1539). This module has therefore been deprecated.


Table of Contents

  1. Description
  2. Setup - The basics of getting started with hashcat
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

This module automates the installation of hashcat. The module allows you to specify whether you want to use CPU or GPU, but will automatically use the fastest hardware when used without parameters.

The module works on Windows and Ubuntu, with both CPU and GPU.

Description of hashcat

hashcat is the world's fastest and most advanced password recovery utility, supporting five unique modes of attack for over 200 highly-optimized hashing algorithms. hashcat currently supports CPUs, GPUs, and other hardware accelerators on Linux, Windows, and macOS, and has facilities to help enable distributed password cracking.

Setup

Please follow these guidelines in order to preare your machine for using hashcat.

Setup Requirements

Please make sure that all dependencies are met. Use the command puppet module list --tree to check that all necessary modules are present.

We recommend that you install the desired drivers before starting the installation, regardless of whether you are using AMD, NVIDIA, or Intel. Hashcat can not be used unless there is at least one OpenCL device available. In almost all cases a GPU will be faster than a CPU for cracking passwords.

Hashcat driver requirements

Hashcat requires the following versions of the different types of drivers:

  • AMD GPUs on Windows require "AMD Radeon Software Crimson Edition" (15.12 or later)
  • AMD GPUs on Linux require "AMDGPU-PRO Driver" (16.40 or later)
  • Intel CPUs require "OpenCL Runtime for Intel Core and Intel Xeon Processors" (16.1.1 or later)
  • Intel GPUs on Windows require "OpenCL Driver for Intel Iris and Intel HD Graphics"
  • Intel GPUs on Linux require "OpenCL 2.0 GPU Driver Package for Linux" (2.0 or later)
  • NVIDIA GPUs require "NVIDIA Driver" (367.x or later)

Usage

Install Hashcat

Install hashcat with default parameters:

include hashcat

Specify processor, NVIDIA driver version and provider using hiera:

hashcat::processor: 'gpu'
hashcat::nvidia_version: 367
hashcat::provider: |
  {
    ppa       => 'ppa:ntnu-rgb/ppa',
    id        => '470D3776F3131403C8680C7296FEB24BFAD547F7',
    keyserver => 'keyserver.ubuntu.com',
  }

Or by declaring a resource in your manifest:

class { 'hashcat':
  processor => 'gpu',
  nvidia_version => 367,
  provider => {
    ppa       => 'ppa:ntnu-rgb/ppa',
    id        => '470D3776F3131403C8680C7296FEB24BFAD547F7',
    keyserver => 'keyserver.ubuntu.com',
  }
}

Note that hashcat is not available in the Ubuntu Universe repository for Ubuntu 16.04 as of writing this module.

Reference

Parameters

  • processor

    • Specify what kind of processor you want to install necessary drivers and libraries for.
    • Possible values are 'auto', 'cpu' or 'gpu'.
    • Default value is 'auto', which will make the module install GPU drivers if there is a GPU present, and install CPU libraries if no GPU is present.
  • nvidia_version

    • Specify which NVIDIA driver version should be installed.
    • Possible values are 'latest' or any valid number
    • Default value is 'latest', which will make the module detect and install the latest drivers.
    • When specifying version, it is recommended to check that the parameter being passed is a valid version that is available in the package repositories. If the version is not available the installation will fail.
  • provider

    • Specify the package provider for the hashcat package.
    • Possible values are a PPA hash or 'universe'.
    • Note that as of writing this module hashcat is not available in official Ubuntu repositories for Ubuntu 16.04
    • The default value is:
{
  ppa       => 'ppa:ntnu-rgb/ppa',
  id        => '470D3776F3131403C8680C7296FEB24BFAD547F7',
  keyserver => 'keyserver.ubuntu.com',
}

Further reading

Limitations

The module is compatible with:

OS:

  • Ubuntu 14.04, Ubuntu 16.04
  • Windows Windows 7, Windows 8, Windows 10, Windows Server 2016

Hardware:

  • AMD CPUs supporting OpenCL 1.2
  • Intel CPUs supporting OpenCL 1.2
  • AMD GPUs supporting OpenCL 1.2
  • NVIDIA CPUs supporting OpenCL 1.2

Development

Everyone is welcome to contribute to the module, for instance by making a pull request.

Please report any issues that you experience, as long as they have not already been reported.

About

A (now deprecated) puppet module for installing hashcat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published