Giter Site home page Giter Site logo

Comments (4)

ifratric avatar ifratric commented on June 27, 2024

Hi, the filename is constructed here:

string outfile = DirJoin(out_dir, string("input_") + std::to_string(tc->thread_id));

So you can change that line to something like
string outfile = DirJoin(out_dir, string("input_") + std::to_string(tc->thread_id) + string(".ext"));

from jackalope.

hdbreaker avatar hdbreaker commented on June 27, 2024

I already identify the line but the problem is that Iā€™m fuzzing multi format file extensions, so I need a way to dynamically change the extension, and not fixed to an specific extension

from jackalope.

ifratric avatar ifratric commented on June 27, 2024

In that case, you can try, before DeliverSample() call here:

if (!tc->sampleDelivery->DeliverSample(sample)) {

do the following:

  • compute the new file name with extension (based on content of the sample?)
  • call ((FileSampleDelivery*)(tc->sampleDelivery))->SetFilename(...)
  • replace the filename in the correct place in tc->target_argv

An easier option though would be to have one fuzzer instance per extension. If you want them to share corpus/coverage set, you can have all instances connect to the same coverage server.

from jackalope.

hdbreaker avatar hdbreaker commented on June 27, 2024

I was able to fix it just adding a dumb extension! thank you so much!

from jackalope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.