Table of Contents

Table attack beginner guide

Description

For a more technical explanation of the table attack, see this page.

This guide is for people new to hashcat or to the table attack who want to get started.

Simple Explanation

The Table attack (-a 5) can be seen in context within the following example.

hashcat -a 5 --stdout B.txt A.table > C.txt

In this example, the user wants to generate a more diverse wordlist from simple base words. The --stdout feature in hashcat writes the candidates to a text file for future use.

The command above modifies an existing wordlist (B.txt) to generate a new one (C.txt). It does not run an attack. The new wordlist can be used later in other hashcat modes.

Here is a breakdown of each part of the command.

hashcat is the main executable. On Windows it is hashcat.exe.

-a 5 selects the table attack. You can also write it in full as --attack-mode 5.

--stdout prints password candidates instead of using them in an attack.

B.txt This is the wordlist you are starting from, your plain or base words. It comes before the table.

A.table This is your table file. “A” could be any name you choose. Here it is assumed that the file sits in the same folder as hashcat. If not, give the full path, and you may need to put quotes around it. A good trick is to drag and drop the file into the command window at the point where you need to type the location.

> C.txt sends the results to a text file called C.txt. You can choose a different name for this output file.

Choose a descriptive output filename so you can identify its contents later. Opening a very large text file to check what it contains can be difficult.

You should now be able to generate new password text files by modifying your existing base word lists.

Start with a very small input file (B.txt) to see how the table affects it. The output can be much larger than the input.

Default table files are provided in the tables/ folder of the hashcat directory. Consider sharing useful table files or password lists on the hashcat forum.

What a table file looks like

Each line is one character, then a tab, then what that character may become. This table lets every s become a $ or a 5:

s	$
s	5

The tab is required. If you use spaces or an equals sign, hashcat reports a table line is a source and a replacement with one tab between them.

You can give it more than one table

Everything after the wordlist is treated as a table, so you can hand hashcat several at once and it merges them into one attack:

hashcat -a 5 --stdout B.txt tables/leetspeak-common.table tables/toggle.table > C.txt

Limitations

The old limit was on word length. Now there is a budget on how many candidates a single word is allowed to produce on the host, called maxperm, and it defaults to 1048576. It exists because a long word with a big table can otherwise produce more candidates than you could ever run, and the whole job would be spent on the first few long words. You can raise it, or set maxperm=0 to remove the limit entirely, if you know what you are asking for.

If you are following an older guide

--table-file A.table is how you used to name the table, and hashcat-cli32.exe or hashcat-cli64.exe is what the program used to be called. The table is now just named on the command line after the wordlist, and there is one hashcat binary. See What changed since hashcat-legacy.