Skip to content

Instantly share code, notes, and snippets.

@droidfivex
Created December 17, 2016 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save droidfivex/b153210c2ea0f6c44d0553babf601b35 to your computer and use it in GitHub Desktop.
Save droidfivex/b153210c2ea0f6c44d0553babf601b35 to your computer and use it in GitHub Desktop.
work with rootkitxperia-20140719 on Linux
#!/bin/bash
echo "--- Xperia rootkit 2014/07/19 ---"
echo "waiting for device..."
adb wait-for-device
for file in `ls files`
do
adb push files/$file /data/local/tmp/
done
echo "getroot start."
adb shell "/data/local/tmp/getroot /data/local/tmp/install_tool.sh"
echo "waiting for device..."
adb wait-for-device
echo "removing temporary files..."
for file in `ls files`
do
adb shell "rm /data/local/temp/$file"
done
echo "--- all finished ---"
read wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment