Define scanning and why it’s considered one of the most important phases of intelligence gathering for an attacker/hacker

Define scanning and why it’s considered one of the most important phases of intelligence gathering for an attacker/hacker

Define scanning and why it’s considered one of the most important phases of intelligence gathering for an attacker/hacker.

Also discuss what kind of information is collected through scanning and explain why it is important to hackers?