Skip to content

Instantly share code, notes, and snippets.

@melpomene
Created July 30, 2012 13:11
Show Gist options
  • Save melpomene/3206773 to your computer and use it in GitHub Desktop.
Save melpomene/3206773 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