Parsing a Potfile
#3
OP is looking for ways do to this in bulk, not one at a time.

I'm not aware of a generic tool for slicing and dicing potfiles. I think most people roll their own. But there are enough interesting angles to it that making a generic tool might be useful.

On Unixlikes, 'cut' can be used, with ':' as the separator - but depending on how old the potfile is, some passwords that contain ':' may be in there that are not HEX-encoded. So asking for all fields after the first field:

Code:
cut -d\: -f2- hashcat.potfile

... will get you the plains, and asking for just the first field:

Code:
cut -d\: -f1 hashcat.potfile

... will get you the hashes.

I'm not clear if you're looking to separate hashes out by type or not. I'm not aware of a clean way to do this, other than by recracking each set and sifting them. MDXfind prepends each hash with its hash type, and its accompanying tool mdsplit separates the resulting hashes out by hash type. But there is only partial overlap between the hash types supported by the two tools.

You may also want to convert the HEX-encoded passwords. See undeath's Perl script here to do that:

https://hashcat.net/forum/thread-3522.html
~


Messages In This Thread
Parsing a Potfile - by Scriptmonkey_ - 12-11-2018, 01:49 PM
RE: Parsing a Potfile - by DanielG - 12-11-2018, 03:23 PM
RE: Parsing a Potfile - by royce - 12-11-2018, 05:55 PM
RE: Parsing a Potfile - by Scriptmonkey_ - 12-12-2018, 08:47 PM
RE: Parsing a Potfile - by royce - 12-12-2018, 09:29 PM
RE: Parsing a Potfile - by mtnsec - 12-18-2018, 08:00 PM