Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.18 KB

README.md

File metadata and controls

52 lines (41 loc) · 1.18 KB

Tool to find word from the murmur3 hash

Install

Install Go

go get -u -v github.com/drahoslove/brute
cd `go env GOPATH`/bin

Usage

./brute <hash> <len>
./brute <hash> <template>

Examples

# Find 5 characters long word
./brute 1ywbo59 5
# Find 7 characters long word which starts by letter m
./brute 6dgtio m------
# Find pair of words with some known letter (must be quoted because of the space)
./brute 12151af 't--dn- -n--a'
# Use custom number of workers (should not be more than the number of CPU threads)
# default is threads/2 - 1, but at least 2
WORKERS=15 ./brute 6dgtio 7

alt text

Notes

  • Only work for words consisting of following lowercase characters oenatvsilkrdpímuázjyěcbéhřýžčšůfgúňxťóďwq and space
  • the hash is 32bit version of murmur3 encoded using base36
  • intended to be run in interactive shell

Performance (Ryzen 7 - 8 cores - 3.7GHz - 7 workers):

  • 5 chars: ~150 million tries per second
  • 6 chars: ~135 million tries per second
  • 7 chars: ~120 million tries per second
  • 8 chars: ~105 million tries per second