首先说明一下,此工具可以根据你指定的IP或网址,查询出国家、城市、经度、纬度、时区等详细信息。
这个工具最重要的就是可以查询出经纬度这个信息了,并且会直接提供给你此经纬度所在位置的谷歌地图。当然根据IP地址定位的在线工具也有很多,但是通常只能精确到某一城市,但是该工具会根据查询到的经纬度精确到街道。
我感觉还是有必要说明一下,你查询的IP只是所用流量运营商出口的地址,可能与真实位置有偏差,这是很正常的。
下面开始安装并使用。
需要python3运行环境(kali已经自带)1
root@kali:~# git clone https://github.com/maldevel/IPGeoLocation
安装pip3,一会需要用pip3安装所需的库函数1
2root@kali:~# apt-get install python3-pip
root@kali:~# pip3 --version ##验证是否已经成功安装pip3
安装所需库函数1
2root@kali:~# cd IPGeoLocation/
root@kali:~/IPGeoLocation# pip3 install -r requirements.txt --user
选项说明: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$ python3 ipgeolocation.py
usage: ipgeolocation.py [-h] [-m] [-t TARGET] [-T file] [-u User-Agent]
[-U file] [-g] [--noprint] [-v] [--nolog] [-x PROXY]
[-X file] [-e file] [-ec file] [-ex file]
IPGeolocation 2.0.4
--[ Retrieve IP Geolocation information from ip-api.com
--[ Copyright (c) 2015-2016 maldevel (@maldevel)
--[ ip-api.com service will automatically ban any IP addresses doing over 150 requests per minute.
optional arguments:
-h, --help show this help message and exit
-m, --my-ip Get Geolocation info for my IP address.
-t TARGET, --target TARGET
IP Address or Domain to be analyzed.
-T file, --tlist file
A list of IPs/Domains targets, each target in new line.
-u User-Agent, --user-agent User-Agent
Set the User-Agent request header (default: IP2GeoLocation 2.0.3).
-U file, --ulist file
A list of User-Agent strings, each string in new line.
-g Open IP location in Google maps with default browser.
--noprint IPGeolocation will print IP Geolocation info to terminal. It is possible to tell IPGeolocation n
ot to print results to terminal with this option.
-v, --verbose Enable verbose output.
--nolog IPGeolocation will save a .log file. It is possible to tell IPGeolocation not to save those log
files with this option.
-x PROXY, --proxy PROXY
Setup proxy server (example: http://127.0.0.1:8080)
-X file, --xlist file
A list of proxies, each proxy url in new line.
-e file, --txt file Export results.
-ec file, --csv file Export results in CSV format.
-ex file, --xml file Export results in XML format.
我以自己博客为例演示简单的操作1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23root@kali:~/IPGeoLocation# python3 ipgeolocation.py -t bingyublog.com
IPGeolocation 2.0.4
--[ Retrieve IP Geolocation information from ip-api.com
--[ Copyright (c) 2015-2016 maldevel (@maldevel)
--[ ip-api.com service will automatically ban any IP addresses doing over 150 requests per minute.
Target: bingyublog.com
IP: 151.101.41.147
ASN: AS54113 Fastly
City: San Jose
Country: United States
Country Code: US
ISP: Fastly
Latitude: 37.3388
Longtitude: -121.8914
Organization: Fastly
Region Code: CA
Region Name: California
Timezone: America/Los_Angeles
Zip Code: 95141
Google Maps: http://www.google.com/maps/place/37.3388,-121.8914/@37.3388,-121.8914,16z
我们复制此链接,在浏览器中打开即可查看地理位置了,还可以切换平面图和3D地图。
扫码进群,我等待你的加入
本文作者:冰羽
本文地址: https://bingyublog.com/2018/05/24/一款强大的IP定位工具/
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!