GithubHelp home page GithubHelp logo

ronin-rb / ronin-fuzzer Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 157 KB

A Ruby library for generating, mutating, and fuzzing data

Home Page: https://ronin-rb.dev

License: GNU Lesser General Public License v3.0

Ruby 98.62% Shell 1.38%
fuzzer fuzzing ruby

ronin-fuzzer's Introduction

ronin-fuzzer

CI Code Climate Gem Version

Description

ronin-fuzzer is a Ruby library and CLI for generating, mutating, and fuzzing data. The goal of ronin-fuzzer is to be both easy to use and highly customizable.

Features

  • Provides a Fuzzer class for incremental substitution fuzzing of data.
  • Provides a Mutator class for combinatorial substitution mutation of data.
  • Provides methods for enumerating over common "bad strings".
  • Provides core extension methods to Ruby's String class.

Synopsis

Fuzzes an input file and generates output bad files for testing:

$ ronin-fuzzer fuzz -i http_request.txt -o bad.txt -r unix_path:bad_strings

Examples

Replace every e, i, o, u with (, 100 As and a \0:

require 'ronin/fuzzing'

"the quick brown fox".fuzz(/[eiou]/ => ['(', ('A' * 100), "\0"]) do |str|
  p str
end

For more examples, please see the API documentation.

Requirements

Install

$ gem install ronin-fuzzer

Gemfile

gem 'ronin-fuzzer', '~> 0.1'

gemspec

gem.add_dependency 'ronin-fuzzer', '~> 0.1'

Development

  1. Fork It!
  2. Clone It!
  3. cd ronin-fuzzer/
  4. ./scripts/setup
  5. git checkout -b my_feature
  6. Code It!
  7. bundle exec rake spec
  8. git push origin my_feature

License

Copyright (c) 2006-2024 Hal Brodigan ([email protected])

This file is part of ronin-fuzzer.

ronin-fuzzer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ronin-fuzzer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with ronin-fuzzer. If not, see https://www.gnu.org/licenses/.

ronin-fuzzer's People

Contributors

noraj avatar postmodern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ronin-fuzzer's Issues

Update to kramdown-man 1.0.0

Update the kramdown-man dependency to 1.0.0. Also update the man pages to use the new kramdown-man syntax (definition lists for arguments/options definitions and [ronin-foo](ronin-foo.1.md) man page links).

Add Fuzzer Workers

Add Fuzzer Worker classes.

  • File Worker: simply writes the fuzz data to a file.
  • Program Worker: invokes a program with the fuzz data.
  • Network Worker: open a TCP/UDP socket and send the fuzz data.

Add `NAME` sections to all man pages

Add a NAME section to the tops of all man pages with the command's name and a short summary.

## NAME

ronin foo - summary here

This can probably be automated with a Ruby script.

Add Fuzzer Workers

Add Fuzzer Worker classes.

  • File Worker: simply writes the fuzz data to a file.
  • Program Worker: invokes a program with the fuzz data.
  • Network Worker: open a TCP/UDP socket and send the fuzz data.

Add `Ronin::Fuzzing::CLI`

Add a Ronin::Fuzzing::CLI module to manage the sub-commands. Also add a bin/ronin-fuzzing command.

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.