Let's say I forgot my disk encryption key (linux, luks, cryptsetup) and have a vague idea with a couple of permutations.
What is the live system I should boot to go through the candidates?
Bonus points if it supports some sort of expression syntax such that it can build the permutations by itself.
=> More informations about this toot | More toots from freddy@security.plumbing
@freddy
I would choose Kali Linux (because most important stuff pre-installed).
Extract the header + keys:
cryptsetup luksHeaderBackup --header-backup-file header.img /dev/sdX
"Bruteforce" with hashcat:
hashcat -m 14600 header.img wordlist.txt --rules-file=myrules.rule
=> More informations about this toot | More toots from TimPhSchaefers@chaos.social
@freddy I just tend to boot on the Arch install system. Not sure it has very advanced programming tools, but bash (or is it zsh) would probably work well enough.
=> More informations about this toot | More toots from shtrom@piaille.fr
@shtrom this seems like SUCH a common use case, I would hope someone would have done the looping and scripting for me. :-)
=> More informations about this toot | More toots from freddy@security.plumbing This content has been proxied by September (ba2dc).Proxy Information
text/gemini