Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@weisjohn weisjohn commented Sep 10, 2014

via @spicydonuts On a Mac $ brew install p7zip

@mpstein

This comment has been minimized.

Copy link

@mpstein mpstein commented Sep 11, 2014

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

@EvanDSays

This comment has been minimized.

Copy link

@EvanDSays EvanDSays commented Sep 11, 2014

I get the following error:

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

@EvanDSays

This comment has been minimized.

Copy link

@EvanDSays EvanDSays commented Sep 11, 2014

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

@rodrigorega

This comment has been minimized.

Copy link

@rodrigorega rodrigorega commented Sep 11, 2014

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
You can’t perform that action at this time.