{"id":22890063,"url":"https://github.com/adamhlt/easy-mid-hook","last_synced_at":"2026-02-28T10:06:14.108Z","repository":{"id":61166406,"uuid":"488298633","full_name":"adamhlt/Easy-Mid-Hook","owner":"adamhlt","description":"Mid Hook Template (x64) - Easy way to mid function hooking in x64","archived":false,"fork":false,"pushed_at":"2023-08-01T20:50:15.000Z","size":1636,"stargazers_count":35,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-10T23:11:48.864Z","etag":null,"topics":["assembly","code-cave","dll","hook","mid-function","ms-detours","winapi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamhlt.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,"zenodo":null}},"created_at":"2022-05-03T17:16:01.000Z","updated_at":"2025-09-29T12:33:52.000Z","dependencies_parsed_at":"2025-05-07T14:46:31.434Z","dependency_job_id":"0939308d-ceae-48bc-bbf5-c9ff5cae5a5b","html_url":"https://github.com/adamhlt/Easy-Mid-Hook","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adamhlt/Easy-Mid-Hook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhlt%2FEasy-Mid-Hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhlt%2FEasy-Mid-Hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhlt%2FEasy-Mid-Hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhlt%2FEasy-Mid-Hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamhlt","download_url":"https://codeload.github.com/adamhlt/Easy-Mid-Hook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhlt%2FEasy-Mid-Hook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["assembly","code-cave","dll","hook","mid-function","ms-detours","winapi"],"created_at":"2024-12-13T21:58:13.167Z","updated_at":"2026-02-28T10:06:14.085Z","avatar_url":"https://github.com/adamhlt.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n                    ______                    __  ____     __   __  __            __  \n                   / ____/___ ________  __   /  |/  (_)___/ /  / / / /___  ____  / /__ \n                  / __/ / __ `/ ___/ / / /  / /|_/ / / __  /  / /_/ / __ \\/ __ \\/ //_/\n                 / /___/ /_/ (__  ) /_/ /  / /  / / / /_/ /  / __  / /_/ / /_/ / ,\u003c \n                /_____/\\__,_/____/\\__, /  /_/  /_/_/\\__,_/  /_/ /_/\\____/\\____/_/|_|\n                                 /____/                                        \n                                                                              \n                                                                            \n                                       Mid Hook Template (x64)\n                               Easy way to mid function hooking in x64\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/language-C%2B%2B-%23f34b7d.svg?style=for-the-badge\u0026logo=appveyor\" alt=\"C++\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/platform-Windows-0078d7.svg?style=for-the-badge\u0026logo=appveyor\" alt=\"Windows\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/arch-x64-green.svg?style=for-the-badge\u0026logo=appveyor\" alt=\"x64\"\u003e\n\u003c/p\u003e\n\n## :open_book: Project Overview :\n\nThis template teach you and help you how to easily create x64 mid hook in C++ using [MS Detours](https://github.com/microsoft/Detours) and seperate ASM file, since inline ASM is not available in x64.\n\nThe code cave permit to execute new instructions in the middle of a function, the hook will redirect the flow into our new code then jump back to the original function, this is very useful for game hacking.\n\nThis project also show you how to exchange datas between you C++ code and your ASM code.\n\n#### Used librairies :\n\n- [MS Detours](https://github.com/microsoft/Detours)\n\nThe project include a test executable to see how it works.\n\n## :rocket: Getting Started :\n\n[MS Detours](https://github.com/microsoft/Detours) is already setup and include in the project.\n\n\u003e **Note** \u003cbr\u003e\n\u003e This is a **x64 executable / DLL**, you can't compile this project in x86, we are using x64 assembly.\n\n### Visual Studio :\n\n1. Open the solution file (.sln).\n2. Build the project in Debug (x64)\n\n\u003e **Warning** \u003cbr\u003e\n\u003e If the hook does not work, you should check if the address is good if you recompiled, else you can test with test files in the Release section.\n\n## 🧪 Demonstration :\n\nhttps://user-images.githubusercontent.com/48086737/166695158-98c3f033-93c0-481e-9ad1-a3252b05ec29.mp4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhlt%2Feasy-mid-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamhlt%2Feasy-mid-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhlt%2Feasy-mid-hook/lists"}