Hello Danny,
Many thanks for creating this script!
However, I compared the IptoCountry.csv's from the URL in your script, to the URL used in sk120261, it seems that both have a different md5sum:
d3dd4e3df9ae369afb6e2a2dbb41b482 IpToCountry.csv
21172b2bf3126b1af58fd27d0e4033b6 IpToCountry.csv
Furthermore, this Russian IP was showing a German flag in the Smart Console logs: 193.201.9.238.
I did a calculation on the IP using sk94364, did a lookup in both .csv's:
238 + (9 * 256) + (201 * 256 * 256) + (193 * 256 * 256 * 256) = 3251177966
3251177472,"3251178239","iana","410227200","RU","RUS","Russia" --> IpToCountry.csv from sk106216
3251177472,"3251179519","iana","410227200","DE","DEU","Germany" --> IpToCountry.csv from the one-liner script
The link used in the SK does not work in the one-liner script. Is it possible for you to update your one-liner script with the correct URL?
EDIT: I just saw that you used the URL from a post by a Check Point employee. So it seems that the latest IpToCountry.csv Check Point has provided is not correct. I will let them know in a TAC case we have in regards to wrong country flags showing in Smart Console.
Kind regards,
Demis Terborg