命令:

1
2
3
curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \
'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=000000000000:-65&app=ymetro'

使用方法,将url中的000000000替换为要查询的mac地址

例子

1
2
curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \
'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=801F0252BC64:-65&app=ymetro'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
─[parrot@parrot]─[~]
└──╼ $curl -i -s -k -X 'POST' -H 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0.1; Nexus 5 Build/LRX22C)' -H 'Content-Type: application/x-www-form-urlencoded' \
> 'http://mobile.maps.yandex.net/cellid_location/?clid=1866854&lac=-1&cellid=-1&operatorid=null&countrycode=null&signalstrength=-1&wifinetworks=801F0252BC64:-65&app=ymetro'
HTTP/1.1 200 Ok
Server: nginx/1.8.1
Date: Sun, 12 Nov 2017 08:47:27 GMT
Content-Type: text/xml; charset=utf-8
Content-Length: 192
Connection: keep-alive
X-YaRequestId: 2c7b6bbf-1fb1-1bab-d136-a47b149b6c0f

<?xml version="1.0" encoding="utf-8"?>
<location source="FoundByWifi">
<coordinates latitude="56.1088104" longitude="47.1786842" nlatitude="56.1096986" nlongitude="47.1802770" />
</location>


经纬度即为:

latitude="56.1088104" longitude="47.1786842"

因为是国外的数据库,国内定位并不精准,或者根本查不到


2017-11-12
Contents

⬆︎TOP