Activating Somebody’s Webcam Through Mitmf + beEF-xss + Metasploit.

Hi friends, I’m going to talk about how a hackers can remotely access your computer to spy on you.

Man In The Middle Attacks


This picture above shows you how a man in the middle attack works, In order to do a middle in the man attack, you need to have 3 clients the gateway – attacker – target. You simply poison the gateway and the target and all the communications go directly to you.

Let’s have a look at a tool called Mitmf because this is what I’m going to use in this demo, you could use Ettercap but it’s totally up to you.


Most modern browsers use Hsts (HTTP Strict Transport Security)  but this can be bypassed.

Installing Mitmf

To install Mitmf you simply type the command below and it will go ahead and install the required dependencies, as well as the tool.

apt-get install mitmf

A Problem That Might Occur

2016-03-31 13:23:21 [ProxyPlugins] Exception occurred in hooked function Traceback (most recent call last): File “/root/Desktop/MITMf-master.4/core/”, line 112, in hook a = f(args) File “/root/Desktop/MITMf-master.4/plugins/”, line 65, in response mime = response.headers[‘Content-Type’] AttributeError: ClientRequest instance has no attribute ‘headers’

This is an error with a python module called Twisted.

This problem can be fixed really easily, just type in these commands and the problem will go away.

Now it should be fixed 🙂

This was fixed by ho1tz, cheers dude.

Watch this Video To Learn


  • Have an ad blocker
  • Use a VPN
  • Have antivirus systems such as Avast or AVG
  • Keep your software up to date.
  • Don’t connect to open wireless networks
  • Use browser plugins such as HTTPS Everywhere or ForceTLS

DO NOT do this to somebody’s computer without permission, I am not to blame for any illegal activities you commit this is for educational purposes only.

Please comment if you have any difficulties, I’m here to help.

Leave a Reply