-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(walk): Add WebsiteWalkBuilder (#13)
* refactor: add WebsiteWalkBuilder * fix(walk): remove Accept-Encoding header
- Loading branch information
Showing
14 changed files
with
528 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
tmp | ||
tarpaulin-report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"rust-analyzer.cargo.features": "all" | ||
"rust-analyzer.cargo.features": "all", | ||
"cSpell.words": [ | ||
"gitleaks", | ||
"keyhunter", | ||
"miette" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
/// Copyright © 2024 Don Isaac | ||
/// | ||
/// This file is part of KeyHunter. | ||
/// | ||
/// KeyHunter is free software: you can redistribute it and/or modify it | ||
/// under the terms of the GNU General Public License as published by the Free | ||
/// Software Foundation, either version 3 of the License, or (at your option) | ||
/// any later version. | ||
/// | ||
/// KeyHunter is distributed in the hope that it will be useful, but WITHOUT | ||
/// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
/// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
/// more details. | ||
/// | ||
/// You should have received a copy of the GNU General Public License along with | ||
/// KeyHunter. If not, see <https://www.gnu.org/licenses/>. | ||
pub mod config; | ||
//! `keyhunter` extracts API keys from JavaScript files. | ||
// | ||
// Copyright © 2024 Don Isaac | ||
// | ||
// This file is part of KeyHunter. | ||
// | ||
// KeyHunter is free software: you can redistribute it and/or modify it | ||
// under the terms of the GNU General Public License as published by the Free | ||
// Software Foundation, either version 3 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// KeyHunter is distributed in the hope that it will be useful, but WITHOUT | ||
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
// more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with | ||
// KeyHunter. If not, see <https://www.gnu.org/licenses/>. | ||
mod config; | ||
mod extract; | ||
pub(crate) mod http; | ||
#[cfg(feature = "report")] | ||
pub mod report; | ||
mod walk; | ||
|
||
pub use config::Config; | ||
pub use config::{Config, RuleId}; | ||
pub use extract::{ | ||
ApiKeyCollector, ApiKeyError, ApiKeyExtractor, ApiKeyMessage, ApiKeyReceiver, ApiKeySender, | ||
}; | ||
pub use walk::{ScriptMessage, ScriptReceiver, WebsiteWalker}; | ||
pub use walk::{ScriptMessage, ScriptReceiver, WebsiteWalkBuilder, WebsiteWalker}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod website; | ||
// TODO: file walker | ||
|
||
pub use website::{ScriptMessage, ScriptReceiver, WebsiteWalker}; | ||
pub use website::{ScriptMessage, ScriptReceiver, WebsiteWalkBuilder, WebsiteWalker}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.