fuzzware-fuzzer / hoedur

GNU Affero General Public License v3.0
56 stars 10 forks source link

Multiple Prefix Input File Support and pc address return after EndOfInput Support #11

Open Matheus-Garbelini opened 2 weeks ago

Matheus-Garbelini commented 2 weeks ago

Dear @SWW13 After digging into the Hoedur framework I found two features interesting.

  1. the prefix-input support fuzzing This feature is really useful, I was wondering, instead of one input file is it possible to input two or multiple prefix-input files?
  2. the input file testing through input.bin As for this feature, sometimes due to infinite loop of certain function some values of the input file will not be executed (as shown in the picture bellow). I was wondering is it possible to reterive the pc address when it reach the end of the input file execution? That will be really helpful for debugging and patching firmwire. looking forward your early reply. Best regards Zewen Screenshot from 2024-10-09 17-02-09
SWW13 commented 2 weeks ago
  1. You can have multiple prefix inputs, just add multiple --prefix-input input1.bin --prefix-input input2.bin.
  2. If you build Hoedur from source you can run a debug build (no --release) or change the max log level for release builds in https://github.com/fuzzware-fuzzer/hoedur/blob/main/common/Cargo.toml#L13. Then use a log config with debug log enabled, e.g. with the following log config: --log-config common/log/debug.yml. The log should contain the last MMIO read with no input available.