internetarchive / internetarchive/warcprox

Help getting started?

Open
#110 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
467
Forks
66
PR merge metrics
No merged PRs in 30d

Description

I am researching several tools and wanted to give this one a try. I am on osx and installed both the stable and master branch with pip3 but I can't seem to get it to work on either latest chrome or firefox. I always get

```
2019-01-09 18:04:32,949 12768 WARNING MitmProxyHandler(tid=n/a,started=2019-01-09T21:04:32.941738,client=127.0.0.1:64026) warcprox.warcproxy.WarcProxy.handle_error(warcproxy.py:535) exception processing request from ('127.0.0.1', 64026)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/warcprox/mitmproxy.py", line 659, in _process_request_thread
request = self.finish_request(request, client_address)
File "/usr/local/lib/python3.7/site-packages/warcprox/mitmproxy.py", line 606, in finish_request
req_handler = self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python3.7/site-packages/warcprox/mitmproxy.py", line 222, in __init__
http_server.BaseHTTPRequestHandler.__init__(self, request, client_address, server)
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socketserver.py", line 720, in __init__
self.handle()
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 426, in handle
self.handle_one_request()
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 414, in handle_one_request
method()
File "/usr/local/lib/python3.7/site-packages/warcprox/mitmproxy.py", line 340, in do_CONNECT
self.handle_one_request()
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/server.py", line 394, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 911, in read
return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] sslv3 alert bad certificate (_ssl.c:2484)
```

with google or facebook, I am mostly interested on facebook.

I couldn't even get the certificate out of it to trust it or didn't find the CA Cert to add.

Would this store private access/comments with facebook? what about user interaction?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the traceback in warcprox/mitmproxy.py, especially do_CONNECT and finish_request, and reproduce the reported failure on macOS with Chrome or Firefox. The issue does not name a test or a specific code change; done would require identifying the certificate or proxy failure and documenting or fixing the path to a working browser setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.