Comments (6)
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.
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.
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.
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.
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.
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)
- arm64 fuzzer crash HOT 1
- TypeError: q.buf.isNull is not a function
- how to run fuzzer HOT 1
- fuzzer Crash after getting a crash
- Testing frida-fuzzer on Windows
- I don't know how to find the "target_func"
- access-violation when calling native function (arm, android)
- Knwon Bug: Deadlock when the fuzzer reaches an abort() HOT 1
- process not found error
- Question on Java Instrumentation
- ReferenceError: require is not defined HOT 2
- ReferenceError: require is not defined HOT 2
- Favoreds decrease performance but increase effectiveness. Tune this. HOT 1
- Call for testers: arm64 Android and iOS HOT 12
- timeout support HOT 6
- Fork server not enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frida-fuzzer.