Skip to content

Instantly share code, notes, and snippets.

@altmas5
Created January 26, 2019 02:11
Show Gist options
  • Save altmas5/0c8d91f0792decab34fda4bce3ec67b1 to your computer and use it in GitHub Desktop.
Save altmas5/0c8d91f0792decab34fda4bce3ec67b1 to your computer and use it in GitHub Desktop.
Spammer hit count by country
$ for ip in `cat ips.txt`; do geoiplookup $ip| head -n 1| awk '{print $4" "$5" "$6" "$7'} >> countries.txt; done;
$ cat countries.txt | sort | uniq -c | sort -nr
334 MX, Mexico
183 AR, Argentina
178 IN, India
126 ZA, South Africa
102 CL, Chile
98 PK, Pakistan
91 CO, Colombia
75 CN, China
66 ES, Spain
59 EC, Ecuador
56 VE, Venezuela
47 TR, Turkey
45 RU, Russian Federation
38 VN, Vietnam
35 CR, Costa Rica
32 KE, Kenya
32 IT, Italy
30 FR, France
28 PR, Puerto Rico
27 MU, Mauritius
27 BO, Bolivia
26 NL, Netherlands
26 KR, Korea, Republic of
26 GE, Georgia
24 ZW, Zimbabwe
24 LK, Sri Lanka
22 GR, Greece
21 GT, Guatemala
20 MY, Malaysia
18 HN, Honduras
17 PT, Portugal
17 BY, Belarus
16 UA, Ukraine
16 PL, Poland
16 IP Address not found
16 HU, Hungary
16 CH, Switzerland
16 AZ, Azerbaijan
15 TH, Thailand
15 AT, Austria
15 AE, United Arab Emirates
13 IE, Ireland
13 CZ, Czech Republic
12 SV, El Salvador
12 PA, Panama
12 EE, Estonia
12 AU, Australia
11 RS, Serbia
11 PE, Peru
10 RO, Romania
10 NA, Namibia
10 DO, Dominican Republic
10 BD, Bangladesh
9 BE, Belgium
8 TW, Taiwan
8 PH, Philippines
8 LB, Lebanon
8 ID, Indonesia
8 HK, Hong Kong
7 UY, Uruguay
7 LV, Latvia
7 EG, Egypt
6 SI, Slovenia
6 SG, Singapore
6 NP, Nepal
6 KZ, Kazakhstan
6 KW, Kuwait
6 DK, Denmark
6 BA, Bosnia and Herzegovina
5 NO, Norway
5 LU, Luxembourg
5 IL, Israel
4 TZ, Tanzania, United Republic
4 TN, Tunisia
4 PY, Paraguay
4 NZ, New Zealand
4 MK, Macedonia
4 JP, Japan
4 IR, Iran, Islamic Republic
4 CY, Cyprus
4 BG, Bulgaria
4 BB, Barbados
4 AL, Albania
4 AG, Antigua and Barbuda
3 SA, Saudi Arabia
3 BR, Brazil
2 UZ, Uzbekistan
2 TT, Trinidad and Tobago
2 SK, Slovakia
2 SE, Sweden
2 NI, Nicaragua
2 NG, Nigeria
2 MZ, Mozambique
2 MT, Malta
2 ME, Montenegro
2 LT, Lithuania
2 JM, Jamaica
2 HR, Croatia
2 FJ, Fiji
2 CU, Cuba
2 BW, Botswana
2 AO, Angola
2 AM, Armenia
2 AD, Andorra
1 KY, Cayman Islands
1 BS, Bahamas
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment