-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1687 from domwhewell-sage/enhance_trufflehog_output
Added RawV2 to trufflehog output
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,7 +851,8 @@ def check(self, module_test, events): | |
if e.type == "VULNERABILITY" | ||
and (e.data["host"] == "hub.docker.com" or e.data["host"] == "github.com") | ||
and "Verified Secret Found." in e.data["description"] | ||
and "Secret: [https://admin:[email protected]]" in e.data["description"] | ||
and "Raw result: [https://admin:[email protected]]" in e.data["description"] | ||
and "RawV2 result: [https://admin:[email protected]/basic_auth]" in e.data["description"] | ||
] | ||
assert 3 == len(vuln_events), "Failed to find secret in events" | ||
github_repo_event = [e for e in vuln_events if "test_keys" in e.data["description"]][0].parent | ||
|
@@ -898,7 +899,7 @@ def check(self, module_test, events): | |
if e.type == e.type == "FINDING" | ||
and (e.data["host"] == "hub.docker.com" or e.data["host"] == "github.com") | ||
and "Potential Secret Found." in e.data["description"] | ||
and "Secret: [https://admin:[email protected]]" in e.data["description"] | ||
and "Raw result: [https://admin:[email protected]]" in e.data["description"] | ||
] | ||
assert 3 == len(finding_events), "Failed to find secret in events" | ||
github_repo_event = [e for e in finding_events if "test_keys" in e.data["description"]][0].parent | ||
|