Skip to content

Instantly share code, notes, and snippets.

@weisjohn
Created September 10, 2014 22:04
Show Gist options
  • 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
@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