diff options
author | talos-vulndev <vulndev@cisco.com> | 2016-05-03 21:24:32 -0500 |
---|---|---|
committer | talos-vulndev <vulndev@cisco.com> | 2016-05-03 21:24:32 -0500 |
commit | 2ca7045f99461f38f1ddab3e8556e0f946f342fa (patch) | |
tree | 9cb7879bee409aec47239534d88c897939893b85 | |
parent | c2fdffa2a19f7c22ac52a3ff9d0baabc738af940 (diff) | |
parent | 6b1f87b4cc11d7e19c51a8665645b2b95628e855 (diff) | |
download | afl-dyninst-2ca7045f99461f38f1ddab3e8556e0f946f342fa.tar.gz |
Merge pull request #2 from richinseattle/master
Added dockerfile and removed requirement for instrumentation lib to b…
-rw-r--r-- | Dockerfile | 49 | ||||
-rw-r--r-- | afl-dyninst.cpp | 2 |
2 files changed, 50 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb2e2ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,49 @@ +FROM ubuntu:trusty +MAINTAINER rjohnson@moflow.org + +# dyninst ubuntu 14.04/x64 +RUN apt-get update && apt-get install -y \ + build-essential \ + gcc \ + g++ \ + make \ + cmake \ + git \ + ca-certificates \ + tar \ + gzip \ + vim \ + curl \ + libelf-dev \ + libelf1 \ + libiberty-dev \ + libboost-all-dev \ + && rm -rf /var/lib/apt/lists/* + +#RUN curl http://www.paradyn.org/release9.1.0/DyninstAPI-9.1.0.tgz | tar -zxvf - \ +# && cd DyninstAPI-9.1.0/ \ +RUN git clone https://github.com/dyninst/dyninst.git \ + && cd dyninst && mkdir build && cd build \ + && cmake .. \ + && make \ + && make install \ + && cd ../.. + +RUN curl http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz | tar -zxvf - \ + && cd afl-2* \ + && make \ + && make install \ + && cd .. + +RUN git clone https://github.com/talos-vulndev/afl-dyninst.git \ + && cd afl-dyninst \ + && ln -s `ls -d1 ../afl-2* | tail -1` afl \ + && make \ + && cp afl-dyninst /usr/bin \ + && cp libAflDyninst.so /usr/local/lib/ \ + && cd .. \ + && echo "/usr/local/lib" > /etc/ld.so.conf.d/dyninst.conf && ldconfig \ + && echo "export DYNINSTAPI_RT_LIB=/usr/local/lib/libdyninstAPI_RT.so" >> .bashrc + +# output usage and give a shell +CMD afl-dyninst ; /bin/bash -i diff --git a/afl-dyninst.cpp b/afl-dyninst.cpp index 38c99a4..aa45741 100644 --- a/afl-dyninst.cpp +++ b/afl-dyninst.cpp @@ -29,7 +29,7 @@ set<string> runtimeLibraries; int bbSkip = 0; bool skipMainModule = false; -const char *instLibrary = "./libAflDyninst.so"; +const char *instLibrary = "libAflDyninst.so"; static const char *OPT_STR = "i:o:l:e:vs:dr:"; static const char *USAGE = " -i <binary> -o <binary> -l <library> -e <address> -s <number>\n \ |