There are three groups of hackers, not two or one like most people think. They are called “white-hat”, “black-hat”, and “grey-hat”.
The "white-hat" hackers are people who are very good at computer programming, networking, or other related computer functions and love to share their knowledge with other people. They use their computer skills and knowledge to access computer systems to warn us that the systems are vulnerable and need to be upgraded before the “black-hat” hackers have a chance to break into the systems and damage things.
For example, a couple of months ago there was a video and a conference hosted in Las Vegas showing how to hack a Toyota Prius'. In the video, Chris Valasek, director of security intelligence at IOActive, and Charlie Miller, a security engineer at Twitter, hacked into the Prius' computer system via a laptop, while the car was being driven by another person. Chris and Charlie pulled some basic pranks: honking the horn, messing with the digital fuel gage and seat belt, or making the speedometer read 199 mph and then stopping the car. By doing this, it would trigger other systems like the airbag deployment system because the car would be under the same conditions as a crash. Therefore, what Chris and Charlie did was to inform us of security risks and not intentionally hurting us.
On the other hand, the “black-hat” hackers are people who intentionally use their expert computer skills and knowledge to gain unauthorized access to computer systems, corporations, or networks with malicious intent. Oftentimes the black-hat hackers are involved in criminal activities. All they do is seek out to damage and destroy the computer infrastructures. As we heard, a lot about black-hackers who make devices that can read credit card or ATM card numbers at the ATM machines and/or gas stations. Some of these hackers do their work across the internet by breaking through firewalls, or start a DDoS on someone's website.
The "grey-hat" hacker group falls in the “grey area” which is between black-hat and white-hat. One of the reasons grey-hat hacker would categorize himself “grey” because he wants to distance himself from black-hat and white-hat hackers. Grey-hat hackers can do both good and bad things, but they usually carry out good intentions. However, some of them hack because they want to show their disobedience to the system.
Picture from buzzinbiz.com