well you have to do some manual work here, hashcat will always throw a token lenght exeption for this lines, even when using --username
i did a fast test with the following command
resulting in a file with the hashes only
if you want username:hash use
working also on windows with windows subshell for linux
i did a fast test with the following command
Code:
while read -r line; do echo $line | awk -F [:] {'print $2}'; done < hashes-1.sha512crypt.txt > hashes-only.txt
resulting in a file with the hashes only
Code:
$6$gjxgtlzspT2wzWJW$61tKBfooVrQC6/hYZ3TXKpFuLmNnAHomE/Ccf.dRWDo87W2MeoeOSPGSYNlAGfDwYugiV.KGWJGSEzXEjT4OI0
$6$gOpi1hk1MNE9/Pvv$9V6PTndHdlxu3ro9faPWscCK63mgei3wdwZlqKjpPvjutZO9QuUtvkUVF.LyDUla3PZL4.X0xaBsH1cj84JML0
$6$kZ5CEnqse5xgF9EY$MBg9YBlyBBBX/uJBs5hqEYFhPgQUHYkfxNnQu7T5PHAY7T5dUaTlYSGMRmqAXJbg5SU6pEs/ckI4qdjcjs7Tz.
$6$EZuYSrVqGLMH/1NB$pURWdPcqbXENNXtTLH59vskyQUAMeRvd5Je45rBlztW6HyJ.EkqKwM1FXkkvFC/ZPOZ9Qrm5/rVTe1xkNX93o/
if you want username:hash use
Code:
while read -r line; do echo $line | awk -F [:] {'print $1":"$2}'; done < hashes-1.sha512crypt.txt > hashes-only.txt
working also on windows with windows subshell for linux