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 -yClone the GitHub repository:
git clone https://github.com/crunchsec/crunch.gitMove into the directory:
cd crunchCompile the tool:
makeMove to global path:
cp crunch $PREFIX/binVerify installation:
crunchUsage Commands
Generate wordlist with min 6 and max 8 characters:
crunch 6 8Generate only 4-letter passwords:
crunch 4 4Use specific characters:
crunch 4 4 abc123Save output to file:
crunch 6 8 -o wordlist.txtUse pattern (example: 2 letters + 2 numbers):
crunch 4 4 -t @@%%Limit output size (example: 1MB file):
crunch 6 8 -o wordlist.txt -b 1mbView full wordlist file:
cat wordlist.txtCount total words in the wordlist (lines):
wc -l wordlist.txt