mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-06 13:51:06 +00:00
Colorize cracked hashes for non windows
Make cracked hashes cyan in stdout, if program compiled on non _WIN os partially solves: - https://github.com/hashcat/hashcat/issues/3158 - https://github.com/hashcat/hashcat/issues/3515
This commit is contained in:
parent
6716447dfc
commit
9e4e7c1c60
@ -352,8 +352,16 @@ static void main_cracker_hash_cracked (MAYBE_UNUSED hashcat_ctx_t *hashcat_ctx,
|
|||||||
if (outfile_ctx->filename == NULL) if (user_options->quiet == false) clear_prompt (hashcat_ctx);
|
if (outfile_ctx->filename == NULL) if (user_options->quiet == false) clear_prompt (hashcat_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined (_WIN)
|
||||||
fwrite (buf, len, 1, stdout);
|
fwrite (buf, len, 1, stdout);
|
||||||
fwrite (EOL, strlen (EOL), 1, stdout);
|
fwrite (EOL, strlen (EOL), 1, stdout);
|
||||||
|
#else
|
||||||
|
// make cracked hash output in cyan
|
||||||
|
fputs("\033[36m", stdout);
|
||||||
|
fwrite (buf, len, 1, stdout);
|
||||||
|
fwrite("\033[0m", 4, 1, stdout);
|
||||||
|
fwrite (EOL, strlen (EOL), 1, stdout);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((user_options_extra->wordlist_mode == WL_MODE_FILE) || (user_options_extra->wordlist_mode == WL_MODE_MASK))
|
if ((user_options_extra->wordlist_mode == WL_MODE_FILE) || (user_options_extra->wordlist_mode == WL_MODE_MASK))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user