{"id":13540355,"url":"https://github.com/can1357/byepg","last_synced_at":"2025-04-04T11:13:45.103Z","repository":{"id":43580336,"uuid":"216156358","full_name":"can1357/ByePg","owner":"can1357","description":"Defeating Patchguard universally for Windows 8, Windows 8.1 and all versions of Windows 10 regardless of HVCI.","archived":false,"fork":false,"pushed_at":"2019-11-21T23:26:29.000Z","size":211,"stargazers_count":861,"open_issues_count":6,"forks_count":181,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-03-28T10:07:57.447Z","etag":null,"topics":["exploit","kernel","patchguard","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/can1357.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-19T05:52:09.000Z","updated_at":"2025-03-25T03:51:59.000Z","dependencies_parsed_at":"2022-08-12T10:41:52.131Z","dependency_job_id":null,"html_url":"https://github.com/can1357/ByePg","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/can1357%2FByePg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can1357%2FByePg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can1357%2FByePg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can1357%2FByePg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can1357","download_url":"https://codeload.github.com/can1357/ByePg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["exploit","kernel","patchguard","windows"],"created_at":"2024-08-01T09:01:47.467Z","updated_at":"2025-04-04T11:13:45.067Z","avatar_url":"https://github.com/can1357.png","language":"C++","funding_links":[],"categories":["\u003ca id=\"3ed50213c2818f1455eff4e30372c542\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"caab36bba7fa8bb931a9133e37d397f6\"\u003e\u003c/a\u003eWindows"],"readme":"# ByePg: Defeating Patchguard using Exception-hooking\n\nByePg hijacks the HalPrivateDispatchTable table to create a early-bugcheck hook. Utilizing this early-bugcheck hook it collects information about the exception and basically provides a simple interface to register a high-level system-wide exception handler.\n\nA variety of kernel hooks can be implemented using this method completely bypassing PatchGuard and HVCI as it creates an entirely new attack surface, exception-based hooking, which was previously not possible in Windows kernel.\n\n## Writeup:\nhttps://blog.can.ac/2019/10/19/byepg-defeating-patchguard-using-exception-hooking/\n\n## Project Structure:\n- `\\ByePgLib` contains the base library\n- `\\ExHook` contains a standalone SYSCALL hooking example using ByePg\n- `\\ExceptionHookingDemo` demonstrates the exception handler \n- `\\InfinityHookFix` contains a sample rendering the recent InfinityHook patch by Microsoft useless\n- `\\FreeSeh` contains a SEH-via-ByePg module letting you use SEH in manual mapped images bypassing PatchGuard's inverted function table checks\n\n\n## Result:\n\n![ExHook](/Resources/ExHook.png)\n\n## P.S.\nThere are many other things that can be done using the base library and many things can be improved, be SEH handling or BugCheck parsing, so I would **really** appreciate any form of contribution to this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan1357%2Fbyepg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan1357%2Fbyepg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan1357%2Fbyepg/lists"}