Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added redis search function, allowing you to search for a key without… #7

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

lojikil
Copy link
Collaborator

@lojikil lojikil commented Mar 23, 2021

… loading into redis

Usage:
  ht redis search [flags]

Flags:
  -D, --decode          Decode the base64 before writing to terminal (default no)
  -h, --help            help for search
  -I, --infile string   Infile generated by ht redis dump -j
  -s, --string string   Key value to search for in the redis dump

Global Flags:
  -d, --database int      Redis db. Defaults to 0.
  -H, --host string       Redis hostname. Defaults to locahost (default "localhost")
  -p, --password string   Redis password. Defaults to empty.
  -P, --port int          Redis Port. Defaults to 6379 (default 6379)
  -v, --verbose           Output full results, not newline formatted

And we can use it thusly: ./hunttools redis search -I foo.json -s 'some-key' to see the Base64 dump. This was added so that we can dump raw keys and then load them into something else

@rreichel3 rreichel3 merged commit 6dcb596 into main Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants