Git Product home page Git Product logo

jwaf's Introduction

JWAF

Rust sample web application firewall.

platform

Tested with rust 1.44 on Mac OSX Mojave

Requirements

Requirements taken from text in the original README. Duplicate requests for this exercise were taken to mean duplicate URI and HTTP method.

In addition, the proxy should be able perform at a minimum of 10 tx/sec.

Running the tests

The integration tests bring up a test http server to proxy for and the tests run against it. That can be run with:

cargo test -- --test-threads=1 --nocapture

Manual testing was done by running the python simple server:

% python -m SimpleHTTPServer 8000

In the main directory, containing the index.html, and then running the proxy from cargo:

cargo run jwaf --bin --s http::/localhost:8000

And then curl commands (variable), like so:

curl -i -d '{"is_malicious":"false", "key2":"value2", "foo":{"is_malicious": "false"}}' -H "Content-Type: application/json" -X GET http://localhost:3000

jwaf's People

Contributors

bowrocker avatar

Watchers

James Cloos 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.