当前位置: 首页 > 软件库 > 管理和监控 > 安全相关 >

duplicut

授权协议 GPL-3.0 License
开发语言 C/C++
所属分类 管理和监控、 安全相关
软件类型 开源软件
地区 不详
投 递 者 颛孙俊
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Duplicut ✂️

Quickly dedupe massive wordlists, without changing the order tweet


Created by nil0x42 and contributors


�� Overview

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 �� ��


�� 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 packingsize 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 withattached output:

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

相关阅读

相关文章

相关问答

相关文档