arnaucube/coffeeMiner

Python library error

pieterhouwen opened this issue · 1 comments

Hi, I set everything up, but I'm greeted by the following console output.

root@Hidden-Service:~/coffeeMiner# python coffeeMiner.py 192.168.39.1
gateway: 192.168.39.1
victims:
['192.168.39.18']
Traceback (most recent call last):
File "/usr/bin/mitmdump", line 11, in
load_entry_point('mitmproxy==2.0.2', 'console_scripts', 'mitmdump')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 572, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2752, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2405, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2411, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python3/dist-packages/mitmproxy/tools/main.py", line 12, in
from mitmproxy.tools import cmdline # noqa
File "/usr/lib/python3/dist-packages/mitmproxy/tools/cmdline.py", line 10, in
from mitmproxy.addons import view
File "/usr/lib/python3/dist-packages/mitmproxy/addons/init.py", line 7, in
from mitmproxy.addons import onboarding
File "/usr/lib/python3/dist-packages/mitmproxy/addons/onboarding.py", line 2, in
from mitmproxy.addons.onboardingapp import app
File "/usr/lib/python3/dist-packages/mitmproxy/addons/onboardingapp/app.py", line 8, in
from mitmproxy.proxy import config
File "/usr/lib/python3/dist-packages/mitmproxy/proxy/init.py", line 2, in
from .root_context import RootContext
File "/usr/lib/python3/dist-packages/mitmproxy/proxy/root_context.py", line 3, in
from mitmproxy.proxy import protocol
File "/usr/lib/python3/dist-packages/mitmproxy/proxy/protocol/init.py", line 39, in
from .tls import TlsClientHello
File "/usr/lib/python3/dist-packages/mitmproxy/proxy/protocol/tls.py", line 7, in
from mitmproxy.contrib import tls_parser
File "/usr/lib/python3/dist-packages/mitmproxy/contrib/tls_parser.py", line 8, in
from construct import (Array, Bytes, Struct, UBInt16, UBInt32, UBInt8, PascalString, Embed, TunnelAdapter, GreedyRange, Switch, OptionalGreedyRange, Optional)
ImportError: cannot import name 'UBInt16'

Am I doing something wrong?

I fixed it by reinstalling the mitmproxy, closing this issue