Member-only story
Python Cybersecurity — Build a Port Scanner
Learn how to build a simple Python script that can be used to scan for open ports on a network. This tutorial covers the implementation steps needed to build the script using Python Programming. In case you’re new to Python and need a formal introduction to the language, we have made a full Python course on Youtube: https://youtu.be/L3v5tu_ang4
View our newest medium story:
Getting into Cybersecurity in 2023
https://vinsloev.medium.com/getting-into-cybersecurity-in-2023-bb16378c6f36
The content of this article is also available in video format on the Vinsloev Academy YouTube page: https://youtu.be/0tZhMZn78Yw
Learn the skills needed to get a career within Cybersecurity. Vinsloev Academy provide educational content from around the web: https://vinsloev.com
Book — Violent Python: A Cookbook for Hackers, Forensic Analysts, Penetration Testers and Security Engineers: https://amzn.to/3RWAjyY
Before we get started with the code, we need to import the socket Python library. With the right import in place we can create the two needed methods for this script to work.
Port Scan