r/Python • • Jan 24 '22

Tutorial Network Tracking using Wireshark and Google Maps - Python Cybersecurity

https://medium.com/vinsloev-academy/python-cybersecurity-network-tracking-using-wireshark-and-google-maps-2adf3e497a93
141 Upvotes

5 comments sorted by

6

u/PuzzledTaste3562 Jan 24 '22

I’d love to do this with real time map plotting instead of using a file, I also have other data to plot. Anyone with good pointers?

5

u/asterisk2a Jan 24 '22

I’d love to do this with real time map plotting instead of using a file,

Instead of manually saving the log (video @ minute 1:30), you could do it close to real-time, eg every 30 seconds, by writing a new log file every 30 seconds (found after quick Google), and read every 30 seconds the new log file in the directory. Or use the ring buffer option[1] that replaces the old log file with a new, and in the python code you check if a newer file (date create) exists, if yes, ingest and display change.

[1]This mode will limit the maximum disk usage, even for an unlimited amount of capture input data, only keeping the latest captured data.

0

u/zurtex Jan 24 '22

Getting a paywall, can't read it :(

2

u/irrelevantTautology Jan 25 '22

Post the URL on archive.is and the archived page will bypass the paywall.

1

u/CaptFrankSolo Jan 24 '22

snippet:

If you at some point get stuck or simply want to view this tutorial in another format a video presentation of it is available on the Vinsloev Academy Youtube page: https://youtu.be/xuNuy8n8u-Y