mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-21 15:39:03 +00:00
Update status.c
This commit is contained in:
parent
cd8bff1682
commit
feb0afadf2
25
src/status.c
25
src/status.c
@ -865,23 +865,24 @@ char *status_get_guess_candidates_dev (const hashcat_ctx_t *hashcat_ctx, const i
|
|||||||
const bool need_hex1 = need_hexify (plain_ptr1, plain_len1, 0, always_ascii);
|
const bool need_hex1 = need_hexify (plain_ptr1, plain_len1, 0, always_ascii);
|
||||||
const bool need_hex2 = need_hexify (plain_ptr2, plain_len2, 0, always_ascii);
|
const bool need_hex2 = need_hexify (plain_ptr2, plain_len2, 0, always_ascii);
|
||||||
|
|
||||||
if ((need_hex1 == true) || (need_hex2 == true))
|
// Left candidate needs to be $HEX-ed
|
||||||
{
|
if(need_hex1 == true){
|
||||||
exec_hexify (plain_ptr1, plain_len1, plain_ptr1);
|
exec_hexify (plain_ptr1, plain_len1, plain_ptr1);
|
||||||
exec_hexify (plain_ptr2, plain_len2, plain_ptr2);
|
|
||||||
|
|
||||||
plain_ptr1[plain_len1 * 2] = 0;
|
plain_ptr1[plain_len1 * 2] = 0;
|
||||||
|
}
|
||||||
|
else{plain_ptr1[plain_len1] = 0;}
|
||||||
|
|
||||||
|
// Right candidate needs to be $HEX-ed
|
||||||
|
if(need_hex2 == true){
|
||||||
|
exec_hexify (plain_ptr2, plain_len2, plain_ptr2);
|
||||||
plain_ptr2[plain_len2 * 2] = 0;
|
plain_ptr2[plain_len2 * 2] = 0;
|
||||||
|
|
||||||
snprintf (display, HCBUFSIZ_TINY, "$HEX[%s] -> $HEX[%s]", plain_ptr1, plain_ptr2);
|
|
||||||
}
|
}
|
||||||
else
|
else { plain_ptr2[plain_len2] = 0; }
|
||||||
{
|
|
||||||
plain_ptr1[plain_len1] = 0;
|
|
||||||
plain_ptr2[plain_len2] = 0;
|
|
||||||
|
|
||||||
snprintf (display, HCBUFSIZ_TINY, "%s -> %s", plain_ptr1, plain_ptr2);
|
if(need_hex1 == true && need_hex2 == true) {snprintf (display, HCBUFSIZ_TINY, "$HEX[%s] -> $HEX[%s]", plain_ptr1, plain_ptr2);}
|
||||||
}
|
else if(need_hex1 == true && need_hex2 == false) {snprintf (display, HCBUFSIZ_TINY, "$HEX[%s] -> %s", plain_ptr1, plain_ptr2);}
|
||||||
|
else if(need_hex1 == false && need_hex2 == true) {snprintf (display, HCBUFSIZ_TINY, "%s -> $HEX[%s]", plain_ptr1, plain_ptr2);}
|
||||||
|
else if(need_hex1 == false && need_hex2 == false) {snprintf (display, HCBUFSIZ_TINY, "%s -> %s", plain_ptr1, plain_ptr2);}
|
||||||
|
|
||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user