Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while [ "$count" -lt "$limit" ]
- do
- for p in $(cat $file2)
- do
- secret=`echo $p | sha256sum | awk '{print $1}'`
- count=$((count+1))
- for h in $(cat $file)
- do
- hash=`echo $h | awk '{print $1}' | sed 's/.*://'`
- username=`echo $h | awk '{print $1}' | sed 's/ *:.*//'`
- if [ "$secret" == "$hash" ]
- then
- echo "Username is $username"
- echo "Password is $p"
- echo "Hash is $hash"
- echo "---------------------"
- countsolved=$((countsolved+1))
- fi
- done
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement