i cannot monitor traffic in mitmf

root@kali:~# pip install -r requirements.txt
Collecting git+git://github.com/kti/python-netfilterqueue (from -r requirements.txt (line 1))
  Cloning git://github.com/kti/python-netfilterqueue to /tmp/pip-WIQ3aT-build
Requirement already satisfied: pyinotify in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
Requirement already satisfied: pycrypto in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied: pyasn1 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 5))
Requirement already satisfied: Pillow in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 6))
Requirement already satisfied: netaddr in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 7))
Requirement already satisfied: scapy in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 8))
Requirement already satisfied: dnslib in /usr/local/lib/python2.7/dist-packages/dnslib-0.9.6-py2.7.egg (from -r requirements.txt (line 9))
Requirement already satisfied: Twisted in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 10))
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 11))
Requirement already satisfied: pefile in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 12))
Requirement already satisfied: ipy in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 13))
Requirement already satisfied: user_agents in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 14))
Requirement already satisfied: pyopenssl in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 15))
Requirement already satisfied: service_identity in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 16))
Requirement already satisfied: configobj in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 17))
Requirement already satisfied: Flask in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 18))
Requirement already satisfied: dnspython in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 19))
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.5.1-py2.7.egg (from -r requirements.txt (line 20))
Requirement already satisfied: capstone in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 21))
Requirement already satisfied: python-magic in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 22))
Requirement already satisfied: msgpack-python in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 23))
Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 24))
Collecting pypcap (from -r requirements.txt (line 25))
  Using cached pypcap-1.2.0.tar.gz
Requirement already satisfied: chardet in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 26))
Requirement already satisfied: ua-parser>=0.4.1 in /usr/local/lib/python2.7/dist-packages (from user_agents->-r requirements.txt (line 14))
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from configobj->-r requirements.txt (line 17))
Building wheels for collected packages: pypcap
  Running setup.py bdist_wheel for pypcap … error
  Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;__file__=’/tmp/pip-build-G5TdJO/pypcap/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))” bdist_wheel -d /tmp/tmpg0Ktjnpip-wheel- --python-tag cp27:
  Found pcap headers in /usr/include/pcap.h
  Found libraries in /usr/lib/x86_64-linux-gnu/libpcap.a
  running bdist_wheel
  running build
  running build_ext
  building ‘pcap’ extension
  creating build
  creating build/temp.linux-x86_64-2.7
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-j9xj4T/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python2.7 -c pcap.c -o build/temp.linux-x86_64-2.7/pcap.o
  unable to execute ‘x86_64-linux-gnu-gcc’: No such file or directory
  error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

  ----------------------------------------
  Failed building wheel for pypcap
  Running setup.py clean for pypcap
Failed to build pypcap
Installing collected packages: pypcap, NetfilterQueue
  Running setup.py install for pypcap … error
    Complete output from command /usr/bin/python -u -c “import setuptools, tokenize;__file__=’/tmp/pip-build-G5TdJO/pypcap/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))” install --record /tmp/pip-NUH6EH-record/install-record.txt --single-version-externally-managed --compile:
    Found pcap headers in /usr/include/pcap.h
    Found libraries in /usr/lib/x86_64-linux-gnu/libpcap.a
    running install
    running build
    running build_ext
    building ‘pcap’ extension
    creating build
    creating build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-j9xj4T/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include -I/usr/include/python2.7 -c pcap.c -o build/temp.linux-x86_64-2.7/pcap.o
    unable to execute ‘x86_64-linux-gnu-gcc’: No such file or directory
    error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
    
    ----------------------------------------
Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=’/tmp/pip-build-G5TdJO/pypcap/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))” install --record /tmp/pip-NUH6EH-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-G5TdJO/pypcap/

i have used apt-get install mitmf but that didnt work .so i installed modules in requirement.txt using pip install but the problem was showed about pycap

Hi @hackersalias,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Additionally, while the Community Forum can be useful for sharing small bits of code or examples, for longer things like this you should probably use a Gist or store the code in a repo and refer people to it there.

Let me know if you have any other questions or if I can help with anything else.

Cheers!