Skip to content

Commit 44ea4ff

Browse files
committed
init
1 parent ee3f610 commit 44ea4ff

File tree

1,420 files changed

+328457
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,420 files changed

+328457
-53
lines changed

.gitignore

+86-51
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,87 @@
1-
# Prerequisites
2-
*.d
3-
4-
# Object files
51
*.o
6-
*.ko
7-
*.obj
8-
*.elf
9-
10-
# Linker output
11-
*.ilk
12-
*.map
13-
*.exp
14-
15-
# Precompiled Headers
16-
*.gch
17-
*.pch
18-
19-
# Libraries
20-
*.lib
21-
*.a
22-
*.la
23-
*.lo
24-
25-
# Shared objects (inc. Windows DLLs)
26-
*.dll
27-
*.so
28-
*.so.*
29-
*.dylib
30-
31-
# Executables
32-
*.exe
33-
*.out
34-
*.app
35-
*.i*86
36-
*.x86_64
37-
*.hex
38-
39-
# Debug files
40-
*.dSYM/
41-
*.su
42-
*.idb
43-
*.pdb
44-
45-
# Kernel Module Compile Results
46-
*.mod*
47-
*.cmd
48-
.tmp_versions/
49-
modules.order
50-
Module.symvers
51-
Mkfile.old
52-
dkms.conf
2+
clang+llvm/
3+
Code/*.DSYM
4+
.DS_Store
5+
*.DS_Store
6+
*.dSYM
7+
*.npy
8+
*.npz
9+
*.tar.gz
10+
*.tar.xz
11+
evaluation/FUZZ/*/
12+
tool/AFL-2.52b/build/
13+
tool/AFL-2.52b/afl-analyze
14+
tool/AFL-2.52b/afl-analyze.dSYM/
15+
tool/AFL-2.52b/afl-as
16+
tool/AFL-2.52b/afl-as.dSYM/
17+
tool/AFL-2.52b/afl-clang
18+
tool/AFL-2.52b/afl-clang++
19+
tool/AFL-2.52b/afl-fuzz
20+
tool/AFL-2.52b/afl-fuzz.dSYM/
21+
tool/AFL-2.52b/afl-g++
22+
tool/AFL-2.52b/afl-gcc
23+
tool/AFL-2.52b/afl-gcc.dSYM/
24+
tool/AFL-2.52b/afl-gotcpu
25+
tool/AFL-2.52b/afl-gotcpu.dSYM/
26+
tool/AFL-2.52b/afl-showmap
27+
tool/AFL-2.52b/afl-showmap.dSYM/
28+
tool/AFL-2.52b/afl-tmin
29+
tool/AFL-2.52b/afl-tmin.dSYM/
30+
tool/AFL-2.52b/as
31+
tool/AFL-2.52b/test-instr.dSYM/
32+
tool/AFL-2.52b/afl-analyze
33+
tool/AFL-2.52b/afl-clang-fast
34+
tool/AFL-2.52b/afl-clang-fast++
35+
tool/AFL-2.52b/afl-llvm-pass.so
36+
tool/AFL-2.52b/afl-llvm-rt-64.o
37+
tool/AFL-2.52b/afl-llvm-rt-32.o
38+
tool/AFL-2.52b/afl-llvm-rt.o
39+
tool/ConFuzzer/.DS_Store
40+
tool/ConFuzzer/llvm_mode/.DS_Store
41+
tool/ConFuzzer/llvm_mode/*.dSYM/
42+
tool/ConFuzzer/afl-analyze
43+
tool/ConFuzzer/afl-as
44+
tool/ConFuzzer/afl-clang
45+
tool/ConFuzzer/afl-clang++
46+
tool/ConFuzzer/afl-clang-fast
47+
tool/ConFuzzer/afl-clang-fast++
48+
tool/ConFuzzer/afl-fuzz
49+
tool/ConFuzzer/afl-g++
50+
tool/ConFuzzer/afl-gcc
51+
tool/ConFuzzer/afl-gotcpu
52+
tool/ConFuzzer/afl-llvm-pass.so
53+
tool/ConFuzzer/afl-llvm-rt-32.o
54+
tool/ConFuzzer/afl-llvm-rt-64.o
55+
tool/ConFuzzer/afl-llvm-rt.o
56+
tool/ConFuzzer/afl-showmap
57+
tool/ConFuzzer/afl-tmin
58+
tool/ConFuzzer/as
59+
tool/ConFuzzer/build/bin/
60+
tool/ConFuzzer/build/lib/
61+
tool/ConFuzzer/build/share/
62+
test/.DS_Store
63+
test/in/
64+
test/transfer/out_ConFuzzer*
65+
test/transfer/out_AFL*
66+
test/transfer/transfer.bc
67+
test/uaf/out_ConFuzzer*
68+
test/uaf/out_AFL*
69+
test/uaf/uaf.bc
70+
tool/ConFuzzer/afl-analyze.dSYM/
71+
tool/ConFuzzer/afl-as.dSYM/
72+
tool/ConFuzzer/afl-fuzz.dSYM/
73+
tool/ConFuzzer/afl-gcc.dSYM/
74+
tool/ConFuzzer/afl-gotcpu.dSYM/
75+
tool/ConFuzzer/afl-showmap.dSYM/
76+
tool/ConFuzzer/afl-tmin.dSYM/
77+
tool/ConFuzzer/test-instr.dSYM/
78+
tool/AFL-2.52b/afl-clang-fast.dSYM/
79+
tool/AFL-2.52b/afl-llvm-pass.so.dSYM/
80+
tool/AFL-2.52b/llvm_mode/test-instr.dSYM/
81+
tool/ConFuzzer/afl-clang-fast.dSYM/
82+
tool/ConFuzzer/afl-llvm-pass.so.dSYM/
83+
tool/DBDS/example.py
84+
evaluation/BUILD/*/SRC*
85+
evaluation/BUILD/*/*.tar.gz
86+
evaluation/BUILD/*.tar.gz
87+
*/log.txt

Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:18.04
2+
3+
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
4+
RUN sed -i s:/archive.ubuntu.com:/mirrors.tuna.tsinghua.edu.cn/ubuntu:g /etc/apt/sources.list
5+
RUN apt-get clean
6+
RUN apt-get update --fix-missing
7+
RUN apt-get install -y wget git build-essential apt-utils python3 python python-pip python3-pip tmux cmake libtool libtool-bin automake autoconf autotools-dev m4 autopoint libboost-dev help2man gnulib bison flex texinfo zlib1g-dev libexpat1-dev libfreetype6 libfreetype6-dev libbz2-dev liblzo2-dev libtinfo-dev libssl-dev pkg-config libswscale-dev libarchive-dev liblzma-dev liblz4-dev doxygen vim intltool gcc-multilib sudo --fix-missing
8+
9+
RUN mkdir -p /workdir/ConFuzz
10+
11+
WORKDIR /workdir/ConFuzz
12+
COPY . /workdir/ConFuzz
13+
14+
ENV PATH "/workdir/ConFuzz/clang+llvm/bin:$PATH"
15+
ENV LD_LIBRARY_PATH "/workdir/ConFuzz/clang+llvm/lib:$LD_LIBRARY_PATH"
16+
ENV ROOT_DIR "/workdir/ConFuzz"
17+
18+
RUN sudo pip install -e /workdir/ConFuzz/tool/wllvm/
19+
RUN sudo pip install numpy
20+
RUN sudo pip3 install numpy
21+
RUN sudo pip3 install sysv_ipc
22+
23+
RUN cp -rf /usr/share/aclocal/* /usr/local/share/aclocal/
24+
25+
RUN tool/install_llvm.sh
26+
RUN tool/install_Fuzzer.sh
27+
RUN tool/install_SVF.sh
28+
RUN tool/install_staticAnalysis.sh

ILL.md

Whitespace-only changes.

INSTALL.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# INSTALL
2+
3+
We provide here a snapshot of ConFuzz. For simplicity, we provide shell script for the whole installation.
4+
5+
### Requirements
6+
7+
- Operating System: Ubuntu 18.04 LTS (*This is very important, as our implementation requires higher kernel version*)
8+
- Run the following command to install required packages
9+
```sh
10+
$ sudo apt-get install -y wget git build-essential python3 python python-pip python3-pip tmux cmake libtool libtool-bin automake autoconf autotools-dev m4 autopoint libboost-dev help2man gnulib bison flex texinfo zlib1g-dev libexpat1-dev libfreetype6 libfreetype6-dev libbz2-dev liblzo2-dev libtinfo-dev libssl-dev pkg-config libswscale-dev libarchive-dev liblzma-dev liblz4-dev doxygen vim intltool gcc-multilib sudo --fix-missing
11+
$ pip install numpy && pip3 install numpy && pip3 install sysv_ipc
12+
```
13+
14+
### Clone the Repository
15+
16+
```sh
17+
$ git clone https://github.com/wcventure/ConcurrencyFuzzer.git ConFuzz --depth=1
18+
$ cd ConFuzz
19+
```
20+
21+
### Build
22+
23+
Run the following command to automatically configure the environment and install the tool.
24+
25+
```sh
26+
# install LLVM and clang
27+
tool/install_llvm.sh
28+
29+
# set up environment
30+
export ROOT_DIR=path/to/ConFuzz
31+
export PATH=$ROOT_DIR/clang+llvm/bin:$PATH
32+
export LD_LIBRARY_PATH=$ROOT_DIR/clang+llvm/lib:$LD_LIBRARY_PATH
33+
34+
# install SVF
35+
$ROOT_DIR/tool/install_SVF.sh
36+
37+
# install the fuzzer
38+
$ROOT_DIR/tool/install_Fuzzer.sh
39+
40+
# install static analysis tool
41+
$ROOT_DIR/tool/install_staticAnalysis.sh
42+
43+
# install wllvm
44+
sudo pip install -e /workdir/ConFuzz/tool/wllvm/
45+
```

0 commit comments

Comments
 (0)