Skip to content

Conversation

@SafeEval
Copy link

I'm not sure if this project is still being maintained, but thought I'd pass these contributions along anyway.

To make the tool easier to script, I added grepable output (similar to nmap's) and a "quiet mode" that suppresses the display of unknown hashes.

Regular output, with the -m and -j options.

$ hashid.py -mj hashes.txt 
--File 'hashes.txt'--
Analyzing '*6BC7454DEBA8B50D88AC3B255B79B1CFE2179617'
[+] MySQL5.x [Hashcat Mode: 300][JtR Format: mysql-sha1]
[+] MySQL4.1 [Hashcat Mode: 300][JtR Format: mysql-sha1]
Analyzing '*BCF5E21E354F7D884A6CD4A7F1AEBFB6AF20AE19'
[+] MySQL5.x [Hashcat Mode: 300][JtR Format: mysql-sha1]
[+] MySQL4.1 [Hashcat Mode: 300][JtR Format: mysql-sha1]
--End of file 'hashes.txt'--

Output with the grepable option enabled.

$ hashid.py -mj -g hashes.txt 
[+] *6BC7454DEBA8B50D88AC3B255B79B1CFE2179617 // MySQL5.x // Hashcat Mode: 300 // JtR Format: mysql-sha1 // Source: hashes.txt
[+] *6BC7454DEBA8B50D88AC3B255B79B1CFE2179617 // MySQL4.1 // Hashcat Mode: 300 // JtR Format: mysql-sha1 // Source: hashes.txt
[+] *BCF5E21E354F7D884A6CD4A7F1AEBFB6AF20AE19 // MySQL5.x // Hashcat Mode: 300 // JtR Format: mysql-sha1 // Source: hashes.txt
[+] *BCF5E21E354F7D884A6CD4A7F1AEBFB6AF20AE19 // MySQL4.1 // Hashcat Mode: 300 // JtR Format: mysql-sha1 // Source: hashes.txt

@bburky
Copy link
Collaborator

bburky commented Apr 24, 2018

I'm not the original developer of this project, but remembered I do have commit access. I may try to take up maintenance of this project and address these issues and pull requests. Thanks for your contributions.

I wonder if a JSON or CSV output format might be better. CSV is still one record per line so you could use grep to parse it if you wanted.

@SafeEval
Copy link
Author

SafeEval commented Apr 24, 2018

I'm glad you have the ability to keep the project going.

I agree that both JSON and CSV would be better output formats, and have standard libraries in Python 2/3, so no new dependencies would be required,

What do you think about adding both, and using flags similar to nmap for controlling the output format? Something like:

-oJ      JSON output
-oC      CSV output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants