Adding hashtype (Format 7) to Hashcat's --outfile-format
hashcat
c
cracking
Why
In automated cracking pipelines that run multiple -m <mode> passes into a
shared potfile or outfile, downstream parsers often need to know which hash mode matched a
recovered credential without re-parsing job logs.
Implementation
Added bitflag OUTFILE_FMT_HASHTYPE = (1 << 6) in include/types.h,
wired separator emission and hashconfig->hash_mode formatting in
src/outfile.c, and documented format 7 | hashtype in src/usage.c.
if (outfile_format & OUTFILE_FMT_HASHTYPE)
{
tmp_len = outfile_append_fmt (tmp_buf, tmp_len, "%d", hashconfig->hash_mode);
}
Now --outfile-format=1,2,7 emits hash:plain:mode directly from Hashcat.