We can classify hackers into categories based on their intentions. If the aim of the hacker is to damage or to steal information, then they are classed as a black hat hacker. If it is a security professional with the goal of securing a systems, then they are classed as a white hat hacker. The description is as follows:
Black hat hackers: These are individuals or groups that use their computer skills to gain access to information using malicious techniques, for various reasons, for example, financial gain.
White hat Hackers: These are information security professionals. Their main role is to protect information systems against black hat hackers.
Gray hat hackers: These work both offensively and defensively.
Script kiddies: Usually, these are unskilled individuals who use tools and scripts, without knowing how they work.
Hacktivists: These are hackers with a political agenda or defenders of a cause.