Code Monkey home page Code Monkey logo

px4_gazebo's Introduction

A modified version of px4 firmware to allow fuzzing, running in a docker container with SITL and Gazebo support. With some helper scripts.

How it works

PX4 firmware source was modified to include a function fuzz_input (firmware/src/examples/fuzz_input/fuzz_input.c) which runs through the module loader firmware/fuzzing-tools/iris fuzz_input continuisly reads input from a FIFO pipe firmware/fuzzing-tools/pipe and passes the input to uORB whicn in turn populates the input buffer to the Mavlink simulator. The Mavlink simulator expects a struct of type mavlink_message_t in the buffer

The current input buffer is limited to size 1024 Bytes Can be increaded in fuzz_input.c.

Usage

Build and download the container

git clone https://github.com/wes4m/px4_gazebo.git
cd px4_gazebo
./download_build.sh

Running the image

./run

Passing input

./mavlink_msg.sh <input>

Or just directly write to firmware/fuzzing-tools/pipe

Input path: PX4 > uORB > MAVLINK

TODO

  • Add fuzzer to container?
  • Test AFL on stdin
  • Construct a MavLink dictionary for AFL

px4_gazebo's People

Contributors

wes4m avatar mahaloz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.