Duplicut : Remove Duplicates From MASSIVE Wordlist, Without Sorting It

Duplicut is a modern password wordlist creation usually implies concatenating multiple 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 choose if 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

Quick start

git clone https://github.com/nil0x42/duplicut
cd duplicut/ && make
./duplicut wordlist.txt -o clean-wordlist.txt

Options

Features

  • Handle massive wordlists, even those whose size exceeds available RAM
  • Filter lines by max length (-l option)
  • Can remove lines containing non-printable ASCII chars (-p option)
  • Press any key to show program status at runtime.

Implementation

  • Written in pure C code, designed to be fast
  • Compressed hashmap items on 64 bit platforms
  • Multithreading support
  • [TODO]: Use huge memory pages to increase performance

Limitations

  • Any line longer than 255 chars is ignored
  • Heavily tested on Linux x64, mostly untested on other platforms.

Technical Details

1- Memory optimized

An uint64 is enough to index lines in hashmap, by packing size info within pointer’s extra bits:

2- Massive file handling

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:

Throubleshotting

If you find a bug, or something doesn’t work as expected, please compile duplicut in debug mode and post an issue with attached output:

debug level can be from 1 to 4
make debug level=1
./duplicut [OPTIONS] 2>&1 | tee /tmp/duplicut-debug.log
R K

Recent Posts

Kali Linux 2024.4 Released, What’s New?

Kali Linux 2024.4, the final release of 2024, brings a wide range of updates and…

14 hours ago

Lifetime-Amsi-EtwPatch : Disabling PowerShell’s AMSI And ETW Protections

This Go program applies a lifetime patch to PowerShell to disable ETW (Event Tracing for…

15 hours ago

GPOHunter – Active Directory Group Policy Security Analyzer

GPOHunter is a comprehensive tool designed to analyze and identify security misconfigurations in Active Directory…

3 days ago

2024 MITRE ATT&CK Evaluation Results – Cynet Became a Leader With 100% Detection & Protection

Across small-to-medium enterprises (SMEs) and managed service providers (MSPs), the top priority for cybersecurity leaders…

5 days ago

SecHub : Streamlining Security Across Software Development Lifecycles

The free and open-source security platform SecHub, provides a central API to test software with…

1 week ago

Hawker : The Comprehensive OSINT Toolkit For Cybersecurity Professionals

Don't worry if there are any bugs in the tool, we will try to fix…

1 week ago