mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 00:28:11 +00:00
ascii_digest additions.
This commit is contained in:
parent
1c8368d1cd
commit
f0535b1a52
24
src/shared.c
24
src/shared.c
@ -8480,6 +8480,30 @@ void ascii_digest (char *out_buf, uint salt_pos, uint digest_pos)
|
|||||||
sprintf (ptr_data, "%08x", ptr_keyfile[i]);
|
sprintf (ptr_data, "%08x", ptr_keyfile[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elseif (hash_mode == 13500)
|
||||||
|
{
|
||||||
|
pstoken_t *pstokens = (pstoken_t *) data.esalts_buf;
|
||||||
|
pstoken_t *pstoken = &pstokens[salt_pos];
|
||||||
|
|
||||||
|
uint mysalt_len = pstoken->salt_len > 512 ? 512 : pstoken->salt_len;
|
||||||
|
|
||||||
|
u8 pstoken_tmp[mysalt_len + 1];
|
||||||
|
|
||||||
|
memset(pstoken_tmp, 0, mysalt_len + 1);
|
||||||
|
|
||||||
|
for (int i = 0; i < mysalt_len; i++)
|
||||||
|
{
|
||||||
|
snprintf(pstoken_tmp[i], 1, "%02x", pstoken->salt_buf[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
snprintf (out_buf, len-1, "%08x%08x%08x%08x%08x:%s",
|
||||||
|
digest_buf[0],
|
||||||
|
digest_buf[1],
|
||||||
|
digest_buf[2],
|
||||||
|
digest_buf[3],
|
||||||
|
digest_buf[4],
|
||||||
|
pstoken_tmp);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (hash_type == HASH_TYPE_MD4)
|
if (hash_type == HASH_TYPE_MD4)
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
# missing hash types: 5200,6211,6221,6231,6241,6251,6261,6271,6281
|
# missing hash types: 5200,6211,6221,6231,6241,6251,6261,6271,6281
|
||||||
|
|
||||||
HASH_TYPES="0 10 11 12 20 21 22 23 30 40 50 60 100 101 110 111 112 120 121 122 125 130 131 132 133 140 141 150 160 190 200 300 400 500 900 1000 1100 1400 1410 1420 1430 1440 1441 1450 1460 1500 1600 1700 1710 1711 1720 1722 1730 1731 1740 1750 1760 1800 2100 2400 2410 2500 2600 2611 2612 2711 2811 3000 3100 3200 3710 3711 3800 4300 4400 4500 4700 4800 4900 5000 5100 5300 5400 5500 5600 5700 5800 6000 6100 6300 6400 6500 6600 6700 6800 6900 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8900 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11900 12000 12100 12200 12300 12400 12600 12800 12900 13000 13100 13200 13300 13400"
|
HASH_TYPES="0 10 11 12 20 21 22 23 30 40 50 60 100 101 110 111 112 120 121 122 125 130 131 132 133 140 141 150 160 190 200 300 400 500 900 1000 1100 1400 1410 1420 1430 1440 1441 1450 1460 1500 1600 1700 1710 1711 1720 1722 1730 1731 1740 1750 1760 1800 2100 2400 2410 2500 2600 2611 2612 2711 2811 3000 3100 3200 3710 3711 3800 4300 4400 4500 4700 4800 4900 5000 5100 5300 5400 5500 5600 5700 5800 6000 6100 6300 6400 6500 6600 6700 6800 6900 7100 7200 7300 7400 7500 7600 7700 7800 7900 8000 8100 8200 8300 8400 8500 8600 8700 8900 9100 9200 9300 9400 9500 9600 9700 9800 9900 10000 10100 10200 10300 10400 10500 10600 10700 10800 10900 11000 11100 11200 11300 11400 11500 11600 11900 12000 12100 12200 12300 12400 12600 12800 12900 13000 13100 13200 13300 13400 13500"
|
||||||
|
|
||||||
#ATTACK_MODES="0 1 3 6 7"
|
#ATTACK_MODES="0 1 3 6 7"
|
||||||
ATTACK_MODES="0 1 3 7"
|
ATTACK_MODES="0 1 3 7"
|
||||||
@ -23,7 +23,7 @@ HASHFILE_ONLY="2500"
|
|||||||
|
|
||||||
NEVER_CRACK="11600"
|
NEVER_CRACK="11600"
|
||||||
|
|
||||||
SLOW_ALGOS="400 500 501 1600 1800 2100 2500 3200 5200 5800 6211 6221 6231 6241 6251 6261 6271 6281 6300 6400 6500 6600 6700 6800 7100 7200 7400 7900 8200 8800 8900 9000 9100 9200 9300 9400 9500 9600 10000 10300 10500 10700 10900 11300 11600 11900 12000 12100 12200 12300 12400 12500 12800 12900 13000 13200 13400"
|
SLOW_ALGOS="400 500 501 1600 1800 2100 2500 3200 5200 5800 6211 6221 6231 6241 6251 6261 6271 6281 6300 6400 6500 6600 6700 6800 7100 7200 7400 7900 8200 8800 8900 9000 9100 9200 9300 9400 9500 9600 10000 10300 10500 10700 10900 11300 11600 11900 12000 12100 12200 12300 12400 12500 12800 12900 13000 13200 13400 13500"
|
||||||
|
|
||||||
OPTS="--quiet --force --potfile-disable --runtime 200 --gpu-temp-disable --weak-hash-threshold=0 -u 1024 -n 128"
|
OPTS="--quiet --force --potfile-disable --runtime 200 --gpu-temp-disable --weak-hash-threshold=0 -u 1024 -n 128"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user