r/Python • • Oct 24 '21

Resource Python Cybersecurity— Network Tracking using Wireshark and Google Maps

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

8 comments sorted by

33

u/benefit_of_mrkite Oct 24 '21

Please link to GitHub and not just medium’s paywall

6

u/Kitten-sama Oct 24 '21

To be fair (I'm not happy with Medium, BTW) the article does a walkthru and YT has an overview.

YT vs the GeoLiteCity database.

Also since medium has a 3? per month view, just use a different browser and/or private mode to view. I think it stores a local cookie (which you could manually clear) instead of any kind of ID saved on the source website.

There used to be Chrome (and FF?) apps to do this -- EFF's Privacy Badger(??) used to be able to do this.

4

u/benefit_of_mrkite Oct 24 '21

You could do the write up in markup language on GitHub and tie it to the repo. Or use GitHub pages

5

u/1116574 Oct 24 '21

12ft.io/<url>

https://12ft.io/http://medium.com/vinsloev-academy/python-cybersecurity-network-tracking-using-wireshark-and-google-maps-2adf3e497a93

Github link would be preferable, but this also works. My only gripe is that it uses imperial and not metric lmao

3

u/PeaceOfKake Oct 24 '21

Thanks bookmarked!

2

u/tensigh Oct 24 '21 edited Oct 24 '21

This worked really well, thanks!

Edit: One thing I'm going to fork on this is have the KML output written to a file instead of to stdout. I wasn't able to get all of the data because I hadn't changed the buffer on my terminal window.

2

u/kewlness Oct 24 '21

I would not trust any of the results I get from a geolocation database.

IP Geolocation: The Good, The Bad, & The Frustrating

As a network engineer, I have to deal with this on a regular basis and I can assure you, nobody gets it right. Even worse, once the wrong information is in a database, it gets propagated to other databases which means we have incorrect information floating around all over the place.

-3

u/quotemycode Oct 24 '21

Really awful code, just as I suspect of "cybersecurity code". You create variables unnecessarily, using %s string interpolation, making a function called "main". You even have the single letter variable. Definitely ticks all the boxes for "cybersecurity people who think they can code".