diff --git a/scripts/scan.sh b/scripts/scan.sh index f4d9eb2..8ada46b 100755 --- a/scripts/scan.sh +++ b/scripts/scan.sh @@ -1 +1,12 @@ -# TODO: write the script +printf "\n====== SCANNING FOR CREDIT CARD NUMBERS ======\n" +grep -rE --color=always '(\b[0-9]{4}[- ]?){3}[0-9]{4}\b' . --exclude-dir={.git} --line-number +echo "========= CREDIT CARD SCAN COMPLETE ==========" + +printf "\n==== SCANNING FOR SOCIAL SECURITY NUMBERS ====\n" +grep -rE --color=always '\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b' . --exclude-dir={.git} --line-number +echo "======= SOCIAL SECURITY SCAN COMPLETE ========" + +printf "\n========= SCANNING FOR PHONE NUMBERS =========\n" +grep -rE --color=always '\b[0-9]{3}-[0-9]{3}-[0-9]{4}\b' . --exclude-dir={.git} --line-number +grep -rE --color=always '\([0-9]{3}\) [0-9]{3}-[0-9]{4}' . --exclude-dir={.git} --line-number +echo "========= PHONE NUMBER SCAN COMPLETE ========="