How do websites get hacked?

When a personal computer is hacked, the attack could include stealing saved information for websites and logins. This gives the hacker access to online resources using your own credentials.