-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
62 lines (33 loc) · 1.96 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
.
Count and encrypt email addresses in files faster.
WHAT'S THE PURPOSE OF THIS SCRIPT?
- Count unique email addresses in a file. Ideal to work from a file produced by combining multiple csv and plain text files in multiple formats.
- Create lists of hashed (encrypted) email addresses that can be uploaded to Google Adwords. Tested up to 2.000.000 email addresses without issues.
- Beside email addresses, it can also count unique sha256 hashes in a file. It can be used to count unique email addresses when they are hashed.
GET HELP
./ecounter --help
HOW TO USE IT
Scan emails in a file
Scan a file and create another file with just one email per line:
./ecounter -input=rawfile.csv -output=uniques.txt
Scan sha256 hashes in a file
Scan a file for sha256 hashes and create another file with just one (unique) sha256 hash per line:
./ecounter -input=rawfile.csv -count=sha256 -output=uniques.txt
This feature is useful to count unique emails when they are hashed (encrypted).
Scan urls in a file
Scan a file, like for example a sitemap.xml file, for urls:
./ecounter -input=sitemap.xml -count=urls -output=urls.csv
This feature is useful to create files with urls to use with check-my-pages.
Hash emails (encrypt)
./ecounter -input=rawfile.csv -output=uniques.txt -encrypt=true
Work from multiple files
To extract unique emails from multiple files you must concatenate the files in one plain .txt file first. Use the command line (cat in Linux or Mac and type in Windows) to join the csv or txt files in a combined.txt file:
cat raw1.csv raw2.csv > combined.txt
Or to do it from all csv files in the all folder:
cat all/*.csv > combined.txt
Please note that the files don't need to be in the same format. They just need to be csv or text files containing, among any information, email addresses. When the email addresses are all in one file, use it normally:
./ecounter -input=combined.txt -output=uniques.txt -encrypt=true
.
*/
package main