Crates.io | libinjection |
lib.rs | libinjection |
version | 0.3.4 |
source | src |
created_at | 2018-10-24 12:51:57.08835 |
updated_at | 2023-10-29 21:51:41.263558 |
description | Rust bindings for libinjection |
homepage | https://github.com/yaa110/libinjection-rs |
repository | https://github.com/yaa110/libinjection-rs |
max_upload_size | |
id | 92378 |
size | 20,127 |
Rust bindings for libinjection.
libinjection
to dependencies
of Cargo.toml
: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);