mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
18 lines
456 B
Rust
18 lines
456 B
Rust
|
|
use crate::labels::{Cap, DataLabel, LabelRule};
|
||
|
|
|
||
|
|
// TODO: refactor this
|
||
|
|
pub static RULES: &[LabelRule] = &[
|
||
|
|
LabelRule {
|
||
|
|
matchers: &["document.location", "window.location"],
|
||
|
|
label: DataLabel::Source(Cap::all()),
|
||
|
|
},
|
||
|
|
LabelRule {
|
||
|
|
matchers: &["JSON.parse"],
|
||
|
|
label: DataLabel::Sanitizer(Cap::JSON_PARSE),
|
||
|
|
},
|
||
|
|
LabelRule {
|
||
|
|
matchers: &["eval"],
|
||
|
|
label: DataLabel::Sink(Cap::SHELL_ESCAPE),
|
||
|
|
},
|
||
|
|
];
|