Hijacking a webcam remotely

Warning: Do not use this for unauthorized activity. Duh. 

Step 1: Make sure that the victim machine has a camera, and that it's enabled. Then, open Metasploit in Kali. 


Step 2: Select an exploit to use that your target machine is vulnerable to. I already had knowledge of this vulnerability through a Nessus scan that I did for an earlier assignment. 




Step 3: Run show options to see what you need to set in order to run the exploit. 




Step 4: In this case, it looks like we just need to set RHOSTS. Set RHOSTS to the IP of the vulnerable machine. 

If you need the IP, use nmap. I was working with a practice VM on my local subnet, so I could just scan that:


Next, set RHOSTS to the IP:



Step 5: Run exploit in order to get a meterpreter session: 




Step 6: Run webcam_list:



If you can't see any webcams and you're on a VM, go to the victim VM and connect the webcam -- it may still be connected to your host. The next picture shows what it looks like for me after connecting. You may need to restart both the victim machine and metasploit. 

In the real world, you obviously aren't going to be hacking virtual machines very often, so you should have direct access to the webcam and this step will not be possible to execute anyway -- unless you have physical access to the victim machine itself. 




Step 7: Run webcam_snap to get a picture. Since we only have one webcam, we don't have to specify which -- meterpreter will simply default to it. 


Oh look...It's my room. :V 

What have we learned from this? If your machine a) has a webcam, and b) has a known vulnerability that can be accessed via Metasploit, then someone is probably going to be able to access your camera. 



Step 8: Try not to think about how creepy it is that some random person can access your webcam if they have the right information. :D (Don't worry, I only did this for a school assignment, and it was my own webcam after all.) I mean, I don't care that much if some rando on the internet wants to admire my beauty, but I think it's a bit difficult to run a webcam hack without becoming slightly uncomfortable in regards to how easy it is. 

But then again, whatever. 



Source



Comments

Popular posts from this blog

Unleashing my inner Disney Princess ✩₊˚.⋆☾⋆⁺₊✧ at the 2024 Disney Princesses Half Marathon

The 20-something types of Computer Science majors

The Evenstar