12 releases
0.3.4 | Oct 29, 2023 |
---|---|
0.3.2 | Dec 4, 2022 |
0.2.4 | Oct 27, 2020 |
0.2.3 | Jun 6, 2020 |
0.1.0 | Oct 24, 2018 |
#1377 in Development tools
198 downloads per month
8KB
99 lines
libinjection-rs
Rust bindings for libinjection.
How to use
- Add
libinjection
todependencies
ofCargo.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);
No runtime deps
~0–3MB
~62K SLoC