There are many ways, but the simplest way is by using Spyware. Spyware is a type of malware that spies on you. It can see what you type, what's on your screen, and even take pictures or record videos on your camera. Using a combination of the first two is a way hackers can obtain data. If the data is in a file, the hackers will simply connect to your computer via IP and remotely access your computer to see your files. Otherwise, a hacker injects a script into your computer and retrieve a person's personal data by passing files through filters.