clixon/fuzz/cli
Olof hagsand b70e22096e - Pagination: enabled LIST_PAGINATION and remobved constant
- Changed logic on how to find clixon_restconf in pseudo plugin
- Removed ==== in constants to avoid conflict with git merge
- Remove assert
- Added fuzzing for netconf
2021-09-23 13:33:26 +02:00
..
input - Pagination: enabled LIST_PAGINATION and remobved constant 2021-09-23 13:33:26 +02:00
README.md - Fuzz for restconf and cli updated 2021-05-27 20:39:49 +02:00
runfuzz.sh - Fuzz for restconf and cli updated 2021-05-27 20:39:49 +02:00

Clixon fuzzing

This dir contains code for fuzzing clixon cli.

Note: cli plugins do not work.

Prereqs

Install AFL, see ..

Build and install a clixon system (in particular the backend, the CLI will be replaced)

Build

Build clixon cli statically with the afl-clang compiler:

  CC=/usr/bin/afl-clang-fast LINKAGE=static ./configure # Dont care about restconf
  make clean
  cd apps/cli
  make clixon_cli
  sudo make install

Run tests

Run the script runfuzz.sh to run one test with a cli spec and an input string, eg:

  ./runfuzz.sh

After (or during) the test, investigate results in the output dir.