Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contributors/pixeloff.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
htttps://github.com/thepixeloff
3 changes: 3 additions & 0 deletions customers/banned.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
first_name,last_name,company,title
Ballan,Agrandian,Boots,Protagonist
sam,ctrlman,closedai,ceo
3 changes: 3 additions & 0 deletions customers/favs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Favorite Characters
* Jesse Pinkman, Heisenbers's Assistant
* Walter White, Heisenberg, Chemist
2 changes: 2 additions & 0 deletions orgs/partners.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
partner list
SalesInc
The Startup
37 changes: 36 additions & 1 deletion scripts/scan.sh
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
# TODO: write the script
echo -e "\n====== SCANNING FOR CREDIT CARD NUMBERS ======"

grep -rEn --color=always \
'(\b[0-9]{4}[- ]?){3}[0-9]{4}\b' \
. \
--exclude-dir=.git

echo "==== CREDIT CARD SCAN COMPLETE ===="

echo -e "\n==== SCANNING FOR SOCIAL SECURITY NUMBERS ===="

grep -rE \
--color=always \
--exclude-dir=.git \
--line-number \
'\b[0-9]{3}-[0-9]{2}-[0-9]{4}\b' .

echo "==== SOCIAL SECURITY SCAN COMPLETE ===="

echo -e "\n==== SCANNING FOR PHONE NUMBERS ===="

# Matches 123-456-7890
grep -rE \
--color=always \
--line-number \
--exclude-dir=.git \
'\b[0-9]{3}-[0-9]{3}-[0-9]{4}\b' .

# Matches (123) 456-7890
grep -rE \
--color=always \
--line-number \
--exclude-dir=.git \
'\([0-9]{3}\) [0-9]{3}-[0-9]{4}\b' .

echo "==== PHONE NUMBER SCAN COMPLETE ===="
1 change: 1 addition & 0 deletions slander.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sladarious file