In the part of the IPv4 address of the text such as logs You can insert the country name and country code.
Use the iptocc command published at the following URL.
[Commentary] http://qiita.com/chocolatampcoffee/items/9887c5ee3a528ba43720
[Main body] https://github.com/INC-i/IPStaff
1 Command 1 | ./iptocc
2 iptocc IPv4 address
SRC=85.25.43.94 SRC=74.42.63.123 SRC=74.42.63.123 SRC=27.118.26.131 SRC=66.240.192.138 SRC=27.118.26.131 SRC=14.157.226.199 SRC=14.157.226.199 SRC=14.157.226.199 SRC=216.218.206.121
If you pass the above output to the iptocc command, it will look like this:
SRC=85.25.43.94(DE:Germany) SRC=74.42.63.123(US:United States) SRC=74.42.63.123(US:United States) SRC=27.118.26.131(VN:Viet Nam) SRC=66.240.192.138(US:United States) SRC=27.118.26.131(VN:Viet Nam) SRC=14.157.226.199(CN:China) SRC=14.157.226.199(CN:China) SRC=14.157.226.199(CN:China) SRC=216.218.206.121(US:United States)
With the -j option, the country name will be in Japanese.
SRC = 85.25.43.94 (DE: Germany) SRC = 74.42.63.123 (US: United States) SRC = 74.42.63.123 (US: United States) SRC = 27.118.26.131 (VN: Vietnam) SRC = 66.240.192.138 (US: United States) SRC = 27.118.26.131 (VN: Vietnam) SRC = 14.157.226.199 (CN: People's Republic of China | China) SRC = 14.157.226.199 (CN: People's Republic of China | China) SRC = 14.157.226.199 (CN: People's Republic of China | China) SRC = 216.218.206.121 (US: United States)
IP: 8.8.8.8 CountryCode: US Country: United States
IP: 8.8.8.8 CountryCode: US Country: United States
Recommended Posts