/HashDog

Primary LanguageC++

HashDog.exe

With our program you can "break" hash of supported hash functions with supported attacks.

Requirements

OpenSSL library

  • tested with version 1.1.1a for Windows
  • program needs to be built with correctly linked OpenSSL include and lib folder

Overview

Supported hash functions: MD5, SHA-1, SHA-256
Supported attacks: Bruteforce attack, Dictionary attack, Mask attack

You can use our program in two ways:

  • with input text make hash and use attack for that output
    • input_message - |4 - 20| characters
Hashdog.exe <input_message> <hash_function> <attack>
  • use hash and length of message as input and "break" that
    • input_hash - hex string in uppercase (length: MD5 = 32, SHA-1 = 40, SHA-256 = 64)
    • You can use hash generators: MD5, SHA-1, SHA-256
Hashdog.exe <input_hash> <length_of_hashed_message> <attack>

Hash functions

Option Description
-m using hash function MD5
-s1 using hash function SHA-1
-s2 using hash function SHA-256

Attacks

Option Description
-b using Bruteforce attack
-d using Dictionary attack
-m using Mask attack

Usage

Bruteforce attack:

Hashdog.exe <input_message> <hash_function> -b
Hashdog.exe <input_hash> <length_of_hashed_message> -b

Example:

Hashdog.exe Op1caaa1 -m -b
Hashdog.exe E701E45B0D65A6B43A09F1C4408F9070625356D1 8 -b

Dictionary attack:

Hashdog.exe <input_message> <hash_function> -d <dic_filename>
Hashdog.exe <input_hash> <length_of_hashed_message> -d <dic_filename>

Example:

Hashdog.exe Op1caaa1 -m -d rockyou.txt
Hashdog.exe E701E45B0D65A6B43A09F1C4408F9070625356D1 8 -d rockyou.txt

Mask attack:

Hashdog.exe <input_message> <hash_function> -m <mask>
Hashdog.exe <input_hash> <length_of_hashed_message> -m <mask>

Mask symbols

Option Description
%a lowercase & uppercase alphabet
%l lowecase alphabet only
%u uppercase alphaber only
%s special characters only
%d digits only
%c all characters

Standalone character represent itself, e.g. 'a' represent 'a'. For '%' use %%.

Example:

Hashdog.exe Op1caaa1 -m -m %u%l%d%l%l%la1
Hashdog.exe E701E45B0D65A6B43A09F1C4408F9070625356D1 8 -m %u%l%d%l%l%la1