How dorovon/name_hash_bruteforcer works
name_hash_bruteforcer is a command-line search tool for recovering unknown WoW root-file names from their hashes. The main workflow accepts target hashes and patterns or listfile-derived candidates, expands wildcard and dictionary positions, computes candidate hashes, and reports matches with progress and rate. CPU hashing is built in, with optional OpenCL acceleration. The excerpts show the main program’s input setup and GPU batch callbacks; other README-described modes are retained, but their internal dispatch details are not fully sampled.
Main entry points: main.cpp Search coordinator · gpu.h GPU management · dictionary.h Dictionary words · hash_string.h Candidate strings
Components 17
Inputs and candidates
- Hash targets
src/main.cpp - Pattern inputs
src/main.cpp - Listfile strategies
src/main.cpp - Dictionary words
src/dictionary.h
Search and hashing
- Search coordinator
src/main.cpp - Candidate strings
src/hash_string.h - CPU search
src/main.cpp - HashLittle2
src/hashlittle2.h - SStrHash
src/sstrhash.h
GPU acceleration
- GPU batches
src/main.cpp - OpenCL runtime
src/gpu.cpp - GPU management
src/gpu.h - OpenCL kernels
src/cl/kernels.h
Results and utilities
- Progress reporting
src/progress_bar.h - File and text utilities
src/util.h - Matched names
src/main.cpp
Other components
- CLI user
Connections 16
- CLI user → Search coordinator: runs
README.md - Search coordinator → Hash targets: reads targets
src/main.cpp - Search coordinator → Pattern inputs: reads patterns
README.md - Search coordinator → Listfile strategies: tries strategies
README.md - Search coordinator → Dictionary words: loads words
src/main.cpp - Search coordinator → Candidate strings: prepares candidates
src/main.cpp - Search coordinator → CPU search: searches combinations
README.md - CPU search → HashLittle2: computes hash
src/main.cpp - CPU search → SStrHash: computes hash
src/main.cpp - Search coordinator → GPU batches: enables GPU
README.md - GPU batches → GPU management: configures batches
src/main.cpp - GPU management → OpenCL runtime: executes kernels
src/gpu.cpp - GPU batches → OpenCL kernels: selects kernels
src/main.cpp - Search coordinator → Progress reporting: reports progress
src/main.cpp - Search coordinator → Matched names: prints matches
README.md - Search coordinator → File and text utilities: uses helpers
src/main.cpp