How to Code: Port Scanner in Python

This article is geared towards beginners in networking/security who wish to learn a bit more about how port scanning works and how to write their own custom port scanning utility in Python for diagnosing/testing.

For this tutorial, we need to get familiar with a specific Python library: socket (documentation found here: https://docs.python.org/3/library/socket.html)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jacob Latonis

Jacob Latonis

I run a lot. I do cybersecurity things. I am heavily invested in mechanical keyboards ⌨️.