awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
microsoft avatar

microsoft/Detours

0
View on GitHub↗
6,303 星标·1,152 分支·C++·MIT·3 次浏览

Detours

Detours is a library for intercepting Win32 API calls and redirecting function calls at runtime on Windows, enabling binary-level instrumentation without requiring access to the original source code. It functions as an API hooking library and binary instrumentation toolkit, allowing developers to monitor or modify the behavior of compiled Windows binaries by hooking into their function execution paths.

The project achieves this through detour-based function interception, where the first few instructions of a target function are replaced with a jump to a user-supplied detour function, while preserving the original bytes for optional trampoline calls. It supports export table redirection to overwrite import address table entries, payload-based hook management for chaining multiple detours on a single function, and process injection via DLL to load interception code into running processes. The library also includes a runtime code cache for trampolines, thread-safe atomic patching to prevent race conditions, and trampoline call preservation to allow detours to call the original function behavior.

Detours provides capabilities for dynamic code modification, process instrumentation, and runtime function redirection, enabling the alteration of execution paths in running Windows software. It supports binary-level code interception and Windows API hooking for debugging, analysis, or extending existing APIs without modifying the original binaries on disk.

Features

  • API Hooking Utilities - Provides a library for hooking into Win32 API calls to monitor or modify function behavior at runtime.
  • WebAssembly Function Callings - Routes calls from one function to a custom replacement, enabling instrumentation or extension of existing APIs.
  • Windows API Hooking Engines - Intercepts and modifies Win32 API calls at runtime to monitor or alter application behavior without changing binaries.
  • DLL Injection Techniques - Loads a user-specified DLL into a target process using CreateRemoteThread and LoadLibrary for detour installation.
  • Runtime Function Entry Patching - Alters execution paths of running Windows software by patching function entry points at runtime.
  • Dynamic Process Instrumentation - Injects code into running Windows processes to observe or modify internal function calls for debugging or analysis.
  • Windows Process Instrumentations - Injects interception code into running Windows processes to observe or alter their API usage dynamically.
  • Binary Instrumentation - Provides source-code tools for monitoring and instrumenting API calls on Windows systems.
  • Instruction Rewriting - Directly modifies machine code of running processes, requiring precise x86/x64 instruction decoding and alignment.
  • Function Redirection - Routes calls from original functions to custom replacements, enabling instrumentation or extension of existing APIs.
  • Binary-Level Interceptions - Hooks into compiled Windows binaries to intercept function execution without requiring source code access.
  • Detour-Based Interceptions - Replaces function entry instructions with jumps to detour functions, preserving original bytes for trampoline calls.
  • DLL-Based Process Attachments - Injects interception code into running Windows processes to observe or alter their API usage dynamically.
  • API Interception Hooks - Provides a library for hooking into Win32 API calls to monitor or modify their behavior at runtime.
  • Chained Hook Payloads - Manages multiple detours on a single function through a linked list of payloads for chained interception.
  • Atomic Function Patching - Uses interlocked operations to atomically replace function entry points, preventing race conditions during hook installation.
  • Trampoline Call Preservations - Generates trampoline functions that re-execute overwritten instructions and jump to the original function.
  • Trampoline Code Caches - Allocates executable memory pages near target functions to store trampoline code within 32-bit displacement limits.
  • Import Address Table Overwrites - Overwrites import address table entries to redirect calls to detour functions without modifying original DLLs.
  • Development Libraries - Library for monitoring and instrumenting Windows API calls.

Star 历史

microsoft/detours 的 Star 历史图表microsoft/detours 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Detours 的开源替代方案

相似的开源项目,按与 Detours 的功能重合度排序。
  • x64dbg/scyllahidex64dbg 的头像

    x64dbg/ScyllaHide

    4,167在 GitHub 上查看↗

    ScyllaHide is an anti-debugger bypass plugin and reverse engineering tool designed to hide a debugger from a target application. It functions as a user-mode API hooking library and DLL injection framework that prevents programs from detecting and closing themselves when being analyzed. The project enables malware analysis and the study of protected software by neutralizing security defenses. It achieves this by intercepting and modifying system library responses to deceive applications about their execution environment. The utility employs several technical methods to maintain stealth, inclu

    C++
    在 GitHub 上查看↗4,167
  • iqiyi/xhookiqiyi 的头像

    iqiyi/xHook

    4,339在 GitHub 上查看↗

    xHook is a low-level instrumenter and hooking library for Android ELF binaries. It functions as a framework for intercepting native symbols and redirecting function calls by modifying the procedure linkage table. The tool utilizes regular expressions to filter specific binary files and symbols for interception. It enables the redirection of native calls toward custom function implementations without altering the original binary files. The framework covers dynamic symbol resolution, ELF table modification, and security analysis of native libraries. It also includes stability mechanisms that u

    Candroidelfgot
    在 GitHub 上查看↗4,339
  • darthton/blackboneDarthTon 的头像

    DarthTon/Blackbone

    5,431在 GitHub 上查看↗

    Blackbone is a collection of specialized tools for memory scanning, process injection, and kernel-driver interfaces used to manipulate the Windows execution environment. It provides a framework for executing remote code, mapping portable executable images, and managing threads across different process boundaries. The project includes a kernel memory driver to access kernel memory and modify handle rights to hide allocations from user-mode detection. It also features a library for intercepting function calls in remote processes using software interrupts and hardware breakpoints. The toolkit c

    C++
    在 GitHub 上查看↗5,431
  • angr/angrangr 的头像

    angr/angr

    8,898在 GitHub 上查看↗

    Angr is a binary analysis framework and static analysis tool used for reverse engineering compiled binaries. It serves as a binary decompiler and a lifting platform that translates machine code into a common intermediate representation to enable cross-architecture analysis. The framework integrates a symbolic execution engine and constraint solvers to determine the inputs required to reach specific program states. It also employs untrusted code sandboxing to isolate guest code from the host environment during analysis. Its capabilities cover control flow and data flow analysis, including the

    Python
    在 GitHub 上查看↗8,898
查看 Detours 的所有 30 个替代方案→

常见问题解答

microsoft/detours 是做什么的?

Detours is a library for intercepting Win32 API calls and redirecting function calls at runtime on Windows, enabling binary-level instrumentation without requiring access to the original source code. It functions as an API hooking library and binary instrumentation toolkit, allowing developers to monitor or modify the behavior of compiled Windows binaries by hooking into their function execution paths.

microsoft/detours 的主要功能有哪些?

microsoft/detours 的主要功能包括:API Hooking Utilities, WebAssembly Function Callings, Windows API Hooking Engines, DLL Injection Techniques, Runtime Function Entry Patching, Dynamic Process Instrumentation, Windows Process Instrumentations, Binary Instrumentation。

microsoft/detours 有哪些开源替代品?

microsoft/detours 的开源替代品包括: x64dbg/scyllahide — ScyllaHide is an anti-debugger bypass plugin and reverse engineering tool designed to hide a debugger from a target… iqiyi/xhook — xHook is a low-level instrumenter and hooking library for Android ELF binaries. It functions as a framework for… darthton/blackbone — Blackbone is a collection of specialized tools for memory scanning, process injection, and kernel-driver interfaces… angr/angr — Angr is a binary analysis framework and static analysis tool used for reverse engineering compiled binaries. It serves… hdshare/wauxiliary_public — WAuxiliary_Public is a dynamic code instrumentation framework and application plugin framework designed to intercept… credittone/hooker — Hooker is a toolkit for the dynamic instrumentation, memory analysis, and deobfuscation of Android applications. It…