rainbowcrack

Générateur et casseur de mots de passe par tables arc-en-ciel. Utilise des tables arc-en-ciel précalculées pour un cassage de hash quasi instantané, extrêmement rapide pour les mots de passe couverts par rapport au brute-force. Rainbow table password cracker and generator. Uses precomputed rainbow tables for near-instant hash cracking — extremely fast for covered passwords compared to brute-force.

↗ http://project-rainbowcrack.com/

Overview

RainbowCrack uses precomputed rainbow tables to crack cryptographic hash functions. Once a table is generated or downloaded, hash lookups are nearly instantaneous compared to brute-force. Supports LM, NTLM, MD5, SHA1, and other hash types.

Basic Usage

Crack hashes using a rainbow table

rcrack /path/to/tables/ -h HASH_VALUE

Crack from file

rcrack /path/to/tables/ -f hashes.txt

Crack NTLM hash

rcrack /usr/share/rainbowcrack/ -h 31d6cfe0d16ae931b73c59d7e0c089c0

Crack MD5 hash

rcrack /usr/share/rainbowcrack/md5/ -h 5d41402abc4b2a76b9719d911017c592

Generating Rainbow Tables

# rtgen — generate rainbow table
# Syntax: rtgen hash_algo charset plaintext_len_min plaintext_len_max table_index chain_len chain_count part_index

Generate NTLM table for 8-char lowercase

rtgen ntlm loweralpha 8 8 0 3800 33554432 0

Generate MD5 table for 6-char alphanumeric

rtgen md5 loweralpha-numeric 6 6 0 3800 33554432 0

After generation, sort the table

rtsort table.rt
# Common charsets: loweralpha, upperalpha, numeric, loweralpha-numeric, all

Pre-built Tables

# Download pre-built tables from:
# http://project-rainbowcrack.com/table.htm
# freerainbowtables.com

# Common free tables:
# NTLM — loweralpha, 8 chars (covers most simple passwords)
# MD5 — various charsets

Kali may have some in:

ls /usr/share/rainbowcrack/

Sorting Tables

Tables must be sorted before use

rtsort table.rt

Sort all tables in a directory

for f in /path/to/tables/*.rt; do rtsort "$f"; done

Tips

  • Rainbow tables are a time-memory tradeoff: large tables, instant lookups
  • LM hashes (Windows XP era) crack almost instantly with rainbow tables
  • NTLM with complex passwords exceeds table coverage — use hashcat for those
  • Use ophcrack for a GUI frontend with built-in rainbow table support
  • Pre-built tables from online sources save generation time but are large (GB-TB)
  • GPU-based hashcat often beats rainbow tables for short passwords
Help / Man page
rcrack TABLE_DIR [options]

-h HASH     Crack a single hash
-f FILE     Crack hashes from file (one per line)
-l FILE     Crack hashes from file (hash:username format)

rtgen — Generate tables:
rtgen HASH CHARSET MIN MAX INDEX CHAIN_LEN CHAIN_COUNT PART

rtsort — Sort generated table:
rtsort TABLE.rt

Vue d’ensemble

RainbowCrack utilise des tables arc-en-ciel précalculées pour casser des fonctions de hachage cryptographiques. Une fois une table générée ou téléchargée, les recherches de hash sont quasi instantanées par rapport au brute-force. Prend en charge LM, NTLM, MD5, SHA1 et d’autres types de hash.

Utilisation basique

# Casser des hashes avec une table arc-en-ciel
rcrack /path/to/tables/ -h HASH_VALUE

# Casser depuis un fichier
rcrack /path/to/tables/ -f hashes.txt

# Casser un hash NTLM
rcrack /usr/share/rainbowcrack/ -h 31d6cfe0d16ae931b73c59d7e0c089c0

# Casser un hash MD5
rcrack /usr/share/rainbowcrack/md5/ -h 5d41402abc4b2a76b9719d911017c592

Génération de tables arc-en-ciel

# rtgen : génère une table arc-en-ciel
# Syntaxe : rtgen hash_algo charset plaintext_len_min plaintext_len_max table_index chain_len chain_count part_index
# Générer une table NTLM pour 8 caractères minuscules
rtgen ntlm loweralpha 8 8 0 3800 33554432 0

# Générer une table MD5 pour 6 caractères alphanumériques
rtgen md5 loweralpha-numeric 6 6 0 3800 33554432 0

Après la génération, trier la table

rtsort table.rt
# Jeux de caractères courants : loweralpha, upperalpha, numeric, loweralpha-numeric, all

Tables préconstruites

# Télécharger des tables préconstruites depuis :
# http://project-rainbowcrack.com/table.htm
# freerainbowtables.com

# Tables gratuites courantes :
# NTLM : loweralpha, 8 caractères (couvre la plupart des mots de passe simples)
# MD5 : divers jeux de caractères

Kali peut en avoir quelques-unes dans :

ls /usr/share/rainbowcrack/

Tri des tables

Les tables doivent être triées avant utilisation

rtsort table.rt

Trier toutes les tables d’un répertoire

for f in /path/to/tables/*.rt; do rtsort "$f"; done

Conseils

  • Les tables arc-en-ciel sont un compromis temps/mémoire : tables volumineuses, recherches instantanées
  • Les hashes LM (ère Windows XP) se cassent presque instantanément avec des tables arc-en-ciel
  • Les mots de passe NTLM complexes dépassent la couverture des tables : utiliser hashcat pour ceux-là
  • Utiliser ophcrack pour une interface graphique avec support intégré des tables arc-en-ciel
  • Les tables préconstruites téléchargées en ligne font gagner du temps de génération mais sont volumineuses (Go-To)
  • hashcat sur GPU dépasse souvent les tables arc-en-ciel pour les mots de passe courts
Aide / Page de manuel
rcrack TABLE_DIR [options]

-h HASH     Crack a single hash
-f FILE     Crack hashes from file (one per line)
-l FILE     Crack hashes from file (hash:username format)

rtgen — Generate tables:
rtgen HASH CHARSET MIN MAX INDEX CHAIN_LEN CHAIN_COUNT PART

rtsort — Sort generated table:
rtsort TABLE.rt