Menu

Hashfile example

hashfile (1)
chalo

Introduction

A hashfile is a text file that includes one hash per line. That hash must be for a supported algorithm.
From JBrute's version 0.97 onwards you can add some extra information to that line, to specify a salt and it details.
So, essentially a line in a hashfile is like a row in a table, and it has columns (or fields). The hashfile supports 4 fields: hash, salt, salt order and salt type. Each field should be separated with the ':' character. So, an example should be:
hash:salt:preorpost:salttype

All fields but hash has a default value.
salt: null
preorpostsalt = pre
salttype = utf8

Let's see some concrete examples with MD5 hashes:

The most simple line: just md5 hashes without salt:

[root@localhost]# cat hashfile.txt
4d186321c1a7f0f354b297e8914ab240
d0a4a9d5eae1444b3285be84e98afcf8
[root@localhost]#

MD5 hashes with utf8 pre-salt (using default values):

[root@localhost]# cat hashfile1.txt
4d186321c1a7f0f354b297e8914ab240:hola
d0a4a9d5eae1444b3285be84e98afcf8:chau
[root@localhost]#

MD5 hashes with utf8 pre-salt (explicit indication):

[root@localhost]# cat hashfile2.txt
4d186321c1a7f0f354b297e8914ab240:hola:pre:utf8
d0a4a9d5eae1444b3285be84e98afcf8:chau:pre:utf8
[root@localhost]#

MD5 hashes with utf8 post-salt (explicit indication):

[root@localhost]# cat hashfile3.txt
4d186321c1a7f0f354b297e8914ab240:hola:pos:utf8
d0a4a9d5eae1444b3285be84e98afcf8:chau:pos:utf8
[root@localhost]#

MD5 hashes with hex post-salt:

[root@localhost]# cat hashfile1.txt
4d186321c1a7f0f354b297e8914ab240:O1AEC378:pos:hex
d0a4a9d5eae1444b3285be84e98afcf8:FF09B234:pos:hex
[root@localhost]#

MD5 hashes with int64 post-salt:

[root@localhost]# cat hashfile1.txt
4d186321c1a7f0f354b297e8914ab240:1933555081498302149:pos:int64
d0a4a9d5eae1444b3285be84e98afcf8:1175720674127386925:pos:int64
[root@localhost]#