Skip to content

CodeIntelligenceTesting/jazzer-custom-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jazzer-custom-hooks

This repository shows how one could build custom hooks in a dedicated library and use them during a fuzzing run. The example is very contrived but shows how fuzzing blocks could be overcome by using custom hooks.

Project structure

  • lib Library containing a custom hook.
  • app Example application using methods intercepted by the custom hooks. Also includes a fuzz target to that just executes the main method of the application.

How-to

  1. Install Jazzer as described in its readme
  2. Build the whole project with Gradle
./gradlew build
  1. Test the example application
java -jar app/build/libs/app.jar
  1. Fuzz the application with Jazzer
jazzer --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
  1. Alternatively autofuzz the application
 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

About

Example repository on how to use Jazzer custom hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages