Hackers use a port scanner attack to learn the weak points or vulnerabilities in a business’s network. When hackers send a message to a port number, the response they receive tells them whether it is open and helps them discover potential weaknesses.