From 1025de0e592511b66c5b811f141f7a8b1e1b832f Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:51:27 +0000 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 688cb4f..25ad223 100644 --- a/README.md +++ b/README.md @@ -1609,7 +1609,7 @@ wfind() { # Usage: wfind /etc /var /usr ``` -Find local passwords: +Find local passwords (using noseyparker): ```sh curl -fsSL https://github.com/praetorian-inc/noseyparker/releases/download/v0.16.0/noseyparker-v0.16.0-x86_64-unknown-linux-gnu.tar.gz | tar xvfz - --transform="flags=r;s|.*/||" --no-anchored --wildcards noseyparker && \ ./noseyparker scan . && \ @@ -1617,6 +1617,14 @@ curl -fsSL https://github.com/praetorian-inc/noseyparker/releases/download/v0.16 ``` (Or use [PassDetective](https://github.com/aydinnyunus/PassDetective) to find passwords in ~/.*history) +Using `grep`: +```sh +# Find passwords (without garbage). +grep -HEronasir '.{16}password.{,64}' . +# Find TLS or OpenSSH keys: +grep -r -F -- " PRIVATE KEY-----" . +``` + --- ## 8. Shell Hacks