Giter VIP home page Giter VIP logo

Comments (9)

ivanfratric avatar ivanfratric commented on July 24, 2024

It is not supposed to close automatically, that's not how WinAFL works. You need to select a target_offset of a function that will return when processing of your input file is done. See another discussion on this in https://github.com/ivanfratric/winafl/issues/6

from winafl.

romi007r avatar romi007r commented on July 24, 2024

after the manual intervention i am able to get the iterations but again running AFL results in hangs

1 processes nudged
[!] WARNING: Test case results in a hang (skipping)
[*] Attempting dry run with 'id_000002'...

this is the command line i am using

afl-fuzz.exe -i in -o new -D c:\winafl-master\dyno\bin64 -t 1000+ -- -coverage_module notepad.exe -target_offset 0x3a14 -target_module notepad.exe -fuzz_iterations 5000 -nargs 4 -- C:\Windows\system32\notepad.exe

from winafl.

ivanfratric avatar ivanfratric commented on July 24, 2024

Please read the other thread I linked. I assume you are trying to fuzz the WinMain function of notepad.exe. That function won't return without user interaction and WinAFL won't handle that user interaction for you.

from winafl.

romi007r avatar romi007r commented on July 24, 2024

@ivanfratric thanks for the help now i have a fair understanding of the issue

from winafl.

romi007r avatar romi007r commented on July 24, 2024

thanks @ivanfratric i was able to fuzz programs like internet explorer 64 bit but do you have any recommendation for finding the target function for any generic program

from winafl.

ifratric avatar ifratric commented on July 24, 2024

That's a difficult question and I don't think there really is a generic way, it will usually take some reversing of the target to figure out what a good target function might be. Some approaches that might work:

  • If you know where some of the functionality (e.g. file parsing) that you want to fuzz is implemented, you can set a breakpoint somewhere into that and when you hit that breakpoint list a call stack. Your target function should be something on that call stack.
  • Another approach might be to set a breakpoint on file opening functions (e.g. CreateFileA/CreateFileW), look where your input file is opened and do the callstack from there.

from winafl.

romi007r avatar romi007r commented on July 24, 2024

hi @ifratric @ivanfratric i was successfully able to fuzz many programs any suggestions on how to create valid testcases from the raw fuzzer output in windows some sort of crash analyzer

from winafl.

ivanfratric avatar ivanfratric commented on July 24, 2024

I'm not sure if that's what you mean but all samples with new coverage as well as all samples that caused a crash are stored in the WinAFL output directory (same as AFL).

from winafl.

romi007r avatar romi007r commented on July 24, 2024

to be precise how can we produce straightforward reproduction cases from the sample in crash folder , such as an HTML for a browser or as specific file format

from winafl.

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.