git clone https://github.com/mongodb/mongo-c-driver.git
cd mongo-c-driver
git checkout x.y.z # To build a particular release
python build/calc_release_version.py > VERSION_CURRENT
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
Building
Ubuntu
use cmake to compile the project
mkdir build
cd build
cmake ..
make
For the controller
use command below to upload the testcases and the instrumented binary(eg. who),
We make some change in the origin afl-fuzz.c and add a new c file–p-fuzz.c, in which we define our sub-fuctions.
You can just use client like afl-fuzz.
Usage
Install
Install MongoDB
Installation
open the remote access of MongoDB
Install BSON library
Install MongoDB Driver
Building
Ubuntu
use cmake to compile the project
For the controller
use command below to upload the testcases and the instrumented binary(eg. who),
For the master-node
For the client
We make some change in the origin afl-fuzz.c and add a new c file–p-fuzz.c, in which we define our sub-fuctions. You can just use client like afl-fuzz.
make a new output direcotory
use command below to run the fuzzer
build/bin/afl-fuzz -o output/ -u THE_IP_OF_DB_SERVER:27017 -b TASK_NAME -l MASTER_IP -p MASTER_PORT ./LOCAL_PROGRAM_NAME @@
pfuzz_web部署说明
环境:python3, Django,mongo
注:以下为需要用到的工具,已安装的可跳过,安装到python3。若当前默认python2,有两种方式,一是切换到python3,二是指定使用python3。遇到权限问题加上 sudo
安装步骤
运行
进入PFuzz_web文件夹(即manage.py所在目录下),执行命令(先保证mongo已经开启): sudo python3 manage.py runserver 0.0.0.0:80