From f8402098655b00cbc568bf7b637e703381f37013 Mon Sep 17 00:00:00 2001 From: Evan Hosinski Date: Thu, 15 May 2025 15:48:11 -0400 Subject: [PATCH] Added useLocalDatabase global flag to allow for local db files for separate engagements. --- .img/placeholder.txt | 1 + README.md | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .img/placeholder.txt diff --git a/.img/placeholder.txt b/.img/placeholder.txt new file mode 100644 index 0000000..84c22fd --- /dev/null +++ b/.img/placeholder.txt @@ -0,0 +1 @@ +txt \ No newline at end of file diff --git a/README.md b/README.md index 8196a7d..870cbfd 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ - Error Handling - Credential Dumping - Intelligent Token Usage +- Database Path Configuration # Options ```bash-session @@ -43,6 +44,7 @@ options: -C --creds-only Return Credentials Only -k --key API Key -a --authorized-email Email to pair with key for authentication + --local-db Use local database in current directory v1.0 @@ -70,6 +72,30 @@ cd Dehasher go build dehasher.go ``` +# Database Configuration + +Dehasher supports two database storage options: + +1. **Default Path** (default): Stores the database at `~/.local/share/Dehasher/db/dehashed.sqlite` +2. **Local Path**: Stores the database in the current directory as `./dehasher.sqlite` + +To configure the database location: + +```bash +# Use local database in current directory +./dehasher set-local-db true + +# Use default database path +./dehasher set-local-db false +``` + +You can also specify the database location when running commands: + +```bash +# Use local database for this command only +./dehasher -k YOUR_API_KEY -a YOUR_EMAIL -E @example.com --local-db +``` + # Crafting a query ## Simple Query @@ -121,4 +147,3 @@ dehasher -k ddq -a ar1ste1a@domain.tld -C -B -U admin -X u -Y -o admin # Return matches for usernames exactly matching "admin" and write to xml file 'admins_file.xml' dehasher -k ddq -a ar1ste1a@domain.tld -C -B -U admin -X u -x -o admins_file ``` -