rling
rling is a faster alternative to the rli utility from hashcat-utils. It removes matching lines or duplicates from files by comparing a single input file against one or more remove files.
Description
rling efficiently processes large files to eliminate duplicates or matching lines, making it ideal for cleaning result files in penetration testing and forensics workflows. Similar to rli but significantly faster, it supports various optimizations for memory usage, threading, and sorting to handle massive datasets encountered in password cracking or log analysis.
Use cases include deduplicating wordlists, removing known lines from capture outputs, or extracting unique entries from hash or password dumps. It integrates well with tools like getpass for password extraction and splitlen for length-based splitting, forming part of a toolkit for result processing.
The tool supports stdin/stdout for piping in Unix pipelines, enabling seamless integration into scripts for automated data cleanup.
How It Works
rling uses hash tables by default for rapid line matching and duplicate removal, with options for binary search (-b), file-based storage (-f), or low-memory rli2 mode (-2) requiring sorted inputs. It processes an input file against remove files (remfil1, remfile2, etc.), optionally writing duplicates to a file (-D), sorting output (-s), or limiting matches by length (-l). Threading (-t), hash table sizing (-p), and temp file directories (-T) optimize performance for large-scale operations.
Installation
sudo apt install rlingFlags
Examples
rling input output [remfil1 remfile2 ...]rling --helprling input output -drling input output -D duplicates.txtrling input output -c remfile1rling input output -s -t 4rling input output -brling input output -2