Created
February 1, 2018 10:46
-
-
Save valchonedelchev/c920689574e9f6dde0fc2ccf9c2c1cd8 to your computer and use it in GitHub Desktop.
Extract Orbivo key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMP_KEPLER_APK=$(mktemp) | |
echo Downloading the Kepler APK from orvibo.com into $TMP_KEPLER_APK ... | |
wget http://www.orvibo.com/software/android/kepler.apk -qO $TMP_KEPLER_APK | |
echo Download complete. Extracting and searching for the key. The key should be displayed below. | |
echo | |
ORVIBO_KEY=$(unzip -p $TMP_KEPLER_APK classes.dex | strings | grep -e '^[A-Za-n1-9]\{16\}$') | |
if [[ ! -z "$ORVIBO_KEY" ]] | |
then | |
echo $ORVIBO_KEY | |
touch $ORVIBO_KEY | |
fi | |
echo '--' | |
echo Cleaning up $TMP_KEPLER_APK ... | |
rm $TMP_KEPLER_APK | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment