Password Attackspasswordcrackinganalysismaskshashcatstatistics

pack2

Password analysis and cracking kit that aids in preparing for better-than-brute-force password attacks by analyzing password creation patterns. It generates statistical databases and attack masks for tools like oclHashcat.

Description

pack2 is a replacement for iphelix’s PACK, developed for the 'Crack Me If You Can' password cracking competition at Defcon 2010. It helps analyze common ways people create passwords to enable more efficient cracking with other tools. The toolkit does not crack passwords itself but assists by generating optimized attack masks after analysis.

Use cases include preparing for password cracking competitions or real-world scenarios where brute-force is inefficient. After processing wordlists or inputs with its subcommands, it produces statistics and masks that can be fed into tools like oclHashcat for faster cracking. Note that it is a work in progress, with some features differing from the original PACK.

The package also includes deprecated Java tools pack200 and unpack200 for JAR file compression and decompression, but the primary focus is the pack2 password toolkit.

How It Works

pack2 processes input wordlists or data through subcommands like statsgen to generate statistics on charset boundaries, patterns, and common constructions, outputting masks to files and stats to stderr. These masks represent probabilistic patterns (e.g., common length, character types) derived from statistical analysis, which are then used by cracking tools like oclHashcat to prioritize likely passwords over pure brute-force. Other subcommands like cgrams split lines on charset boundaries, filtermask applies masks to filter wordlists, and unhex decodes $HEX[] formats.

Installation

bash
sudo apt install pack2

Flags

-h, --helpPrints help information
-V, --versionPrints version information

Examples

Displays help information for pack2 including subcommands
pack2 -h
Splits each line on the charset boundary
pack2 cgrams
Filters a wordlist by a given mask
pack2 filtermask
Generates statistics from input and writes masks to output; stats written to stderr
pack2 statsgen [input] <output>
Decodes $HEX[] encoded lines
pack2 unhex
Prints this message or the help of the given subcommand(s)
pack2 help
Displays help for the deprecated pack200 JAR packing tool
pack200 -h
Displays help for the deprecated unpack200 JAR unpacking tool
unpack200 -h
Updated 2026-04-16kali.org ↗