Giter VIP home page Giter VIP logo

Comments (8)

ifratric avatar ifratric commented on July 24, 2024

The timeout error isn't necessarily a timeout, it can also be received due to incorrect parameters, such as is likely the case here. For example

  • you use both -Y flag for static instrumentation and -D for Dynamorio instrumentation. You should only use one. I actually recommend using TinyInst instrumentation for first-time users. You can see examples at https://github.com/googleprojectzero/winafl/blob/master/readme_tinyinst.md (note that some flags have different names in TinyInst and other modes)
  • You are missing a -target_method flag.

from winafl.

AndyElGang avatar AndyElGang commented on July 24, 2024

this is my new command, but it still doesn't work, and yes I prefer using -Y afl-fuzz -i C:\Users\andye\Desktop\inputs -o C:\Users\andye\Desktop\output -t 25000+ -Y -- -target_method main -fuzz_iterations 5000 -covtype edge -nargs 1 -target_module example.exe -- example.exe @@

from winafl.

ifratric avatar ifratric commented on July 24, 2024

For -Y (static instrumentation) please read https://github.com/googleprojectzero/winafl/blob/master/readme_syzygy.md Did you successfully prepare and instrument your target as described in that readme?

from winafl.

AndyElGang avatar AndyElGang commented on July 24, 2024

Nevermind, it requires me to switch to 32 bit because it only supports that, if I use DynamoRIO, do I need to implement anything? Or as it suggests it can do it in real time

from winafl.

ifratric avatar ifratric commented on July 24, 2024

Both DynamoRIO and TinyInst are dynamic binary instrumentation solutions that instrument the target as it runs and support both 32- and 64- bit targets.

from winafl.

AndyElGang avatar AndyElGang commented on July 24, 2024

Do you know what this assert failure means? And yeah if ask about my code implementation it is this one
and this is the command I used = afl-fuzz -i C:\Users\andye\Desktop\inputs -o C:\Users\andye\Desktop\output -t 25000+ -D C:\Users\andye\Desktop\DynamoRIO\bin64 -- -target_method main -fuzz_iterations 5000 -covtype edge -nargs 1 -target_module example.exe -- example.exe @@

#include <iostream>
#include <string>

int main() {
    std::string userInput;

    // Prompting user for input
    std::cout << "Enter something: ";
    std::getline(std::cin, userInput); // Allowing spaces in input

    // Printing the input
    std::cout << "You entered: " << userInput << std::endl;

    return 0;
}
![Capture](https://github.com/googleprojectzero/winafl/assets/132935097/0dcdc048-81ef-4d07-b8d2-2964216ae835)

from winafl.

AndyElGang avatar AndyElGang commented on July 24, 2024

can someone give me a step by step i'm actually lost, like based on my code can someone compile it and show me how it's done?

from winafl.

AndyElGang avatar AndyElGang commented on July 24, 2024

Nevermind I just copied the exact command of another person and adapted it to my file and it works fine now

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.