Concurrent port scanner in Haskell

Posted on
Tags: haskell, portscan

In another draft of his article about Scheme programming, jacob shows how he approaches the problem of writing a TCP port scanner. That seemed like a fun problem, and so I whipped up this version in one of my favorite programming languages, Haskell:

Example usage:

$ ./Portscan 1 1000
21 ftp
22 ssh
80 http
111 sunrpc
139 netbios-ssn
443 https
445 microsoft-ds
631 ipp

Care to give it a try in your favorite programming language?