Hashcat in Termux – Installation & Usage Commands

Hashcat in Termux – Installation & Usage Commands

Hashcat is a simple and powerful tool that helps you check how strong a password is. It tries different passwords to match a hidden code called a hash. It shows how easy or hard it is to guess a password and helps you understand password safety.

Installation Commands

Update Termux and install required packages:

pkg update && pkg upgrade && apt install git make clang python rust libiconv sse2neon opencl-vendor-driver libbz2 liblzma libsqlite openssl readline ncurses -y

Clone the official GitHub repository:

git clone https://github.com/hashcat/hashcat.git

Move into the directory:

cd hashcat

Build Hashcat:

make

Run Hashcat:

./hashcat --help

Create a global command:

ln -s $PWD/hashcat $PREFIX/bin/hashcat

Now you can run from anywhere:

hashcat --help

Usage Commands

Crack a hash using a wordlist:

hashcat -m 0 hash.txt wordlist.txt

Show cracked passwords:

hashcat -m 0 hash.txt wordlist.txt --show

Brute force attack (simple mask):

hashcat -m 0 hash.txt ?a?a?a?a

Run a simple dictionary attack:

hashcat -m 0 -a 0 hash.txt wordlist.txt

Benchmark performance:

hashcat -b

Use a specific hash type (example: MD5 = 0, SHA1 = 100):

hashcat -m 100 hash.txt wordlist.txt

Resume a paused session:

hashcat --restore
SHARE THIS POST: