Advertisement
t0mm13b

zergrush

Dec 16th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.76 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cat <<INFO_HEADER
  4. ---------------------------------------------------------------
  5.               Easy rooting toolkit (v3.0)
  6.                    created by DooMLoRD
  7.         using exploit zergRush (Revolutionary Team)
  8.    Credits go to all those involved in making this possible!
  9. ---------------------------------------------------------------
  10.  [*] This script will:
  11.      (1) root ur device using latest zergRush exploit (16 Nov)
  12.      (2) install Busybox (1.18.4)
  13.      (3) install SU files (binary: 3.0.3 and apk: 3.0.6)
  14.  [*] Before u begin:  
  15.      (1) make sure u have installed adb drivers for ur device
  16.      (2) enable "USB DEBUGGING"
  17.            from (Menu\Settings\Applications\Development)
  18.      (3) enable "UNKNOWN SOURCES"
  19.            from (Menu\Settings\Applications)
  20.      (4) [OPTIONAL] increase screen timeout to 10 minutes
  21.      (5) connect USB cable to PHONE and then connect to PC
  22.      (6) skip "PC Companion Software" prompt on device
  23. ---------------------------------------------------------------
  24.  CONFIRM ALL THE ABOVE THEN
  25.  
  26. INFO_HEADER
  27. echo --- STARTING ----
  28. echo --- WAITING FOR DEVICE
  29. adb wait-for-device
  30. echo --- cleaning
  31. adb shell "rm /data/local/tmp/*"
  32. echo --- pushing zergRush
  33. adb push zergRush /data/local/tmp/.
  34. echo --- correcting permissions
  35. adb shell "chmod 777 /data/local/tmp/zergRush"
  36. echo --- executing zergRush
  37. adb shell "./data/local/tmp/zergRush"
  38. cat <<WAIT4DEVICE
  39. --- WAITING FOR DEVICE TO RECONNECT
  40. if it gets stuck over here for a long time then try:
  41.   disconnect usb cable and reconnect it
  42.   toggle USB DEBUGGING (first disable it then enable it)
  43. WAIT4DEVICE
  44.  
  45. echo --- DEVICE FOUND
  46. adb wait-for-device
  47. echo --- pushing busybox
  48. adb push busybox /data/local/tmp/.
  49. echo --- correcting permissions
  50. adb shell "chmod 755 /data/local/tmp/busybox"
  51. echo --- remounting /system
  52. adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
  53. echo --- copying busybox to /system/xbin/
  54. adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox"
  55. echo --- correcting ownership
  56. adb shell "chown root.shell /system/xbin/busybox"
  57. echo --- correcting permissions
  58. adb shell "chmod 04755 /system/xbin/busybox"
  59. echo --- installing busybox
  60. adb shell "/system/xbin/busybox --install -s /system/xbin"
  61. adb shell "rm -r /data/local/tmp/busybox"
  62. echo --- pushing SU binary
  63. adb push su /system/bin/su
  64. echo --- correcting ownership
  65. adb shell "chown root.shell /system/bin/su"
  66. echo --- correcting permissions
  67. adb shell "chmod 06755 /system/bin/su"
  68. echo --- correcting symlinks
  69. adb shell "rm /system/xbin/su"
  70. adb shell "ln -s /system/bin/su /system/xbin/su"
  71. echo --- pushing Superuser app
  72. adb push Superuser.apk /system/app/.
  73. echo --- cleaning
  74. adb shell "rm /data/local/tmp/*"
  75. echo --- rebooting
  76. adb reboot
  77. echo ALL DONE!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement