Added useLocalDatabase global flag to allow for local db files for separate engagements.
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
txt
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
- Error Handling
|
- Error Handling
|
||||||
- Credential Dumping
|
- Credential Dumping
|
||||||
- Intelligent Token Usage
|
- Intelligent Token Usage
|
||||||
|
- Database Path Configuration
|
||||||
# Options
|
# Options
|
||||||
|
|
||||||
```bash-session
|
```bash-session
|
||||||
@@ -43,6 +44,7 @@ options:
|
|||||||
-C --creds-only Return Credentials Only
|
-C --creds-only Return Credentials Only
|
||||||
-k --key API Key
|
-k --key API Key
|
||||||
-a --authorized-email Email to pair with key for authentication
|
-a --authorized-email Email to pair with key for authentication
|
||||||
|
--local-db Use local database in current directory
|
||||||
|
|
||||||
|
|
||||||
v1.0
|
v1.0
|
||||||
@@ -70,6 +72,30 @@ cd Dehasher
|
|||||||
go build dehasher.go
|
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
|
# Crafting a query
|
||||||
|
|
||||||
## Simple Query
|
## Simple Query
|
||||||
@@ -121,4 +147,3 @@ dehasher -k ddq<redacted> -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'
|
# Return matches for usernames exactly matching "admin" and write to xml file 'admins_file.xml'
|
||||||
dehasher -k ddq<redacted> -a ar1ste1a@domain.tld -C -B -U admin -X u -x -o admins_file
|
dehasher -k ddq<redacted> -a ar1ste1a@domain.tld -C -B -U admin -X u -x -o admins_file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user