diff --git a/file.txt b/file.txt new file mode 100644 index 000000000..af7864ba2 --- /dev/null +++ b/file.txt @@ -0,0 +1,3 @@ +123 +456 +789 diff --git a/scripts/scan.sh b/scripts/scan.sh index f4d9eb226..be676a78a 100755 --- a/scripts/scan.sh +++ b/scripts/scan.sh @@ -1 +1,10 @@ -# 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 =========" diff --git a/truth.md b/truth.md new file mode 100644 index 000000000..e3cebe668 --- /dev/null +++ b/truth.md @@ -0,0 +1 @@ +water is not wet