Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

ua_dict missing data raises: exceptions.TypeError: parse_device() takes exactly 3 arguments (1 given) #527

Closed
llazzaro opened this issue Aug 20, 2017 · 0 comments

Comments

@llazzaro
Copy link

ua_dict dict "device" value only contains "family"
This causes the following exception:

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger return callWithContext({"system": lp}, func, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 619, in _doReadOrWrite why = selectable.doWrite() File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 592, in doConnect self._connectDone() File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 611, in _connectDone self.protocol.makeConnection(self) File "/usr/lib/python2.7/dist-packages/twisted/internet/protocol.py", line 481, in makeConnection self.connectionMade() File "/home/pi/MITMf/core/sslstrip/ServerConnection.py", line 108, in connectionMade user_agent = parse(self.headers['user-agent']) File "/usr/local/lib/python2.7/dist-packages/user_agents/parsers.py", line 255, in parse return UserAgent(user_agent_string) File "/usr/local/lib/python2.7/dist-packages/user_agents/parsers.py", line 140, in __init__ self.device = parse_device(**ua_dict['device']) exceptions.TypeError: parse_device() takes exactly 3 arguments (1 given)

@tobie tobie closed this as completed Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants