GithubHelp home page GithubHelp logo

Comments (6)

andreafioraldi avatar andreafioraldi commented on July 18, 2024 1

i think this a bad idea, radamsa is slow. If you really want it, you should use libradamsa from aflpp and not execute the randamsa binary every time

from frida-fuzzer.

andreafioraldi avatar andreafioraldi commented on July 18, 2024 1

You must use the Frida API, Cmodule or load the libradamsa as a shared library and invoke its routines from JS using a NativeFunction.

from frida-fuzzer.

andreafioraldi avatar andreafioraldi commented on July 18, 2024 1

Yes you can try to add other mutators. Personally I don't like radamsa as it is too slow and generates the same inputs many times, but if you add other stuffs like protobuf etc I will accept a PR.

from frida-fuzzer.

marcinguy avatar marcinguy commented on July 18, 2024

Maybe you know JS <-> C world better.

Compiled your libradamsa to JS using emscripten

em++       -O3       -Oz       --llvm-lto 1       -s NO_EXIT_RUNTIME=1       -s EXPORTED_FUNCTIONS="['_radamsa']"       libradamsa.bc       -o radamsa.html

Do you happen to know how to call it now from JS?

        var Module = {
          onRuntimeInitialized: function() {
            radamsa = Module.cwrap('radamsa', 'number', ['string', 'number', 'string', 'number', 'number'])
                  ?????
          },
        };

Or you would do it differently, not using emscripten?

from frida-fuzzer.

marcinguy avatar marcinguy commented on July 18, 2024

Would save me hours of finding it out to see a sample.

I saw how you use CModule (couldn't find any references about it while googling)

So I can put radamsa C code in CModule and than use NativeFunction to call it?

Biggest question I have, is how to pass input and output buffer via NativeFunction to radamsa()

Here is function signature:

 n = radamsa((uint8_t *) input, len, (uint8_t *) output, BUFSIZE, seed);

Any tips, points to code samples would be great.

Thank you in advance

from frida-fuzzer.

marcinguy avatar marcinguy commented on July 18, 2024

Managed to add it. Did it like you described.

Performance was affected. Radamsa is 10x slower than havoc and splice in my run.

For Multimedia Format fuzzing i.e HEVC, would you add other mutators than havoc and splice? Or do anything else? Or generally to extend this fuzzer. I can add them in similar approach.

P.S I know this is your PoC fuzzer

from frida-fuzzer.

Related Issues (17)

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.