Writing a TCP port scanner in Go: goroutines, timeout, and CSV report
Summary
This article walks through building a TCP port scanner in Go. It explains how to read target lists, resolve hostnames to IPv4 addresses, and scan ports concurrently with goroutines and a semaphore. It also shows how the scanner classifies ports as open, closed, or filtered using timeouts. The piece finishes by writing the scan results to a CSV report and sorting the output for easier review.
Classifications
industries
No industries detected
applications
Collaboration & Communication
AskAI Classifications
Labels
Messaging Software
Developer Tools
API Management
Linked Companies
Telegram Messenger
$1M to $5M