Tools

How To Install HashCobra

In this tutorial, we will discuss how to install HashCobra on Ubuntu.

This tool uses a new method to crack hashes. With the help of rainbow tables concept this tool generates rainbow tables from wordlists to heavily optimize the cracking process.

Let’s get started.

1. Install software properties

# apt install software-properties-common

# apt install build-essential

2. Add Repository

# add-apt-repository ppa:ubuntu-toolchain-r/test

3. Update the server

# apt update

4. Install gcc

# apt install gcc-9 g++-9

# update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-9 60 –slave /usr/bin/g++ g++ /usr/bin/g++-9

5. Check gcc version

# gcc –version

4. Install dependencies

# apt-get install libgflags-dev
# apt-get install libsnappy-dev
# apt-get install zlib1g-dev
# apt-get install libbz2-dev
# apt-get install liblz4-dev

5. Download Zstandard and install it

# wget https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-1.4.4.tar.gz
# tar -zxvf zstd-1.4.4.tar.gz
# cd zstd-1.4.4
# make
# make install

6. Clone rocksDB and install it

# git clone https://github.com/facebook/rocksdb.git
# cd rocksdb
# make static_lib;make install;make shared_lib;make install

7. Clone HashCobra from github

# git clone –recursive https://github.com/sepehrdaddev/hashcobra.git

8. Go to HashCobra directory and edit the file using following command

# cd hashcobra
# edit Makefile and add “-lpthread -ldl -lz -lrt -lzstd”  to the libs after “-ltomcrypt” and save it

9. Install HashCobra

# make
# make install

10. Verify it

# hashcobra

# ldconfig

That’s it.

In this tutorial we have seen how to install HashCobra on Ubuntu

Supported Hashing Algorithms

  • blake2b-160
  • blake2b-256
  • blake2b-384
  • blake2b-512
  • blake2s-128
  • blake2s-160
  • blake2s-224
  • blake2s-256
  • md2
  • md4
  • md5
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512
  • sha3-224
  • sha3-256
  • sha3-384
  • sha3-512
  • keccak-224
  • keccak-256
  • keccak-384
  • keccak-512
  • ripemd-128
  • ripemd-160
  • ripemd-256
  • ripemd-320
  • whirlpool
  • tiger

Supported Compression Algorithms

  • zstd
  • snappy
  • zlib
  • bzip2
  • lz4
  • lz4hc