Code Monkey home page Code Monkey logo

rusty-fume's Introduction

GitHub GitHub Workflow Status (with event) GitHub issues GitHub pull requests GitHub Repo stars GitHub forks

rusty-FUME

A high-performance MQTT network Fuzzer.

This is an implementation of FUME-Fuzzing-MQTT-Brokers in Rust.

Architecture

The Fuzzing process is based on a Markov Model seen in the following image: Markov Model For more details see src/lib/lib.rs or the original paper.

Notable changes from the paper include:

  • The use of multiple asynchronous threads for fuzzing by default
  • Improved performance
  • Only counting broker crashes as crashes(The original paper also counted refused connections as crashes)

Running the project

After installing Rust, run the following command in the project directory:

cargo run -r -- --broker-command "YOUR_BROKER_START_COMMAND" fuzz

After fuzzing has found a crash you can run the following command to reproduce the crash:

cargo run -r -- --broker-command "YOUR_BROKER_START_COMMAND" replay

Recommendations

Note: DO NOT USE THIS ON A PRODUCTION SERVER AS IT MAY HAVE UNINTENDED SIDE EFFECTS

That being said, it works fine on my local machine. I recommend running the following commands before fuzzing to prevent the kernel from running out of ports:

sudo sysctl -w net.ipv4.tcp_fin_timeout=5
sudo sysctl -w net.ipv4.tcp_tw_reuse=1
sudo sysctl -w net.ipv4.ip_local_port_range="1024 65535"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Compatibility

Currently, the Windows build is failing in the ci, however i've only tested this on Linux so far. Maybe it works on Windows, maybe it doesn't. I don't know. Pull Requests to fix this if necessary are welcome.

๐Ÿ† Trophies

All bugs found with this software. If you find a bug using rusty-FUME, please open an issue and I'll add it to the list once it is patched.

Credits

rusty-fume's People

Contributors

nereuxofficial avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.