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