{"id":13815210,"url":"https://github.com/IlanKalendarov/PyHook","last_synced_at":"2025-05-15T07:32:10.594Z","repository":{"id":47243557,"uuid":"399101455","full_name":"IlanKalendarov/PyHook","owner":"IlanKalendarov","description":"PyHook is an offensive API hooking tool written in python designed to catch various credentials within the API call.","archived":false,"fork":false,"pushed_at":"2024-08-13T09:28:51.000Z","size":1344,"stargazers_count":188,"open_issues_count":6,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-03T20:27:47.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IlanKalendarov.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":"2021-08-23T12:49:25.000Z","updated_at":"2025-04-14T09:13:05.000Z","dependencies_parsed_at":"2024-11-19T10:36:10.645Z","dependency_job_id":"6eacf838-1507-4f33-acd5-603ebb654ec6","html_url":"https://github.com/IlanKalendarov/PyHook","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/IlanKalendarov%2FPyHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IlanKalendarov%2FPyHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IlanKalendarov%2FPyHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IlanKalendarov%2FPyHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IlanKalendarov","download_url":"https://codeload.github.com/IlanKalendarov/PyHook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254295968,"owners_count":22047179,"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":[],"created_at":"2024-08-04T04:03:08.331Z","updated_at":"2025-05-15T07:32:05.632Z","avatar_url":"https://github.com/IlanKalendarov.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\n\n# PyHook\n\nPyHook is the python implementation of my [SharpHook](https://github.com/IlanKalendarov/SharpHook) project, It uses various API hooks in order to give us the desired credentials.\n\nPyHook Uses frida to inject it's dependencies into the target process\n\n# Supported Processes\n\n| Process               | API Call                          | Description                                                  | Progress |\n| --------------------- | --------------------------------- | ------------------------------------------------------------ | -------- |\n| mstsc                 | `CredUnPackAuthenticationBufferW` | Hooks `CredUnPackAuthenticationBufferW` from mstsc and outputs username and password | DONE     |\n| runas                 | `CreateProcessWithLogonW`         | Hooks `CreateProcessWithLogonW` from runas and outputs username, password and a domain name. | DONE     |\n| PowerShell            | `CreateProcessWithLogonW`         | Hooks `CreateProcessWithLogonW` from PowerShell and outputs username, password and a domain name (e.g - `Start-Process cmd -Credential X`). | DONE     |\n| cmd                   | `RtlInitUnicodeStringEx`          | Hooks `RtlInitUnicodeStringEx` from cmd and outputs data from specific filters (e.g - \"-p\", \"password\" etc). | DONE     |\n| MobaXterm             | `CharUpperBuffA`                  | Hooks `CharUpperBuffA` from MobaXterm and outputs credentials for RDP and SSH logins. | DONE     |\n| explorer (UAC Prompt) | `CredUnPackAuthenticationBufferW` | Hooks `CredUnPackAuthenticationBufferW` from explorer and outputs username, password and a domain name. | DONE     |\n\n# Demo\n\n![](https://github.com/IlanKalendarov/PyHook/blob/main/Demo/Demo.gif)\n\nLink to my blog post covering this topic: https://ilankalendarov.github.io/posts/offensive-hooking\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIlanKalendarov%2FPyHook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIlanKalendarov%2FPyHook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIlanKalendarov%2FPyHook/lists"}