keyhunter/lib.rs
1//! `keyhunter` extracts API keys from JavaScript files.
2//
3// Copyright © 2024 Don Isaac
4//
5// This file is part of KeyHunter.
6//
7// KeyHunter is free software: you can redistribute it and/or modify it
8// under the terms of the GNU General Public License as published by the Free
9// Software Foundation, either version 3 of the License, or (at your option)
10// any later version.
11//
12// KeyHunter is distributed in the hope that it will be useful, but WITHOUT
13// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15// more details.
16//
17// You should have received a copy of the GNU General Public License along with
18// KeyHunter. If not, see <https://www.gnu.org/licenses/>.
19mod config;
20mod extract;
21pub(crate) mod http;
22#[cfg(feature = "report")]
23pub mod report;
24mod walk;
25
26pub use config::{Config, RuleId};
27pub use extract::{
28 ApiKeyCollector, ApiKeyError, ApiKeyExtractor, ApiKeyMessage, ApiKeyReceiver, ApiKeySender,
29};
30pub use walk::{ScriptMessage, ScriptReceiver, WebsiteWalkBuilder, WebsiteWalker};