Password Attackswordlistmanglingpermutationspasswordgeneration

RSMangler

RSMangler is a wordlist mangling tool that takes input words and performs various manipulations, including generating all permutations and acronyms before applying additional mangles. It is similar to John the Ripper's mangling capabilities but with unique preprocessing steps.

Description

RSMangler processes wordlists to create expanded sets of potential passwords by applying multiple transformation rules. It first generates permutations and acronyms from the input words in the order they appear, then applies further mangles such as doubling, reversing, and length filtering. This tool is particularly useful for password cracking and security testing where standard wordlists need enhancement to cover common user password variations.

Use cases include preparing mutated wordlists for brute-force attacks or dictionary-based cracking against hashed passwords. By turning a small input list into hundreds or thousands of mangled variants, it increases the effectiveness of attacks without requiring massive base dictionaries.

The tool is lightweight, with an installed size of 24 KB, and depends on Ruby. It supports both file input and stdin, with output redirection to files, making it flexible for piping in Kali Linux workflows.

How It Works

RSMangler reads a wordlist from a file or stdin, then generates all permutations and the acronym of the words in their input order. It subsequently applies enabled mangling rules, such as doubling words, reversing them, and filtering by minimum and maximum lengths. All options are enabled by default; flags turn specific mangles off. Output is written to a specified file or stdout, producing a new wordlist with the transformed entries.

Installation

bash
sudo apt install rsmangler

Flags

--help, -hshow help
--file, -fthe input file, use - for STDIN
--output, -othe output file, use - for STDOUT
--max, -xmaximum word length
--min, -mminimum word length
--perms, -ppermutate all the words
--double, -ddouble each word
--reverse, -rreverse the word

Examples

Basic usage: process wordlist.txt with all default mangles
rsmangler --file wordlist.txt
Pass initial words via stdin
cat wordlist.txt | rsmangler
Send output to a specific file
rsmangler --file wordlist.txt --output mangled.txt
Mangle words from stdin with min length 6, max 8, output to mangled.txt (generates 367 lines from 3 input words)
cat words.txt | rsmangler -m 6 -x 8 --file - > mangled.txt
Show help and usage information
rsmangler -h
Process words.txt with length filters and direct output to file
rsmangler --file words.txt -m 6 -x 8 -o mangled.txt
Use stdin with specific mangles (perms and double) enabled
cat words.txt | rsmangler --perms --double > output.txt
Updated 2026-04-16kali.org ↗