Skip to content

Instantly share code, notes, and snippets.

@timvisee
Created June 16, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timvisee/c4f3d7a3d8630b81f969a7dcfc60e71d to your computer and use it in GitHub Desktop.
Save timvisee/c4f3d7a3d8630b81f969a7dcfc60e71d to your computer and use it in GitHub Desktop.
https://github.com/timvisee/apbf for 4 or 5 digit PIN ending with 7
#!/bin/bash
# Loop through all 4 and 5 digit combinations
for pin in $(seq -f "%04g" 0 99999)
do
# Skip all pins not ending with 7
[[ $pin == *7 ]] || continue
# Test code
echo "Testing: $pin"
adb shell 'twrp decrypt $pin'
sleep 11s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment