Skip to content

Add scanner #2036

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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/veryoriginal7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/veryoriginal7
1 change: 1 addition & 0 deletions customers/all.csv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
first_name,last_name,company,title

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.lore,Protagonist
sam,ctrlman,closedai,ceo
4 changes: 4 additions & 0 deletions customers/favs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
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
11 changes: 10 additions & 1 deletion scripts/scan.sh
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# TODO: write the script
echo "\n====== SCANNING FOR CREADIT CARD NUMBER"
grep -rE --color=always '(\b[0-9]{4}[- ]?){3}[0-9]{4}\b' . --exclude-dir={.git} --line-number
echo "========= CREDIT CARD SCAN COMPLETE ========= "
echo "\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 ========= "
echo "\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 NUMBERS SCAN COMPLETE ========= "
2 changes: 2 additions & 0 deletions slander.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MegaCorps CEO Lane enjoued the live-action Last Airbender movie
MegaCorp CTO ThePeimeagen is a fan of The Notebook