# Geowifi | Search WiFi Geolocation Data By BSSID And SSID On Different Public Databases

**URL:** <https://onehack.st/t/geowifi-search-wifi-geolocation-data-by-bssid-and-ssid-on-different-public-databases/216342>\
**Category:** Tools & Scripts\
**Tags:** tools, business, windows\
**Created:** [March 10, 2022, 8:20am UTC](https://onehack.st/t/geowifi-search-wifi-geolocation-data-by-bssid-and-ssid-on-different-public-databases/216342 "2022-03-10T08:20:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [March 10, 2022, 8:20am UTC](https://onehack.st/t/geowifi-search-wifi-geolocation-data-by-bssid-and-ssid-on-different-public-databases/216342/1 "2022-03-10T08:20:46Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/e/b/ebac1411402444e33ed28f154a291f28c1f71d89.png)

Search WiFi geolocation data by BSSID and SSID on different public databases.

### 💾 Databases:

- [Wigle](https://wigle.net/)
- Apple
- [OpenWifi](https://openwifi.su/)
- [Milnikov](https://www.mylnikov.org/)

## ✔ Prerequisites

- [Python3](https://www.python.org/download/releases/3.0/).
- In order to display emojis on **Windows** , it is recommended to install the [new Windows terminal](https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701).
- ⚠ In order to use the Wigle service it is necessary to [obtain an API](https://api.wigle.net/) and configure the `utils/API.yaml` file replacing the value of the “ **wigle\_auth** ” parameter for the “ **Encoded for use** ” data [provided by Wigle](https://wigle.net/account). **This is necessary for searching by SSID**.

## 🛠 Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install requirements.

python3 -m pip install -r requirements.txt

## 🔎 Usage

```auto
usage: geowifi.py [-h] (-s SSID | -b BSSID) [-j] [-m]

optional arguments:
  -h, --help Show this help message and exit
  -s SSID, --ssid SSID Search by SSID
  -b BSSID, --bssid BSSID Search by BSSID
  -j, --json Json output
  -m, --map Map output

```

- Search by BSSID:

```auto
python3 geowifi.py -b BSSID

```

- Search by SSID:

```auto
python3 geowifi.py -s SSID

```

It is possible to export the results in json format using the `-j` parameter and show the locations on html map using `-m`.

### 🗺 Map output example

[![Map output](https://camo.githubusercontent.com/b3470a1b7bf6d447dd38bb04020784a3832b736fabfc5840fc326177c6f8daf7/68747470733a2f2f696d6775722e636f6d2f724442586d58762e706e67)](https://camo.githubusercontent.com/b3470a1b7bf6d447dd38bb04020784a3832b736fabfc5840fc326177c6f8daf7/68747470733a2f2f696d6775722e636f6d2f724442586d58762e706e67)

### 💾 Json output example

{ “data”:{ “bssid”:“A0:XX:XX:XX:6F:90”, “vendor”:“TP-LINK TECHNOLOGIES CO.,LTD.”, “mac\_type”:“MA-L”, “wigle”:{ “lat”:00.000908922099, “lon”:00.000945220028 }, “apple”:{ “lat”:“not\_found”, “lon”:“not\_found” }, “openwifi”:{ “lat”:00.000808900099, “lon”:00.000845500028 }, “milnikov”:{ “lat”:“not\_found”, “lon”:“not\_found” } } }

## 📢 Mentions

- This project uses some of the research and code used at [iSniff-GPS](https://github.com/hubert3/iSniff-GPS).
- Thanks to [Micah Hoffman](https://twitter.com/WebBreacher) for his attention and answers to my questions.
- Thanks to [kennbro](https://twitter.com/kennbroorg) for lending me his scrupulous eyes to give me feedback.

## GitHub:

> **[GitHub - GONZOsint/geowifi: Search WiFi geolocation data by BSSID and SSID on...](https://github.com/GONZOsint/geowifi)**
>
> Search WiFi geolocation data by BSSID and SSID on different public databases.
