The kind of attack that the hacker is conducting is known as a "port scanning" attack. In a port scanning attack, the hacker scans numerous IP addresses randomly on the internet to identify vulnerable targets. This allows them to discover open ports or services on the target system that can be exploited for unauthorized access or further attacks.