{"id":17263382,"url":"https://github.com/0vercl0k/kepaboo","last_synced_at":"2025-04-14T07:33:40.478Z","repository":{"id":145325521,"uuid":"600506482","full_name":"0vercl0k/KEPaboo","owner":"0vercl0k","description":"Neutralize KEPServerEX anti-debugging techniques","archived":false,"fork":false,"pushed_at":"2023-02-15T05:13:49.000Z","size":1871,"stargazers_count":31,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T21:11:07.700Z","etag":null,"topics":["antidebugging","eat","exportaddresstable","hooks","int2d","kepserverex","ntqueryinformationprocess","ntsetinformationthread"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0vercl0k.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T17:50:23.000Z","updated_at":"2024-09-25T04:12:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4d16d31-bab2-4ddc-bffc-be82c9b4bc28","html_url":"https://github.com/0vercl0k/KEPaboo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2FKEPaboo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2FKEPaboo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2FKEPaboo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0vercl0k%2FKEPaboo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0vercl0k","download_url":"https://codeload.github.com/0vercl0k/KEPaboo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839577,"owners_count":21169831,"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":["antidebugging","eat","exportaddresstable","hooks","int2d","kepserverex","ntqueryinformationprocess","ntsetinformationthread"],"created_at":"2024-10-15T07:56:23.087Z","updated_at":"2025-04-14T07:33:40.407Z","avatar_url":"https://github.com/0vercl0k.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KEPaboo - Neutralize KEPServerEX anti-debugging techniques\n![Builds](https://github.com/0vercl0k/KEPaboo/workflows/Builds/badge.svg)\n\n\u003cp align='center'\u003e\n\u003cimg src='pics/kepaboo.gif'\u003e\n\u003c/p\u003e\n\n## Overview\n\n`KEPaboo` is a utility that neuters anti-debugging techniques used by [KEPServerEX](https://www.ptc.com/en/products/kepware/kepserverex) to prevent people from debugging their code. It is not a security issue, and it has been tested against on the version `6.12.361.0` (February 2023) on Windows 10 64-bit.\n\n## Usage\nDownload `KEPaboo` binaries from the Releases section and run it as an **Administrator** to register it as `KEPServerEX`'s `Debugger` via [Image File Execution Options](https://www.malwarebytes.com/blog/news/2015/12/an-introduction-to-image-file-execution-options). By doing so, KEPaboo can start automatically when KEPServerEx is launched.\n\nWhen you start the KEPServerEx service, KEPaboo acts as a small proxy layer that performs the following tasks:\n\n- Starts the `server_runtime.exe` process and debugs it\n- Hooks into [NtSetInformationThread](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntsetinformationthread) and [NtQueryInformationProcess](https://learn.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess) by modifying `ntdll`'s [Export Address Table](https://learn.microsoft.com/en-us/archive/msdn-magazine/2002/march/inside-windows-an-in-depth-look-into-the-win32-portable-executable-file-format-part-2)\n- Listens for a debug event generated by an `INT 2D` instruction, and patches the code to restore the expected execution flow\n- Detaches itself from the server process, allowing you to attach your favorite debugger\n- Waits until the server process ends\n\nTo unregister `KEPaboo` without rebooting, run it as an **Administrator** again, and it will detect that it was previously registered and remove itself.\n\n**Note that the registry modification is volatile, which means that it will disappear after a reboot. If you want to use `KEPaboo` again, you will need to re-run it.**\n\n## Build and debug\n\nClone the repository with:\n\n```\n(base) \u003e git clone https://github.com/0vercl0k/KEPaboo.git\n```\n\nYou can open the Visual Studio solution `KEPaboo.sln` or build it via the command line with:\n\n```\n(base) KEPaboo\u003emsbuild /p:Configuration=Release src\\KEPaboo.sln\nMicrosoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework\nCopyright (C) Microsoft Corporation. All rights reserved.\n\n[...]\n\nBuild succeeded.\n    0 Warning(s)\n    0 Error(s)\n\nTime Elapsed 00:00:00.42\n```\n\nUse the `debug` configuration, attach a debugger to `KEPaboo.exe`. You should see debug outputs in the console window of the debugger.\n\n## Authors\n* Axel '[0vercl0k](https://twitter.com/0vercl0k)' Souchet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0vercl0k%2Fkepaboo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0vercl0k%2Fkepaboo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0vercl0k%2Fkepaboo/lists"}