Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cat <<INFO_HEADER
- ---------------------------------------------------------------
- Easy rooting toolkit (v3.0)
- created by DooMLoRD
- using exploit zergRush (Revolutionary Team)
- Credits go to all those involved in making this possible!
- ---------------------------------------------------------------
- [*] This script will:
- (1) root ur device using latest zergRush exploit (16 Nov)
- (2) install Busybox (1.18.4)
- (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
- [*] Before u begin:
- (1) make sure u have installed adb drivers for ur device
- (2) enable "USB DEBUGGING"
- from (Menu\Settings\Applications\Development)
- (3) enable "UNKNOWN SOURCES"
- from (Menu\Settings\Applications)
- (4) [OPTIONAL] increase screen timeout to 10 minutes
- (5) connect USB cable to PHONE and then connect to PC
- (6) skip "PC Companion Software" prompt on device
- ---------------------------------------------------------------
- CONFIRM ALL THE ABOVE THEN
- INFO_HEADER
- echo --- STARTING ----
- echo --- WAITING FOR DEVICE
- adb wait-for-device
- echo --- cleaning
- adb shell "rm /data/local/tmp/*"
- echo --- pushing zergRush
- adb push zergRush /data/local/tmp/.
- echo --- correcting permissions
- adb shell "chmod 777 /data/local/tmp/zergRush"
- echo --- executing zergRush
- adb shell "./data/local/tmp/zergRush"
- cat <<WAIT4DEVICE
- --- WAITING FOR DEVICE TO RECONNECT
- if it gets stuck over here for a long time then try:
- disconnect usb cable and reconnect it
- toggle USB DEBUGGING (first disable it then enable it)
- WAIT4DEVICE
- echo --- DEVICE FOUND
- adb wait-for-device
- echo --- pushing busybox
- adb push busybox /data/local/tmp/.
- echo --- correcting permissions
- adb shell "chmod 755 /data/local/tmp/busybox"
- echo --- remounting /system
- adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
- echo --- copying busybox to /system/xbin/
- adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
- echo --- correcting ownership
- adb shell "chown root.shell /system/xbin/busybox"
- echo --- correcting permissions
- adb shell "chmod 04755 /system/xbin/busybox"
- echo --- installing busybox
- adb shell "/system/xbin/busybox --install -s /system/xbin"
- adb shell "rm -r /data/local/tmp/busybox"
- echo --- pushing SU binary
- adb push su /system/bin/su
- echo --- correcting ownership
- adb shell "chown root.shell /system/bin/su"
- echo --- correcting permissions
- adb shell "chmod 06755 /system/bin/su"
- echo --- correcting symlinks
- adb shell "rm /system/xbin/su"
- adb shell "ln -s /system/bin/su /system/xbin/su"
- echo --- pushing Superuser app
- adb push Superuser.apk /system/app/.
- echo --- cleaning
- adb shell "rm /data/local/tmp/*"
- echo --- rebooting
- adb reboot
- echo ALL DONE!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement