Code Monkey home page Code Monkey logo

aflnw's Introduction

aflnw's People

Contributors

lylemi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aflnw's Issues

在make时候遇到点问题

~/aflnw/build$ make
[ 25%] Building C object CMakeFiles/aflnw.dir/src/afl.c.o
afl-cc++4.10c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
SanitizerCoveragePCGUARD++4.10c
[+] Instrumented 3 locations with no collisions (non-hardened mode) of which are 0 handled and 0 unhandled selects.
[ 50%] Building C object CMakeFiles/aflnw.dir/src/main.c.o
afl-cc++4.10c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
SanitizerCoveragePCGUARD++4.10c
[+] Instrumented 11 locations with no collisions (non-hardened mode) of which are 0 handled and 0 unhandled selects.
[ 75%] Building C object CMakeFiles/aflnw.dir/src/utils.c.o
afl-cc++4.10c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
SanitizerCoveragePCGUARD++4.10c
[+] Instrumented 114 locations with no collisions (non-hardened mode) of which are 0 handled and 0 unhandled selects.
[100%] Linking C executable aflnw
afl-cc++4.10c by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
CMakeFiles/aflnw.dir/src/main.c.o:(.bss+0x0): multiple definition of conf'; /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22 CMakeFiles/aflnw.dir/src/afl.c.o:(.bss+0x0): first defined here /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23 CMakeFiles/aflnw.dir/src/utils.c.o:(.bss+0x0): multiple definition of conf'; CMakeFiles/aflnw.dir/src/afl.c.o:(.bss+0x0): first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/aflnw.dir/build.make:129:aflnw] 错误 1
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/aflnw.dir/all] 错误 2
make: *** [Makefile:91:all] 错误 2

网络服务挂掉之后,afl没有检测到崩溃,依然继续执行fuzz

您这里的代码很明朗,如果无法建立tcp连接,则程序crash。

    int ret = connect(
                  server_fd, (const struct sockaddr *)&server_listen_addr,
                  sizeof(struct sockaddr)
              );
    printf("send ret %d\n", ret);
    if (ret < 0)
    {
        crash();
    }

但是我在测试过程中,发现只有系统崩溃时才会停止,如果服务挂掉(端口挂),fuzz依然继续.

How to collect crashes?

Hello, thank you for sharing this project. I have successfully built and deployed your software, but I don't quite understand how to collect crashes? When running with AFL, the crashes never get counted or logged, despite being able to see the crash and stack trace appear in the terminal of the software we're fuzzing.

For example, using the command line from your README:
/afl-fuzz -i ./input -o ./output -- ./aflnw -a 127.0.0.1 -p 8888 -- /opt/fuzz/nginx/objs/nginx

This doesn't actually start nginx, we have to start nginx in another terminal. Once we do that, we can start seeing some network requests being made towards nginx, and when we finally get nginx to crash, AFL keeps on running and doesn't log the crash or save the reproducing testcase. Can you advise on how to capture the crashes? Thank you.

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.