Modern password wordlist creation usually implies concatenatingmultiple data sources.
Ideally, most probable passwords should stand at start of the wordlist,so most common passwords are cracked instantly.
With existing dedupe tools you are forced to chooseif you prefer to preserve the order OR handle massive wordlists.
Unfortunately, wordlist creation requires both:
So i wrote duplicut in highly optimized C to address this very specific need
�� ��
git clone https://github.com/nil0x42/duplicut
cd duplicut/ && make
./duplicut wordlist.txt -o clean-wordlist.txt
Features:
-l
option)-p
option)Implementation:
Limitations:
An uint64
is enough to index lines in hashmap, by packingsize
info within pointer's extra bits:
If whole file can't fit in memory, it is split into virtual chunks, then each one is tested against next chunks.
So complexity is equal to th triangle number:
If you find a bug, or something doesn't work as expected,please compile duplicut in debug mode and post an issue withattached output:
# debug level can be from 1 to 4
make debug level=1
./duplicut [OPTIONS] 2>&1 | tee /tmp/duplicut-debug.log