Code Monkey home page Code Monkey logo

ankou's People

Contributors

jiliac 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ankou's Issues

Ankou fails during initialization

Hi. I'm using the latest version of AFLPlusPlus with afl-clang-fast. The compiled harness definitely accepts input. However, for some reason ankou gives the following error during initialization for each case:
Problem when writing in control pipe: invalid argument
I run it with the following command:
./Ankou -app ./fuzzed_app -threads 1 -dict my.dict -i fuzz/ankou_input -o fuzz/ankou_output
Any ideas what could be the issue here?
Running with regular afl-fuzz works

can't find the bug in FourIndependentBranchesTest

Hi,

I've tried Ankou on https://github.com/llvm/llvm-project/blob/master/compiler-rt/test/fuzzer/FourIndependentBranchesTest.cpp and failed to make Ankou find the bug
(unless I provide a very close corpus element).

Am I doing something wrong?
From the Ankou paper I expected that it would shine on this kind of puzzles.

My steps:

# Edit FourIndependentBranchesTest.cpp to replace exit(1) with abort()
afl-gcc -c ~/llvm-project/compiler-rt/lib/fuzzer/standalone/StandaloneFuzzTargetMain.c
afl-g++   ~/llvm-project/compiler-rt/test/fuzzer/FourIndependentBranchesTest.cpp StandaloneFuzzT
argetMain.o 
rm -rf in out
mkdir in out
echo x > in/x

AFL_SKIP_CPUFREQ=1 afl-fuzz -i in -o out ./a.out @@
# AFL doesn't find the bug in ~5 minutes
echo FUZB > in/y  # input similar to the buggy one
AFL_SKIP_CPUFREQ=1 afl-fuzz -i in -o out ./a.out @@
# AFL finds the bug in a few seconds. 

rm in/y                                                             
                                                                                                                                                     
../Ankou -app ./a.out -args "@@" -i in -o out  
                                                                                                                                                                                                                  
Target: a.out                                                                                                                                                                                                     
round number: 632 (10m32s)                                                                                                                                                                                        
len(seedPts) = 9 - throughput: 1.76e+03                                                                                                                                                                           
total unique crashes: 0 - hangs: 1                                                                                                                                                                                
#edges: 24 (0.04%)                                                                                                                                                                                                
                  
<Ankou doesn't find the bug in 10+ minutes>

echo FUZB > in/y  # input similar to the buggy one
../Ankou -app ./a.out -args "@@" -i in -o out  
                                                                                                                                                                                                                  
Target: a.out                                                                                                                                                                                                     
round number: 26 (26s)                                                                                                                                                                                            
len(seedPts) = 12 - throughput: 1.62e+03                                                                                                                                                                          
total unique crashes: 1 - hangs: 1                                                                                                                                                                                
#edges: 25 (0.04%)                                                                                                                                                                                                
<Ankou finds the bug in 20 seconds>                      

 



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.