Last active
November 10, 2018 03:51
-
-
Save Justsoos/c255c9758885124de1250df1c291a2db to your computer and use it in GitHub Desktop.
CIL of taobao ipinfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ip=$(getent hosts $1 | head -n1 | cut -d " " -f1) | |
[ -z $ip ] && ip=$1 | |
curl -s -H 'HOST:ip.taobao.com' "http://139.224.241.114/service/getIpInfo.php?ip=$ip" | jq '.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment