{"id":18672448,"url":"https://github.com/billdietrich/veracryptcrack2","last_synced_at":"2025-04-12T01:31:07.800Z","repository":{"id":106212917,"uuid":"267910347","full_name":"BillDietrich/veracryptcrack2","owner":"BillDietrich","description":"VeraCrypt container cracker using hashcat and wordlist/dictionary","archived":false,"fork":false,"pushed_at":"2020-05-29T17:09:52.000Z","size":909,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T21:22:15.619Z","etag":null,"topics":["linux","password-cracker","veracrypt"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BillDietrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-29T16:56:06.000Z","updated_at":"2025-03-12T07:02:44.000Z","dependencies_parsed_at":"2023-05-30T20:15:43.981Z","dependency_job_id":null,"html_url":"https://github.com/BillDietrich/veracryptcrack2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillDietrich%2Fveracryptcrack2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillDietrich%2Fveracryptcrack2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillDietrich%2Fveracryptcrack2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BillDietrich%2Fveracryptcrack2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BillDietrich","download_url":"https://codeload.github.com/BillDietrich/veracryptcrack2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504214,"owners_count":21115134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linux","password-cracker","veracrypt"],"created_at":"2024-11-07T09:11:25.196Z","updated_at":"2025-04-12T01:31:07.786Z","avatar_url":"https://github.com/BillDietrich.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# veracryptcrack2\n\nVeraCrypt container cracker using hashcat and wordlist/dictionary.  Linux-only.\n\nYou DO need to know the encryption algorithm settings of the VeraCrypt volume to decrypt it.\n\nMay be useful if you forget PIM, which keyfile you used, or mixed up a few characters in a password.\n\nWhen done, use 'wipe' or 'srm' to securely overwrite your wordlist.\n\nGood luck recovering.\n\n\n## Run via:\n\n```shell\n# This takes around 500 MB of disk space !\nsudo apt install hashcat\n\nchmod u+x veracrypt_crack2.sh\n\n# Make sure you have necessary software installed:\nhashcat --version\n\n# To check that everything works correctly before spending more time,\n# run script as given.  It will run against test2.container.\n# It shouldn't take more than a minute or two (because the fourth\n# line in the wordlist is the correct password).\n./veracrypt_crack2.sh\n# You should see a \"Cracked\" message and \"test2.container:THECRACKEDPASSWORD\"\n\n# Then, edit veracrypt_crack2.sh to specify the container you need\n# to crack.  The main thing to know is what hash and encryption algorithms\n# were specified when creating the container; see comments in veracrypt_crack2.sh\n# You also can edit wordlist.txt or specify a different wordlist file.\n```\n\nWordlist/dictionary attacks are the simplest way of using hashcat; it has a bazillion other options.  You can tweak the arguments to hashcat in veracrypt_crack2.sh as you wish.\n\nAlso you could try much bigger wordlists from the internet (e.g. from https://github.com/danielmiessler/SecLists/tree/master/Passwords or https://www.openwall.com/wordlists/).\n\n\n## Limitations\n\n* Linux-only.\n* Tested only on Ubuntu desktop GNOME 20.04 with 5.4 kernel.\n* Tested only on containers generated by VeraCrypt 1.24 on Ubuntu.\n* Tested only on containers that require only a password, no keyfile or PIM.\n\n\n## To-do\n\n* Test with container that requires a keyfile.\n* Test with container that requires a PIM.\n\n\n## Notes\n\nInspired by https://github.com/BillDietrich/veracryptcrack and \nhttps://github.com/BillDietrich/keepasscrack\n\n```shell\n# see all TrueCrypt/VeraCrypt configuration values\nhashcat --help | grep -i \"FDE\" | grep -e X -e Y\n\n# test.container: SHA512   AES-Twofish-Serpent   password crackmeifyoucan   PIM 1337\nhashcat --force --status --hash-type=13722 --veracrypt-pim=1337 --attack-mode=0 --workload-profile=2 test.container wordlist.txt\n# fails: I think \"AES-Twofish-Serpent\" is not supported by hashcat\n\n# test1.container:  hash SHA-256   encryption Camellia 256    password 123456789   no PIM no keyfile\n# use hash-type 13751\nhashcat --force --status --hash-type=13731 --attack-mode=0 --workload-profile=2 test1.container wordlist.txt\n# see:\t\ttest1.container:123456789                        \n#\t\t\tSession..........: hashcat                       \n#\t\t\tStatus...........: Cracked\n\n# These are VeraCrypt 1.24 default settings when you create a container:\n# test2.container:  hash SHA-512   encryption AES    password 123456789   no PIM no keyfile\n# use hash-type 13721\nhashcat --force --status --hash-type=13721 --attack-mode=0 --workload-profile=2 test2.container wordlist.txt\n# see:\t\ttest2.container:123456789                        \n#\t\t\tSession..........: hashcat                       \n#\t\t\tStatus...........: Cracked\n\n\n# https://gist.github.com/GabMus/4b6f7167730a4a274cdee19696783e72\n# https://pastebin.com/R8stQCCy\n# https://web.archive.org/web/20161026005447/0x31.de/cracking-truecrypt-container-non-system-system/\n```\n\n\n\n## Privacy Policy\n\nThis code doesn't collect, store or transmit your identity or personal information in any way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilldietrich%2Fveracryptcrack2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilldietrich%2Fveracryptcrack2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilldietrich%2Fveracryptcrack2/lists"}