HexHive / T-Fuzz

247 stars 39 forks source link

Dockerfile request #20

Closed andreafioraldi closed 4 years ago

andreafioraldi commented 4 years ago

Hi, The shellphish fuzzer repository is archived and angr tracer is deprecated. Seems also that you are using angr 7. Can you provide a Dockerfile for Ubuntu 16.04 that downloads all the correct versions of this old software? Or at least make a list of compatible versions. Thank you.

Regards, Andrea

andreafioraldi commented 4 years ago

Ok, I've seen only now that there is a docker image available to pull at the end of the readme. Can you anyway put the Dockerfile in the repo?

zjuchenyuan commented 4 years ago

@andreafioraldi I have written a Dockerfile for tfuzz, maybe useful for you.

https://hub.docker.com/r/zjuchenyuan/tfuzz/dockerfile

FROM zjuchenyuan/base

LABEL description="T-Fuzz: fuzzing by program transformation"

RUN sed -i 's/# deb-src/deb-src/g' /etc/apt/sources.list &&\
    apt-get update && apt-get build-dep -y qemu-system && apt install -y libtool libtool-bin git build-essential gcc-multilib libtool automake autoconf bison debootstrap debian-archive-keyring libacl1-dev  python-pip python-virtualenv

RUN git clone https://github.com/radare/radare2.git &&\
    cd radare2 && ./sys/install.sh && cd .. 

# we ignore qemu install, as T-Fuzz will not use it
RUN git clone https://github.com/shellphish/shellphish-afl.git &&\
    cd shellphish-afl &&\
    python setup.py install &&\
    git clone --depth 1 https://github.com/mirrorer/afl /usr/bin/afl-unix &&\
    cd /usr/bin/afl-unix && make

# fix Deprecation Warning issue, here we use latest version of shellphish/fuzzer
RUN git clone https://github.com/HexHive/T-Fuzz &&\
    python -m pip install -U pip &&\
    cd T-Fuzz && sed -i 's/shellphish-afl==1.1//g' req.txt && pip install -r req.txt &&\
    pip install -U git+https://github.com/shellphish/fuzzer.git

# there are an issue related to number format of create_dict.py
ADD create_dict.py /usr/local/bin/create_dict.py

RUN chmod +x /usr/local/bin/create_dict.py