Skip to content

Instantly share code, notes, and snippets.

@YossiCohen
Last active December 26, 2021 02:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YossiCohen/4336cc4e905ad3534f681082962377e8 to your computer and use it in GitHub Desktop.
Save YossiCohen/4336cc4e905ad3534f681082962377e8 to your computer and use it in GitHub Desktop.
VeraCrypt Brute-force cracker

VeraCrypt Brute-force cracker

This is a very simple file that will help you recover a forgotten password for your VeraCrypt encrypted file. it works on windows only (I'm sure that with a some basic Bash knowladge you can translate it to linux too)

Instructions:

  1. Put both above files in VeraCrypt folder
  2. Fill up the word.list with optional passwords (you can generate it if there are too many)
  3. Edit VcCrack.cmd: a. Make sure that Drive Q: isn't mounted already (or change the Q in lines 4,6,7 to a different drive) b. replace the {{full path to the encrypted file}} with the relevant full path
  4. run this command (in elevated command prompt): VcCrack.cmd >brute.log
  5. Go to do some stuff - the results will be in the log file when we finish trying all the options (about 5 seconds for an option - depends on the machine)

Example for output brute.log:

---[new check]---
TRY=123456789
Wrong password...
---[new check]---
TRY=foobar123456
PasswordWorks!!! 
---[new check]---
TRY=abcdabcd
PasswordWorks!!! 
---[new check]---
TRY=password6
Wrong password...
---[Done]---
@echo off
for /f "tokens=*" %%a in (word.list) do (
echo ---[new check]---
veracrypt /v {{full path to the encrypted file}} /l Q /a /p %%a /e /b /q /s
echo Tring password:%%a
if exist Q:\ ( echo PasswordWorks!!! ) else ( echo Wrong password...)
veracrypt /d Q /s /q
)
echo ---[Done]---
password
123456789
add
your
words
here
one
by
line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment