I wanted to create a simple port scanner with Python to grow my understanding of python, networking and cybersecurity. Although NMAP is the gold standard for port scanning, it is still entirely feasible and enlightening to use python for this purpose. Future edits will include threading to speed up the port scanner.
- Python
- PyCharm Community Edition 2022.3.3
As can be seen, this port scanner is rather slow (although port scanning is generally a slow process). A future edit will institute threading to speed it up somewhat. It would also be a good idea to edit the code to narrow the range of ports to be scanned, such as between the common ports of 1-1024, for example.