Code Monkey home page Code Monkey logo

Comments (4)

Jossec101 avatar Jossec101 commented on May 24, 2024

I'm having a similar issue (I'm using afl-fuzz 2.52b, the google one), but it stopped working from me when I moved from WSL1 to WSL2 (Ubuntu 20.04).

I did ulimit -Sv $[999 << 10]; dotnet bin/fuzzed_app.dll and this appears:

Failed to create CoreCLR, HRESULT: 0x8007000E

From dotnet/runtime#13027 It looks that It may be a problem with the ram, but if I write ulimit -v I get unlimited

I will keep investigating but this may help you @nvivekk

Any idea @Metalnem ?

Thanks!

from sharpfuzz.

Metalnem avatar Metalnem commented on May 24, 2024

@nvivekk, did you instrument Jil.dll by running sharpfuzz Jil.dll command on it? Also, can you share your main program (even better would be if you could attach the whole project)?

@Jossec101, I have no idea what could be causing your issue. If it was working on WSL1, and now it's not on WSL2, I doubt the issue is in SharpFuzz.

from sharpfuzz.

nvivekk avatar nvivekk commented on May 24, 2024

And issue got resolved I was instrumenting Jil.dll and replacing it on test folder. But i ran build without instrumented DLL earlier. Now its working fine.

@Jossec101 I am trying it on linux distro. So WSL2 may not be an issue here.

Thanks for the reponse. @Metalnem

from sharpfuzz.

CityOfLight77 avatar CityOfLight77 commented on May 24, 2024

I'm using dotnet 6.0 on ubuntu 20.04 with 2GB RAM and got Fork server handshake failed

Here is my step to run afl-fuzz @Metalnem

git clone https://github.com/Metalnem/sharpfuzz-samples.git
cd sharpfuzz-samples/Newtonsoft.Json/Newtonsoft.Json.Fuzz
wget https://www.nuget.org/api/v2/package/Newtonsoft.Json/13.0.2-beta1
mv 13.0.2-beta1 13.0.2-beta1.zip; unzip 13.0.2-beta1.zip -d Newtonsoft13beta
# cp 13.0.2-beta1/lib/net6.0/* .
sharpfuzz Newtonsoft13beta/lib/netstandard2.0/Newtonsoft.Json.dll
dotnet add package SharpFuzz
# prepare corpus
mkdir input; mkdir tmpinput; mkdir output
echo '{"a": "b"}' > input/a.json
wget https://raw.githubusercontent.com/AFLplusplus/AFLplusplus/stable/dictionaries/json.dict
dotnet build
afl-fuzz -i input/ -o output -m none -t 5000 -x json.dict dotnet bin/Debug/netcoreapp2.2/Newtonsoft.Json.Fuzz.dll

from sharpfuzz.

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.