{"id":21602782,"url":"https://github.com/codeintelligencetesting/jazzer-custom-hooks","last_synced_at":"2025-03-18T13:35:58.099Z","repository":{"id":103042226,"uuid":"500717532","full_name":"CodeIntelligenceTesting/jazzer-custom-hooks","owner":"CodeIntelligenceTesting","description":"Example repository on how to use Jazzer custom hooks","archived":false,"fork":false,"pushed_at":"2022-06-07T06:40:11.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-24T18:35:32.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/CodeIntelligenceTesting.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-07T06:31:30.000Z","updated_at":"2022-06-07T06:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"a695a87a-1d55-4ac2-8fb8-d6ce7079245d","html_url":"https://github.com/CodeIntelligenceTesting/jazzer-custom-hooks","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/CodeIntelligenceTesting%2Fjazzer-custom-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-custom-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-custom-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-custom-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeIntelligenceTesting","download_url":"https://codeload.github.com/CodeIntelligenceTesting/jazzer-custom-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244232309,"owners_count":20420079,"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-11-24T19:14:18.892Z","updated_at":"2025-03-18T13:35:58.075Z","avatar_url":"https://github.com/CodeIntelligenceTesting.png","language":"Java","readme":"# jazzer-custom-hooks\n\nThis repository shows how one could build custom hooks in a dedicated library and use them during a fuzzing run.\nThe example is very contrived but shows how fuzzing blocks could be overcome by using custom hooks.\n\n# Project structure\n\n- **lib** Library containing a custom hook.\n- **app** Example application using methods intercepted by the custom hooks. Also includes a fuzz target to that \njust executes the `main` method of the application. \n\n# How-to\n\n1. Install Jazzer as [described in its readme](https://github.com/CodeIntelligenceTesting/jazzer#using-the-provided-binaries)\n2. Build the whole project with Gradle\n```shell\n./gradlew build\n```\n3. Test the example application\n```shell\njava -jar app/build/libs/app.jar\n```\n4. Fuzz the application with Jazzer\n```shell\njazzer --cp=app/build/libs/app.jar:lib/build/libs/lib.jar --custom_hooks=com.code_intelligence.hooks.ClockHooks --target_class=com.code_intelligence.example.ExampleFuzzTarget\n```\n5. Alternatively autofuzz the application\n```shell\n jazzer --cp=app/build/libs/app.jar:lib/build/libs/lib.jar --custom_hooks=com.code_intelligence.hooks.ClockHooks --autofuzz=com.code_intelligence.example.ExampleApplication::main\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-custom-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-custom-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-custom-hooks/lists"}