Skip to content

Commit 0852457

Browse files
author
dimknife63
committed
K: add scanner
1 parent 4ab8ff1 commit 0852457

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

scripts/scan.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
# TODO: write the script
1+
printf "
2+
====== SCANNING FOR CREDIT CARD NUMBERS ======
3+
"
4+
grep -rE --color=always '([0-9]{4}[- ]?){3}[0-9]{4}' . --exclude-dir={.git} --line-number
5+
echo "========= CREDIT CARD SCAN COMPLETE =========="
6+
printf "
7+
==== SCANNING FOR SOCIAL SECURITY NUMBERS ====
8+
"
9+
grep -rE --color=always '[0-9]{3}-[0-9]{2}-[0-9]{4}' . --exclude-dir={.git} --line-number
10+
echo "======= SOCIAL SECURITY SCAN COMPLETE ========"
11+
printf "
12+
========= SCANNING FOR PHONE NUMBERS =========
13+
"
14+
grep -rE --color=always '[0-9]{3}-[0-9]{3}-[0-9]{4}' . --exclude-dir={.git} --line-number
15+
grep -rE --color=always '\([0-9]{3}\) [0-9]{3}-[0-9]{4}' . --exclude-dir={.git} --line-number
16+
echo "========= PHONE NUMBER SCAN COMPLETE ========="

0 commit comments

Comments
 (0)