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

Googler, how2, and socli command line tools don't work while Chomper is running. #25

Open
aniketpanjwani opened this issue Feb 28, 2018 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@aniketpanjwani
Copy link
Owner

aniketpanjwani commented Feb 28, 2018

Steps to reproduce the problem:
  1. Install googler, how2, and chomper.
  2. Execute chomper allon 10.
  3. Try to run googler python help.
  4. Try to run how2 -l python remove from list.
  5. Try to run socli python remove from list.

Step 3 gives [ERROR] Got HTTP 502: Bad Gateway at the terminal. In mitmproxy, you get

129.105.62.136:36544: clientconnect
129.105.62.136:36544: Cannot establish TLS with 74.125.127.105:443 (sni: None): TlsException('Cannot validate certificate hostname without SNI',)
129.105.62.136:36544: clientdisconnect

Step 4 returns at the terminal:

-Cannot connect to Google.
Error: Error on response:Error: tunneling socket could not be established, cause=connect EINVAL 0.0.31.144:80 - Local (0.0.0.0:0) : undefined

Step 5 returns Please check your internet connectivity... in the terminal. In mitmproxy, you get mitmproxy:

129.105.62.136:52310: clientconnect
129.105.62.136:52310: Client Handshake failed. The client may not trust the proxy's certificate for www.google.com.
129.105.62.136:52310: clientdisconnect
Any other comments? What have you tried so far?

Some thoughts:

  1. Maybe these command-line tools aren't finding certificates.
  2. The SNI error is weird - that seems like an upstream problem with googler.
  3. Maybe my root certificate isn't properly installed.
System information

Operating system: (e.g. Linux Mint 18)

@aniketpanjwani aniketpanjwani added bug Something isn't working help wanted Extra attention is needed labels Feb 28, 2018
@aniketpanjwani aniketpanjwani changed the title Googler, how2, and socli command line tools don't work. Googler, how2, and socli command line tools don't work while Chomper is running. Feb 28, 2018
@aniketpanjwani
Copy link
Owner Author

I had uninstalled Chrome and Firefox and only used a text browser. I then reinstalled Chrome and imported the mitmproxy certificate. When I did this, googler and socli continued to give the same problems they had been giving, but how2 began to function properly. This suggests that how2 uses Chrome's certificate database.

I think it's best to think of these as upstream errors, but I'm going to leave the issue open until it gets solved, because I expect others using Chomper will face similar problems.

@aniketpanjwani
Copy link
Owner Author

I also think Googler's failure to provide SNI is probably a design failure of Googler. This may be arising because it doesn't use requests, and instead uses the http library.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant