Crunch in Termux – Installation & Usage Commands

Crunch in Termux – Installation & Usage Commands

Crunch is a powerful command-line tool used to generate custom wordlists for password testing. It allows you to create combinations of characters based on length, patterns, or specific character sets. It is very useful for generating large and customized password lists quickly.

Installation Commands

Update Termux and install required packages:

pkg update && pkg upgrade && pkg install git build-essential clang make which -y

Clone the GitHub repository:

git clone https://github.com/crunchsec/crunch.git

Move into the directory:

cd crunch

Compile the tool:

make

Move to global path:

cp crunch $PREFIX/bin

Verify installation:

crunch

Usage Commands

Generate wordlist with min 6 and max 8 characters:

crunch 6 8

Generate only 4-letter passwords:

crunch 4 4

Use specific characters:

crunch 4 4 abc123

Save output to file:

crunch 6 8 -o wordlist.txt

Use pattern (example: 2 letters + 2 numbers):

crunch 4 4 -t @@%%

Limit output size (example: 1MB file):

crunch 6 8 -o wordlist.txt -b 1mb

View full wordlist file:

cat wordlist.txt

Count total words in the wordlist (lines):

wc -l wordlist.txt
SHARE THIS POST: