{"id":21880533,"url":"https://github.com/brucewind/jarhook","last_synced_at":"2026-05-15T20:33:31.259Z","repository":{"id":92555997,"uuid":"91567793","full_name":"BruceWind/JarHook","owner":"BruceWind","description":"An example about hooking a method in jar.","archived":false,"fork":false,"pushed_at":"2022-09-27T10:01:06.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T00:44:22.673Z","etag":null,"topics":["bytecode","hack","hook"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BruceWind.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":"2017-05-17T11:14:45.000Z","updated_at":"2023-06-05T08:56:42.000Z","dependencies_parsed_at":"2023-03-03T13:00:11.817Z","dependency_job_id":null,"html_url":"https://github.com/BruceWind/JarHook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BruceWind/JarHook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceWind%2FJarHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceWind%2FJarHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceWind%2FJarHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceWind%2FJarHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BruceWind","download_url":"https://codeload.github.com/BruceWind/JarHook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BruceWind%2FJarHook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["bytecode","hack","hook"],"created_at":"2024-11-28T09:14:20.038Z","updated_at":"2026-05-15T20:33:31.243Z","avatar_url":"https://github.com/BruceWind.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JarHook\nAn example about hooking a Jar.\n\n[中文](https://github.com/BruceWind/JarHook/blob/master/README_zh.md)\n\n### my goal\nIn this project, I put `MainActivity.hookXM(String name);` into `sayHello`.\n\nthe source code of this jar in hello sub-module ：\n``` java\npackage com.androidyuan;\n\npublic class Hello {\n    public Hello() {\n    }\n\n    public static void sayHello(String name) {  //this method would be hooked.\n    }\n}\n```\n\n### important code in build.gradle\n```\n    ['methodName': 'sayHello', 'methodDesc': '(Ljava/lang/String;)V'\n```\nThis code above has the structure is Byte-code. If you have seen some byte-code example, you may be familiar with it.\n\n\n### Priciple\n\nIt modify Byte-code by hibeaber, which work with gradle and building process. And it depend on ASM.\n\n\n\n## Thanks\n\n[hibeaver](https://github.com/BryanSharp/hibeaver)\n\n[ASM](https://github.com/marchof/asm)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucewind%2Fjarhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrucewind%2Fjarhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrucewind%2Fjarhook/lists"}