Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

nogotofail MITM fails to server traffic from Google Chrome #11

Closed
systemizer opened this issue Nov 8, 2014 · 1 comment
Closed

nogotofail MITM fails to server traffic from Google Chrome #11

systemizer opened this issue Nov 8, 2014 · 1 comment

Comments

@systemizer
Copy link

I followed the steps illustrated in your docs:

$ openssl req -x509 -newkey rsa:2048 -subj "/CN=mitm.nogotofail/" -nodes -keyout server.crt -out server.crt
$ python -m nogotofail.mitm -v -a --mode socks --port 8080 --serverssl server.crt
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:8080" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost”

nogotofail failed with the following stack trace:

2014-11-08 11:19:21,633 [ERROR] Uncaught exception in serving thread!
Traceback (most recent call last):
  File "nogotofail/mitm/connection/server.py", line 57, in run
    self.serve()
  File "nogotofail/mitm/connection/server.py", line 98, in serve
    self.setup_connection(client_socket)
  File "nogotofail/mitm/connection/server.py", line 151, in setup_connection
    if connection.start():
  File "nogotofail/mitm/connection/connection.py", line 508, in start
    self._get_original_dest(self.client_socket))
  File "nogotofail/mitm/connection/connection.py", line 584, in _get_original_dest
    addr = request[5:5 + length]
TypeError: unsupported operand type(s) for +: 'int' and 'tuple'

How do I get nogotofail to work with Google Chrome?

@chadbrubaker
Copy link
Contributor

Looks like a bug in parsing DNS proxy requests. I'll have a fix up soon,
thanks!
On Nov 8, 2014 11:25 AM, "Rob McQueen" notifications@github.com wrote:

I followed the steps illustrated in your docs:

$ openssl req -x509 -newkey rsa:2048 -subj "/CN=mitm.nogotofail/" -nodes -keyout server.crt -out server.crt
$ python -m nogotofail.mitm -v -a --mode socks --port 8080 --serverssl server.crt
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://localhost:8080" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost”

nogotofail failed with the following stack trace:

2014-11-08 11:19:21,633 [ERROR] Uncaught exception in serving thread!
Traceback (most recent call last):
File "nogotofail/mitm/connection/server.py", line 57, in run
self.serve()
File "nogotofail/mitm/connection/server.py", line 98, in serve
self.setup_connection(client_socket)
File "nogotofail/mitm/connection/server.py", line 151, in setup_connection
if connection.start():
File "nogotofail/mitm/connection/connection.py", line 508, in start
self._get_original_dest(self.client_socket))
File "nogotofail/mitm/connection/connection.py", line 584, in _get_original_dest
addr = request[5:5 + length]
TypeError: unsupported operand type(s) for +: 'int' and 'tuple'

How do I get nogotofail to work with Google Chrome?


Reply to this email directly or view it on GitHub
#11.

mkenne11 added a commit to mkenne11/nogotofail that referenced this issue Jan 2, 2016
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