Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scan.sv with 3 commits squashed in one #1147

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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
Kayha,tbd,TheMarchOfTime,sidekick
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 Customers
* Jesse Pinkman, Heisenberg'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
TheStartup
13 changes: 12 additions & 1 deletion scripts/scan.sh
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# TODO: write the script
printf "\n====== SCANNING FOR CREDIT CARD NUMBERS ======"
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 ===="
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 ========="
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 ========="
5 changes: 5 additions & 0 deletions slander.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Breaking News

MegaCorp CEO Lane enjoyed the live-action Last Airbender movie
MegaCorp CTO ThePrimeagen is a fan of The Notebook (and most other Nicholas Sparks content)