【问题标题】:Google maps - Facebook Places fake location using JSONGoogle 地图 - Facebook Places 使用 JSON 的虚假位置
【发布时间】:2011-07-10 13:01:54
【问题描述】:

我正在对基于位置的社交网络进行一些研究,并试图通过修改 google 返回到 Firefox 浏览器的 JSON 来查看是否可以伪造位置。

首先,我在 firefox 浏览器中输入 about:config 并设置好所有配置设置,并将 geo.wifi.uri 的参数更改为返回 JSON 位置的页面。

 <?php 

 header('Content-type: application/json');

 $longitude = "-73.98626";

 $latitude = "40.75659";

 $accuracy = "10";

 $geoArray = array( 'location'=>array(

         'latitude'=>$latitude,

         'longitude'=>$longitude,

         'accuracy'=>$accuracy ) ) ;

 $geoJson = json_encode( $geoArray ) ;

 echo $geoJson ;

 ?>

它已经到了一个阶段,我可以选择一个地方并出现签入按钮,但是当我按下它时,它只是说正在加载..

我正在使用 firefox 用户代理 iphone 3.0 设置来获取签入选项

【问题讨论】:

    标签: php json google-maps geolocation


    【解决方案1】:

    您的伪造位置是否在这样的情况下工作:http://html5demos.com/geo?在您的 JSON 丢失的预期响应中有一个 access_token 字段:尝试添加它。您可能还想添加一个address 字段。这是您需要的结构:

        {"location":
            {"latitude": 40.75659,
             "longitude": -73.98626,
             "address":{"country":"United States","country_code":"US","region":"<statename>",
        "city":"<city name>","street":"<street name>","street_number":"<number>","postal_code":"<zip>"},"accuracy":10.0},
    "access_token":"<honestly not sure what this is or how it is interpreted>"}
    

    【讨论】:

      猜你喜欢
      • 2018-08-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多