Crates.io | libinjection-rs |
lib.rs | libinjection-rs |
version | 0.2.8 |
source | src |
created_at | 2022-07-23 08:49:30.075061 |
updated_at | 2022-11-30 09:00:36.160654 |
description | Rust bindings for libinjection from libinjection/libinjection fork |
homepage | https://github.com/chandanpasunoori/libinjection-rs |
repository | https://github.com/chandanpasunoori/libinjection-rs |
max_upload_size | |
id | 631333 |
size | 20,513 |
Rust bindings for libinjection.
libinjection
to dependencies
of Cargo.toml
:libinjection = "0.2"
extern crate libinjection;
use libinjection::{sqli, xss};
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);