Naive implementation of port scanner