Skip to content

Commit

Permalink
🎉 Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermecaldas committed Sep 14, 2018
1 parent a8d6ba7 commit 4b843ff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions luksbrute.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
#
#install dependencies:
#sudo apt install cryptsetup
#
#usage:
#sudo ./luksbrute.sh /path/to/dictionary.txt /dev/sdx
#
#
echo "Using dictionary file $1";
echo "Starting bruteforce for device $2";

cat $1 | while read i; do
echo "Testing password: $i";
echo $i | cryptsetup luksOpen $2 --test-passphrase -T1 2> /dev/null
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo ">>>>>>>>>Password found: $i"
break
fi
done
echo "Script finished";

0 comments on commit 4b843ff

Please sign in to comment.