nmap -- [ip-geolocation-maxmind]

插件ip-location-maxmind,可以帮助nmap获取ipgeo信息。类似的插件有(ip-geolication-geobytes, ip-geolocation-ipinfodb, traceroute-geolocation)

官方说明:
http://nmap.org/nsedoc/scripts/ip-geolocation-maxmind.html

数据库:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

安装:
cd/usr/local/share/nmap/nselib/data/
wgethttp://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gzip -d GeoLiteCity.dat.gz

示例: (如果脚本执行过程中有错误,请自行修改脚本更正)

nixawk@gnu:~$ nmap -v -Pn --script ip-geolocation-maxmind  8.8.8.8
 
Starting Nmap 6.40 ( http://nmap.org ) at 2014-07-28 04:41 CST
NSE: Loaded 1 scripts for scanning.
NSE: Script Pre-scanning.
Initiating Parallel DNS resolution of 1 host. at 04:41
Completed Parallel DNS resolution of 1 host. at 04:41, 0.00s elapsed
Initiating Connect Scan at 04:41
Scanning google-public-dns-a.google.com (8.8.8.8) [1000 ports]
Discovered open port 53/tcp on 8.8.8.8
Completed Connect Scan at 04:41, 15.16s elapsed (1000 total ports)
NSE: Script scanning 8.8.8.8.
Initiating NSE at 04:41
Completed NSE at 04:41, 0.00s elapsed
Nmap scan report for google-public-dns-a.google.com (8.8.8.8)
Host is up (0.21s latency).
Not shown: 999 filtered ports
PORT   STATE SERVICE
53/tcp open  domain
 
Host script results:
| ip-geolocation-maxmind:  
| 8.8.8.8
|   coordinates (lat,lon): 38,-97
|_  , United States

 
NSE: Script Post-scanning.
Read data files from: /usr/local/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 15.22 seconds

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值