An open API service indexing awesome lists of open source software.

https://github.com/p3rception/geopy

// wireshark traffic visualization
https://github.com/p3rception/geopy

Last synced: 7 months ago
JSON representation

// wireshark traffic visualization

Awesome Lists containing this project

README

          



GeoPy is a Python script that generates a KML file based on network traffic data from a Wireshark pcap file. It uses IP geolocation to map the network connections and creates a KML file that can be uploaded to Google My Maps for visualization.

## Installation

1. Clone the repository:

```bash
git clone https://github.com/p3rception/GeoPy.git
```

2. Navigate to the project directory:

```bash
cd GeoPy
```
3. (Optional) Create and activate a virtual environment.

```bash
# Creation
python -m venv venv

# Activation
source venv/bin/activate # Unix
venv\Scripts\activate.bat # Windows
```

4. Install the required dependencies:

```bash
pip install -r requirements.txt
```
5. Download GeoLiteCity database to translate IP addresses into a Geo location(longitude & latitude). The database can be downloaded here: https://github.com/mbcc2006/GeoLiteCity-data

6. Save Wireshark captured data in .pcap format.

## Usage

1. ```python main.py ```
2. Upload the generated KML file to [Google My Maps](https://www.google.com/mymaps).
3. Result:

## Author

Dimitris Pergelidis ([p3rception](https://github.com/p3rception))