Home

Awesome

libinjection-rs

crates.io Documentation Build Status Crates.io

Rust bindings for libinjection.

How to use

libinjection = "0.2"
extern crate libinjection;

use libinjection::{sqli, xss};

Examples

let (is_sqli, fingerprint) = sqli("' OR '1'='1' --").unwrap();
assert!(is_sqli);
assert_eq!("s&sos", fingerprint);

Fingerprints: Please refer to fingerprints.txt.

let is_xss = xss("<script type='text/javascript'>alert('xss');</script>").unwrap();
assert!(is_xss);