1# Fuzzing ISC BIND 9.11.1 # 2 3**Requirements** 4 5 * honggfuzz (1.1 or from the master branch) 6 * clang-4.0, or newer (5.0 works as well) 7 * ISC BIND (e.g.: 9.11.1 or newer) 8 9**Preparation** 10 11Note: The examples provided below use hardcoded paths (here to: _/home/jagger/_). These will have to be modified, so they reflect your actual build environment. 12 131. Compile honggfuzz 142. Download and unpack bind-9.11.\*.tgz 153. Patch ISC BIND 16 ``` 17$ cd bind-9.11.1-P3 18$ patch -p1 < honggfuzz/examples/bind/patch-bind-9.11.1-P3 19 ``` 20 214. Configure, compile and install ISC BIND 22 23* edit _compile.sh_, so it contains correct dist path 24 ``` 25$ ./compile.sh 26$ make install 27 ``` 28 295. Copy the custom configuration files to ```/home/jagger/fuzz/bind/dist/etc/named.conf``` (i.e. to your bind/named dist directory) 30 31``` 32$ cp honggfuzz/examples/bind/named.conf /home/jagger/fuzz/bind/dist/etc/ 33$ cp honggfuzz/examples/bind/test.zone /home/jagger/fuzz/bind/dist/etc/ 34 ``` 35 366. **Go** 37 38``` 39$ honggfuzz/honggfuzz -f IN.req-response/ -z -P -- ./dist/sbin/named -c /home/jagger/fuzz/bind/dist/etc/named.conf -g 40 ``` 41