Skip to content

Instantly share code, notes, and snippets.

@weisjohn
Created September 10, 2014 22:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weisjohn/501c9654a2b0aa112fea to your computer and use it in GitHub Desktop.
Save weisjohn/501c9654a2b0aa112fea to your computer and use it in GitHub Desktop.
test your contacts against the gmail password compilation
#!bin/bash
echo "Export your Gmail contacts as a CSV, name it contacts.csv, put it in this directory, press Enter"
read foo
wget --referer=https://forum.btcsec.com https://forum.btcsec.com/uploads/manual_09_2014/google_5000000.7z
echo "I haven't worked out a way to unzip .7z files from a cli yet... patches welcome"
echo "Press enter when you've unzipped the file"
read foo
sort google_5000000.txt -o google_5000000.txt
comm -12 <(egrep -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" contacts.csv | sort) > matches.txt
cat matches.txt
@weisjohn
Copy link
Author

via @spicydonuts On a Mac $ brew install p7zip

@mpstein
Copy link

mpstein commented Sep 11, 2014

If you have 7zip installed, 7z e filename.7z

@EvanDSays
Copy link

I get the following error:

comm: missing operand after ‘/dev/fd/63’

@EvanDSays
Copy link

shouldn't your comm command take in google_5000000.txt as an input?

@rodrigorega
Copy link

I did this too: https://github.com/rodrigorega/wordlist_compare

I like your approach :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment