• B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

Ошибка запуска mitmf

06.09.2019
164
1
BIT
0
Добрый день! Как исправить?
Код:
root@kali:~/MITMf# python mitmf.py -i eth0 --spoof --arp --gateway 192.168.88.1
                                                    
 __  __   ___   .--.          __  __   ___              
|  |/  `.'   `. |__|         |  |/  `.'   `.      _.._  
|   .-.  .-.   '.--.     .|  |   .-.  .-.   '   .' .._| 
|  |  |  |  |  ||  |   .' |_ |  |  |  |  |  |   | '     
|  |  |  |  |  ||  | .'     ||  |  |  |  |  | __| |__   
|  |  |  |  |  ||  |'--.  .-'|  |  |  |  |  ||__   __|  
|  |  |  |  |  ||  |   |  |  |  |  |  |  |  |   | |     
|__|  |__|  |__||__|   |  |  |__|  |__|  |__|   | |     
                       |  '.'                   | |     
                       |   /                    | |     
                       `'-'                     |_|

[*] MITMf v0.9.8 - 'The Dark Side'
|
|_ Net-Creds v1.0 online
|_ Spoof v0.6
|  |_ ARP spoofing enabled
Traceback (most recent call last):
  File "mitmf.py", line 139, in <module>
    from core.sslstrip.StrippingProxy import StrippingProxy
  File "/root/MITMf/core/sslstrip/StrippingProxy.py", line 20, in <module>
    from ClientRequest import ClientRequest
  File "/root/MITMf/core/sslstrip/ClientRequest.py", line 37, in <module>
    from ServerConnection import ServerConnection
  File "/root/MITMf/core/sslstrip/ServerConnection.py", line 28, in <module>
    from user_agents import parse
ImportError: No module named user_agents
root@kali:~/MITMf#
 
06.09.2019
164
1
BIT
0
Добрый день!
Код:
root@kali:~/MITMf# pip install -r requirements.txt
Collecting git+https://github.com/kti/python-netfilterqueue (from -r requirements.txt (line 1))
  Cloning https://github.com/kti/python-netfilterqueue to /tmp/pip-req-build-j0il0axa
Requirement already satisfied (use --upgrade to upgrade): NetfilterQueue==0.8.1 from git+https://github.com/kti/python-netfilterqueue in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied: pyinotify in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (0.9.6)
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (2.6.1)
Requirement already satisfied: pyasn1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (0.4.2)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (2.6.1)
Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (6.2.1)
Requirement already satisfied: netaddr in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (0.7.19)
Requirement already satisfied: scapy in /usr/lib/python3/dist-packages (from -r requirements.txt (line 8)) (2.4.3)
Requirement already satisfied: dnslib in /usr/lib/python3/dist-packages (from -r requirements.txt (line 9)) (0.9.12)
Requirement already satisfied: Twisted in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 10)) (19.10.0)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from -r requirements.txt (line 11)) (4.4.2)
Requirement already satisfied: pefile in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 12)) (2019.4.18)
Requirement already satisfied: ipy in /usr/lib/python3/dist-packages (from -r requirements.txt (line 13)) (1.0)
Requirement already satisfied: user_agents in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 14)) (2.1)
Requirement already satisfied: pyopenssl in /usr/lib/python3/dist-packages (from -r requirements.txt (line 15)) (19.0.0)
Requirement already satisfied: service_identity in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 16)) (18.1.0)
Requirement already satisfied: configobj in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 17)) (5.0.6)
Requirement already satisfied: Flask in /usr/lib/python3/dist-packages (from -r requirements.txt (line 18)) (1.1.1)
Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (from -r requirements.txt (line 19)) (1.16.0)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 20)) (4.8.2)
Requirement already satisfied: capstone in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 21)) (4.0.1)
Requirement already satisfied: python-magic in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 22)) (0.4.15)
Requirement already satisfied: msgpack-python in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 23)) (0.5.6)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.txt (line 24)) (2.22.0)
Requirement already satisfied: pypcap in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 25)) (1.2.3)
Requirement already satisfied: chardet in /usr/lib/python3/dist-packages (from -r requirements.txt (line 26)) (3.0.4)
Requirement already satisfied: hyperlink>=17.1.1 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (19.0.0)
Requirement already satisfied: Automat>=0.3.0 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (0.8.0)
Requirement already satisfied: constantly>=15.1 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (15.1.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from Twisted->-r requirements.txt (line 10)) (18.2.0)
Requirement already satisfied: incremental>=16.10.1 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (17.5.0)
Requirement already satisfied: PyHamcrest>=1.9.0 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (2.0.0)
Requirement already satisfied: zope.interface>=4.4.2 in /usr/local/lib/python3.7/dist-packages (from Twisted->-r requirements.txt (line 10)) (4.7.1)
Requirement already satisfied: future in /usr/lib/python3/dist-packages (from pefile->-r requirements.txt (line 12)) (0.16.0)
Requirement already satisfied: ua-parser>=0.9.0 in /usr/local/lib/python3.7/dist-packages (from user_agents->-r requirements.txt (line 14)) (0.9.0)
Requirement already satisfied: pyasn1-modules in /usr/local/lib/python3.7/dist-packages (from service_identity->-r requirements.txt (line 16)) (0.2.8)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from configobj->-r requirements.txt (line 17)) (1.13.0)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3/dist-packages (from hyperlink>=17.1.1->Twisted->-r requirements.txt (line 10)) (2.6)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from zope.interface>=4.4.2->Twisted->-r requirements.txt (line 10)) (44.0.0)
Building wheels for collected packages: NetfilterQueue
  Running setup.py bdist_wheel for NetfilterQueue ... done
  Stored in directory: /tmp/pip-ephem-wheel-cache-7yyjdi9x/wheels/e2/89/5d/f0b74f24c16fd3cf185715fa9800515f4445d64c0801d2ceb6
Successfully built NetfilterQueue
root@kali:~/MITMf# python mitmf.py -i eth0 --spoof --arp --target 192.168.88.11 --gateway 192.168.88.1

@@@@@@@@@@   @@@  @@@@@@@  @@@@@@@@@@   @@@@@@@@  
@@@@@@@@@@@  @@@  @@@@@@@  @@@@@@@@@@@  @@@@@@@@  
@@! @@! @@!  @@!    @@!    @@! @@! @@!  @@!       
!@! !@! !@!  !@!    !@!    !@! !@! !@!  !@!       
@!! !!@ @!@  !!@    @!!    @!! !!@ @!@  @!!!:!    
!@!   ! !@!  !!!    !!!    !@!   ! !@!  !!!!!:    
!!:     !!:  !!:    !!:    !!:     !!:  !!:       
:!:     :!:  :!:    :!:    :!:     :!:  :!:       
:::     ::    ::     ::    :::     ::    ::       
 :      :    :       :      :      :     :        

[*] MITMf v0.9.8 - 'The Dark Side'
|
|_ Net-Creds v1.0 online
|_ Spoof v0.6
|  |_ ARP spoofing enabled
Traceback (most recent call last):
  File "mitmf.py", line 139, in <module>
    from core.sslstrip.StrippingProxy import StrippingProxy
  File "/root/MITMf/core/sslstrip/StrippingProxy.py", line 20, in <module>
    from ClientRequest import ClientRequest
  File "/root/MITMf/core/sslstrip/ClientRequest.py", line 37, in <module>
    from ServerConnection import ServerConnection
  File "/root/MITMf/core/sslstrip/ServerConnection.py", line 28, in <module>
    from user_agents import parse
ImportError: No module named user_agents
root@kali:~/MITMf#
Что не так?
 
06.09.2019
164
1
BIT
0
Код:
root@kali:~# cd MITMf/
root@kali:~/MITMf# pip install pyyaml ua-parser user-agents
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (5.3)
Requirement already satisfied: ua-parser in /usr/local/lib/python3.7/dist-packages (0.9.0)
Requirement already satisfied: user-agents in /usr/local/lib/python3.7/dist-packages (2.1)
root@kali:~/MITMf# sudo python mitmf.py -i eth0 --spoof --arp --target 192.168.88.11 --gateway 192.168.88.1
                                                    
 __  __   ___   .--.          __  __   ___              
|  |/  `.'   `. |__|         |  |/  `.'   `.      _.._  
|   .-.  .-.   '.--.     .|  |   .-.  .-.   '   .' .._| 
|  |  |  |  |  ||  |   .' |_ |  |  |  |  |  |   | '     
|  |  |  |  |  ||  | .'     ||  |  |  |  |  | __| |__   
|  |  |  |  |  ||  |'--.  .-'|  |  |  |  |  ||__   __|  
|  |  |  |  |  ||  |   |  |  |  |  |  |  |  |   | |     
|__|  |__|  |__||__|   |  |  |__|  |__|  |__|   | |     
                       |  '.'                   | |     
                       |   /                    | |     
                       `'-'                     |_|

