Unable to use own hash database
#1
Hi all,

I'm new to hashcat and trying to learn how to use the tool.

I downloaded a file of hashes here: http://www.adeptus-mechanicus.com/codex/...shpass.php Specifically, I downlaoded the battielfield hashes file and saved it as bfield.hash.


Next, I downloaded a list of common passwords here: https://wiki.skullsecurity.org/index.php...=Passwords Specifically, it is phpbb.txt

Now, if i run the command:
./hashcat -m 0 bfield.hash phpbb.txt -o plain_wordlist_results.txt

Everything works great: I get the inverted MD5 hashes that I am able to with the ditionary phpbb.txt.

Where am I struggling, is cracking my own test examples. For instance, if I open my bfield.hash file in a simple text editor and literally copy and paste all the passwords into a new file, say, hashes.txt, and then run

./hashcat -m 0 hashes.txt phpbb.txt -o plain_wordlist_results.txt

I get a line length exception error.

So this must mean that the .hash file is formatted correctly while my custom file is not. What is happening?

Many thanks!
#2
Can't diagnose this without understanding more about how you are creating hashes.txt.

What happens if hashes.txt contains only the MD5 example hash from the hashcat wiki (8743b52063cd84097a65d1633f5c74f5) ?
~
#3
(12-30-2017, 04:15 PM)royce Wrote: Can't diagnose this without understanding more about how you are creating hashes.txt.

What happens if hashes.txt contains only the MD5 example hash from the hashcat wiki (8743b52063cd84097a65d1633f5c74f5) ?

Hi,

Thanks for your help.

When the hashes.txt file contains only 8743b52063cd84097a65d1633f5c74f5, and I run the command

/hashcat -m 0 hashes.txt phpbb.txt -o plain_wordlist_results.txt

The result is:

hashcat (v4.0.1-74-ga680f194) starting...

OpenCL Platform #1: Apple
=========================
* Device #1: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz, skipped.
* Device #2: Iris Pro, 384/1536 MB allocatable, 40MCU
* Device #3: GeForce GT 750M, 512/2048 MB allocatable, 2MCU

Hash 'hashes.txt': Line-length exception
No hashes loaded.


Note i create the hashes.txt by literally opening a text editor and copying and pasting 8743b52063cd84097a65d1633f5c74f5 and then saving it as a .txt file.
#4
your file is at the wrong location. hashcat cannot find it.
#5
G
(12-30-2017, 11:30 PM)undeath Wrote: your file is at the wrong location. hashcat cannot find  it.



I see. Thanks. But the file is in the hashcat folder, so what’s going on?
#6
The error

Hash 'hashes.txt': Line-length exception

... is not very clear. What it means is that since the system couldn't find the hashes.txt file in the current working directory, it tried to interpret 'hashes.txt' as a literal hash.

So the hashes.txt file is not in the current working directory.
~