GithubHelp home page GithubHelp logo

0vercl0k / kepaboo Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 5.0 1.83 MB

Neutralize KEPServerEX anti-debugging techniques

License: MIT License

C++ 88.49% CMake 1.55% HTML 0.30% Less 7.35% Python 2.17% C 0.01% Makefile 0.01% Starlark 0.03% Cuda 0.03% Shell 0.08%
antidebugging eat hooks kepserverex ntqueryinformationprocess exportaddresstable int2d ntsetinformationthread

kepaboo's Introduction

KEPaboo - Neutralize KEPServerEX anti-debugging techniques

Builds

Overview

KEPaboo is a utility that neuters anti-debugging techniques used by 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.

Usage

Download KEPaboo binaries from the Releases section and run it as an Administrator to register it as KEPServerEX's Debugger via Image File Execution Options. By doing so, KEPaboo can start automatically when KEPServerEx is launched.

When you start the KEPServerEx service, KEPaboo acts as a small proxy layer that performs the following tasks:

  • Starts the server_runtime.exe process and debugs it
  • Hooks into NtSetInformationThread and NtQueryInformationProcess by modifying ntdll's Export Address Table
  • Listens for a debug event generated by an INT 2D instruction, and patches the code to restore the expected execution flow
  • Detaches itself from the server process, allowing you to attach your favorite debugger
  • Waits until the server process ends

To unregister KEPaboo without rebooting, run it as an Administrator again, and it will detect that it was previously registered and remove itself.

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.

Build and debug

Clone the repository with:

(base) > git clone https://github.com/0vercl0k/KEPaboo.git

You can open the Visual Studio solution KEPaboo.sln or build it via the command line with:

(base) KEPaboo>msbuild /p:Configuration=Release src\KEPaboo.sln
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

[...]

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.42

Use the debug configuration, attach a debugger to KEPaboo.exe. You should see debug outputs in the console window of the debugger.

Authors

kepaboo's People

Contributors

0vercl0k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.