A port scan can tell a hacker what services are running, such as HTTP and FTP.