[*] MITMf v0.9.8 - 'The Dark Side'
|
|_ Net-Creds v1.0 online
|_ Spoof v0.6
|  |_ ARP spoofing enabled
Traceback (most recent call last):
  File "mitmf.py", line 139, in <module>
    from core.sslstrip.StrippingProxy import StrippingProxy
  File "/root/MITMf/core/sslstrip/StrippingProxy.py", line 20, in <module>
    from ClientRequest import ClientRequest
  File "/root/MITMf/core/sslstrip/ClientRequest.py", line 37, in <module>
    from ServerConnection import ServerConnection
  File "/root/MITMf/core/sslstrip/ServerConnection.py", line 28, in <module>
    from user_agents import parse
ImportError: No module named user_agents
root@kali:~/MITMf#
Может что с версией python?
 

Xulinam

Grey Team
02.03.2017
1 023
241
BIT
134
держи тебе статеек на расмотрение) также на форуме покапайся)) как все попробуешь и прочтешь пиши!!!
и еще для прочтения!!
 

f22

Codeby Academy
Gold Team
05.05.2019
1 939
226
BIT
1 766
Специально для тебя перепечатал инструкцию
apt-get -y install python-dev python-setuptools libpcap0.8-dev libnetfilter-queue-dev libssl-dev libjpeg-dev libxml2-dev libxslt1-dev libcapstone3 libcapstone-dev libffi-dev file
pip install virtualenvwrapper
pip2 install virtualenvwrapper
source /usr/bin/virtualenvwrapper.sh

mkvirtualenv MITMf -p /usr/bin/python2.7
git clone https://github.com/byt3bl33d3r/MITMf
cd MITMf && git submodule init && git submodule update --recursive
pip install -r requirements.txt
python mitmf.py

Последние пункты попробуй запускать ещё и так
pip2 install -r requirements.txt
python2 mitmf.py
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!