{"id":13775777,"url":"https://github.com/leoloobeek/comproxy","last_synced_at":"2025-10-08T04:31:08.999Z","repository":{"id":41136139,"uuid":"205206741","full_name":"leoloobeek/COMProxy","owner":"leoloobeek","description":"PoC for proxying COM objects when hijacking","archived":false,"fork":false,"pushed_at":"2019-09-10T03:43:07.000Z","size":17,"stargazers_count":198,"open_issues_count":0,"forks_count":30,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-17T10:40:18.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoloobeek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T16:34:42.000Z","updated_at":"2024-10-14T20:11:19.000Z","dependencies_parsed_at":"2022-08-10T01:36:17.037Z","dependency_job_id":null,"html_url":"https://github.com/leoloobeek/COMProxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloobeek%2FCOMProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloobeek%2FCOMProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloobeek%2FCOMProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoloobeek%2FCOMProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoloobeek","download_url":"https://codeload.github.com/leoloobeek/COMProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235679171,"owners_count":19028323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:49.480Z","updated_at":"2025-10-08T04:31:08.680Z","avatar_url":"https://github.com/leoloobeek.png","language":"C++","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"0ff94312f3ab4898f5996725133ea9d1\"\u003e\u003c/a\u003e未分类"],"readme":"# COMProxy\n\nA COM client and server for testing COM hijack proxying. If you are running a COM hijack, proxying the legitimate COM server may result in better stability, thats the idea around this PoC. \n\nThis also provides an example in-process COM server DLL that can be taken and modified for your tooling. This implementation will read whatever COM CLSID is being hijacked, attempt to find the legitimate path in `HKLM\\Software\\Classes\\CLSID`, and proxy the COM interface so the COM client receives the expected pointers.\n\n### How to setup the test case?\n\nBuild both projects. The TestCOMClient will create a `WScript.Shell` object and run calc. The TestCOMServer is a COM server DLL that will start a thread printing to the screen every second.\n\nRun this in a .reg file for the hijack:\n\n```\nWindows Registry Editor Version 5.00\n\n[HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\{72C24DD5-D70A-438B-8A42-98424B88AFB8}]\n@=\"Test Hijack\"\n\n[HKEY_CURRENT_USER\\Software\\Classes\\CLSID\\{72C24DD5-D70A-438B-8A42-98424B88AFB8}\\InprocServer32]\n@=\"C:\\\\Users\\\\user\\\\Desktop\\\\TestCOMServer.dll\"\n\"ThreadingModel\"=\"Apartment\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoloobeek%2Fcomproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoloobeek%2Fcomproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoloobeek%2Fcomproxy/lists"}