locohunt

Search for Secrets and Other Confidential Information Through Directories and Files Based on Regex and Search Strings.

GPL-3.0 License

Stars
10

Description

This tool is inspired from truffleHog which was built to explore and search for api keys and other confidential information through a github repo commit repository. This tool is built to do the same but on directories by using the Regular Expressions.

Manual

    Args              Description                  Default
    -h, --help        Print Manual                  False
    -t, --target      Target File or Directory
                      for Searching and 
                      Scanning                      None
    -r, --regex       Single Regex to Search
                      against the files.            None
    -f, --regex-json  File Containing multiple
                      Regular Expressions in JSON
                      Format.                       Inner
    -d, --depth       Depth of Directories          All

Regex

To Use Your own Regex file, you need to give in JSON form. An example is given here

Credits

Author: @hash3liZer