localhost

sorting the wheat from the chaff

Where do you live?

Just noticed this funny thing from a DEFCON talk of 9 years ago.

#!/bin/bash

MAC="<your-router-mac-address>"
TK="<a-free-google-api-token>"

curl -X POST -H "Content-Type: application/json" \
    "https://www.googleapis.com/geolocation/v1/geolocate?key=$TK" \
        -d \'{
            \"macAddress\": \""$MAC"\",
            \"signalStrength\": -43,
            \"age\": 0,
            \"channel\": 11,
            \"signalToNoiseRatio\": 0
        }\'

Comments closed for this article