Visualize real-time network traffic on a world map using this tool! This tool captures packets, identifies their geographical origin and/or destination, and plots them as interactive lines on a 3D globe (Google Earth), showing whether they are Incoming, Outgoing, or Transit connections.
The goal of this project is to analyze and visualize IP network traffic to understand where data is traveling across the globe. It helps:
- Students learning computer networking
- Security enthusiasts monitoring traffic behavior
- Anyone curious about where their internet packets go
Component Usage Python 3.1 Programming language WireShark(with Tshark) Capture packets GeoLite2 Database (MaxMind) IP geolocation Google Earth (Desktop/Pro) Visualization of connections
- Captures and visualizes real network packets
- Marks lines as:
- Outgoing packets
- Incoming packets
- Transit packets (not involving you)
- Clickable tooltips showing:
- Location of source & destination
- Packet direction
- IP addresses involved
- Intelligent filtering of private/internal IPs
- Batch processing for improved speed
- Shows a summary report:
- Total packets processed
- Count of unknown locations
- Local packet counts
(for Windows)
Visit the official Python website (www.python.org/downloads) and download the latest stable Windows installer (.exe file). Double-click the downloaded .exe file. Follow the prompts to setup your python.
In Command Prompt, type: pip install dpkt
Go to the official WireShark Website (https://www.wireshark.org/download.html) and download compatible .exe file. Complete Installation and crucially tick the Tshark checkbox when prompted.
Options:
- https://github.com/P3TERX/GeoLite.mmdb
- (Offical Website) (Requires a free MaxMind Account) https://dev.maxmind.com/geoip/geolite2-free-geolocation-data/
- (My Drive Link) https://drive.google.com/drive/folders/164uBi78hZSvKKyNz8GOEyi2uAdiVPJMp?usp=drive_link
Download compatible version from: https://www.google.com/earth/versions/#earth-pro
- Connect to the internet.
- Capture on WireShark for a sample (try searching various websites for diversified result). Save as capture.pcapng file.
- Run the code on Python/VSCode. (be extra sure to keep all the above downloaded tools in the same folder and also change the code according to your system (database folder location and your own IP address))
- You will get a terminal output + a network_traffic.kml file.
- Open Google Earth Pro, upload your .kml file and get an interactive visual of your traffic.
- Show packet type (TCP/UDP/HTTPS/DNS)
- Live refreshing map
- Alert system for suspicious IPs
- Adding a colour scheme for various types of packets
Hello! I am Shreya Ghoshal, currently a college student, aiming to sharpen my skills by creating useful tools for thw world. While I have just started, I am deeply passionate about data science. I have been coding since 8th grade and now want to create a career out of Computer Science. If you want to connect, my LinkedIn is: www.linkedin.com/in/shreya-ghoshal-94aab0261
Star the repository and share it! Contributions, suggestions, and improvements are highly appreciated! 🌟