TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Get the physical location of wireless router from its MAC address

24 点作者 coderrr超过 16 年前

5 条评论

sil3ntmac超过 16 年前
one single cmd wee<p>MYMAC=$(arp -a | awk '/[0-9a-f]:/ { gsub(/^0:|[1-9a-z]0:/, "00:", $4); gsub(/:/, "", $4); print $4; exit; }') &#38;&#38; curl --header "Content-Type: text/xml" --data "&#60;?xml version='1.0'?&#62;&#60;LocationRQ xmlns='<a href="http://skyhookwireless.com/wps/2005'" rel="nofollow">http://skyhookwireless.com/wps/2005'</a> version='2.6' street-address-lookup='full'&#62;&#60;authentication version='2.0'&#62;&#60;simple&#62;&#60;username&#62;beta&#60;/username&#62;&#60;realm&#62;js.loki.com&#60;/realm&#62;&#60;/simple&#62;&#60;/authentication&#62;&#60;access-point&#62;&#60;mac&#62;$MYMAC&#60;/mac&#62;&#60;signal-strength&#62;-50&#60;/signal-strength&#62;&#60;/access-point&#62;&#60;/LocationRQ&#62;" <a href="https://api.skyhookwireless.com/wps2/location" rel="nofollow">https://api.skyhookwireless.com/wps2/location</a><p>had to change 0: to 00: and strip out those :'s
评论 #300818 未加载
forgeman超过 16 年前
curl --header "Content-Type: text/xml" --data "&#60;?xml version='1.0'?&#62;&#60;LocationRQ xmlns='<a href="http://skyhookwireless.com/wps/2005'" rel="nofollow">http://skyhookwireless.com/wps/2005'</a> version='2.6' street-address-lookup='full'&#62;&#60;authentication version='2.0'&#62;&#60;simple&#62;&#60;username&#62;beta&#60;/username&#62;&#60;realm&#62;js.loki.com&#60;/realm&#62;&#60;/simple&#62;&#60;/authentication&#62;&#60;access-point&#62;&#60;mac&#62;YOURMACADDRESS&#60;/mac&#62;&#60;signal-strength&#62;-50&#60;/signal-strength&#62;&#60;/access-point&#62;&#60;/LocationRQ&#62;" <a href="https://api.skyhookwireless.com/wps2/location" rel="nofollow">https://api.skyhookwireless.com/wps2/location</a> &#60;?xml version="1.0" encoding="UTF-8" standalone="yes"?&#62;
评论 #300095 未加载
评论 #302449 未加载
coderrr超过 16 年前
This is related to, but NOT A DUP of, the post incorrectly titled "Google map a cellphone knowing its MAC address" at <a href="http://news.ycombinator.com/item?id=298073" rel="nofollow">http://news.ycombinator.com/item?id=298073</a>. The article intruiged me but I knew there had to be an easier way to send any MAC address to their API since there is no way for them to remotely determine your MAC address. In the blog post I show how.
seiji超过 16 年前
Skyhook knows where your access point is because at one time they drove by and mapped it. Google is probably collecting the same information from their street view vans. All you need is a laptop with a GPS receiver to log coordinates and MAC addresses.<p>So why not do it yourself? <a href="http://wigle.net/" rel="nofollow">http://wigle.net/</a> is a public access point MAC address mapping site run by community contributions of location information.
评论 #300043 未加载
评论 #300093 未加载
aasarava超过 16 年前
Does this mean that if you upgrade your router and put the old one on eBay and sell it to someone across the country, Skyhook's data is inaccurate (until they next drive by)?
评论 #300063 未加载