From afcc8c40e4eb9ab2bee1dd249d56b1db21285b3d Mon Sep 17 00:00:00 2001 From: jetbennett Date: Thu, 21 Mar 2024 18:17:59 -0400 Subject: [PATCH] Case Insensitive breach-parse.sh Added the '-i' flag to the main grep command to make the search case insensitive. This handles cases where an email address has caps. Searching for "@example.com" will now also return instances of "@EXAMPLE.com", that may have otherwise been missed. --- breach-parse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breach-parse.sh b/breach-parse.sh index d792c8d..714e6ab 100755 --- a/breach-parse.sh +++ b/breach-parse.sh @@ -67,7 +67,7 @@ else # grep for passwords find "$breachDataLocation" -type f -not -path '*/\.*' -print0 | while read -d $'\0' file; do - grep -a -E "$1" "$file" >>$master + grep -i -a -E "$1" "$file" >>$master ((++file_Count)) ProgressBar ${number} ${total_Files}