libinjection

Crates.iolibinjection
lib.rslibinjection
version0.3.4
sourcesrc
created_at2018-10-24 12:51:57.08835
updated_at2023-10-29 21:51:41.263558
descriptionRust bindings for libinjection
homepagehttps://github.com/yaa110/libinjection-rs
repositoryhttps://github.com/yaa110/libinjection-rs
max_upload_size
id92378
size20,127
embedded-nal (github:rust-embedded-community:embedded-nal)

documentation

https://docs.rs/libinjection

README

libinjection-rs

crates.io Documentation Crates.io Test

Rust bindings for libinjection.

How to use

  • Add libinjection to dependencies of Cargo.toml:
libinjection = "*"
  • Import crate:
use libinjection::{sqli, xss};

Examples

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

Fingerprints: Please refer to fingerprints.txt.

  • XSS Detection:
let is_xss = xss("<script type='text/javascript'>alert('xss');</script>").unwrap();
assert!(is_xss);
Commit count: 25

cargo fmt