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

Issue 1193: update trufflehog command on the challenge 1 hint doc #1195

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/resources/explanations/challenge1_hint.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ You can solve this challenge by the following steps:
4. You can scan the repository with https://github.com/trufflesecurity/trufflehog[*Trufflehog*].
- Clone the repo with `git clone https://github.com/OWASP/wrongsecrets`.
- Follow the instructions https://github.com/trufflesecurity/trufflehog[here] to install Trufflehog.
- Follow these instructions to download the https://github.com/trufflesecurity/trufflehog/blob/4afc224c635d10e732119f715f93788af1502ce4/examples/README.md[generic detector] file
- Download trufflehog generic detector `wget https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/examples/generic.yml`.
- Scan the files using `trufflehog filesystem --config=$PWD/generic.yml . | grep password` and the password will be in the output.
za marked this conversation as resolved.
Show resolved Hide resolved

5. Alternative, you can use the older Trufflehog 2:
- Have python and pip3 installed, and run `pip3 install trufflehog` to install Trufflehog 2.
- Scan the files using `trufflehog . | grep password` and the password will be in the output.
- Please note that Trufflehog 2 was released [> 5 years ago](https://github.com/trufflesecurity/trufflehog/tags?after=v3.0.0) and no longer [maintained](https://github.com/trufflesecurity/trufflehog/issues/2328).
Loading