Post Reply 
ProxHTTPSProxyMII: Development
Oct. 22, 2015, 06:49 AM
Post: #181
RE: ProxHTTPSProxyMII: Development
I think (if it were at all possible and actually made sense to you), that ProxHTTPSProxyMII could be made to provide a way for forcibly and automatically dropping HTTPS connections that refuse to die on there own after the data has been properly transmitted and acknowledged so by both parties. Right now, though, a lot of them seem to remain open for what virtually seems forever, even though they're not being used anymore, which doesn't happen with standard, non-encrypted connections and a couple of settings in Proxomitron, but HTTPS + ProxHTTPSProxyMII, that doesn't seem to work in like manner.

Cheers.

"He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him" - John 3:36
Add Thank You Quote this message in a reply
Oct. 23, 2015, 08:18 AM
Post: #182
RE: ProxHTTPSProxyMII: Development
ProxHTTPSProxyMII depends on urllib3 to manage connections to servers, which features connections pooling for reusing. Currently the timeout is set based on Firefox defaults (the last time I checked) as below:

Code:
timeout=urllib3.util.timeout.Timeout(connect=90.0, read=310.0)

You can reduce those values and watch if it help.

On the other hand, please update your Python installation and the urllib3 module to the latest versions. I have seen fixes on http and ssl with every version upgrade.
Add Thank You Quote this message in a reply
Oct. 26, 2015, 07:24 PM
Post: #183
RE: ProxHTTPSProxyMII: Development
Thank you, I appreciate the suggestion.

I'm using ProxHTTPSProxyMII 1.3.1.zip straight out of the box with minor config.ini changes, yet what you mention sounds to me like I'd have to modify the source code and recompile. I'm not familiar with Python to any meaningful extent, so it will take me some time to figure this one out.

Cheers.

"He that believeth on the Son hath everlasting life: and he that believeth not the Son shall not see life; but the wrath of God abideth on him" - John 3:36
Add Thank You Quote this message in a reply
Nov. 09, 2015, 06:03 PM
Post: #184
RE: ProxHTTPSProxyMII: Development
Hi whenever,

Firefox is seriously playing with my nerves this time. I've got this persistent error message every time I attempt to visit YouTube or Google: sec_error_unknown_issuer. No problem with other browsers. It's not critical for me since I use another browser, but I'd like to know why there seems to be no way to get around this?

Thanks for your suggestion.
Add Thank You Quote this message in a reply
Nov. 10, 2015, 01:59 AM
Post: #185
RE: ProxHTTPSProxyMII: Development
I visited https://www.google.com via Firefox v42.0 but couldn't reproduce the issue on my side.

Please make sure you don't have Privoxy or other proxy chained in the middle and provides more details to reproduce the issue.
Add Thank You Quote this message in a reply
Nov. 10, 2015, 07:02 PM
Post: #186
RE: ProxHTTPSProxyMII: Development
Hello whenever. I tried to reproduce the issue on another computer of mine that also uses Privoxy and it works fine with Firefox 42. On that computer, chaining Privoxy with ProxHTTPSProxyMII didn't cause any issue while visiting the sites. On the first computer, problem still persists, but I do know my Privoxy rule set is ≠ from the one used on the other computer… So, I'm going to investigate that. Thanks for your suggestion.
Add Thank You Quote this message in a reply
Nov. 11, 2015, 07:44 AM
Post: #187
RE: ProxHTTPSProxyMII: Development
I'm not sure if it matters but you can remove all generated certifications under Certs directory and let the program regenerate them while you visiting sites.
Add Thank You Quote this message in a reply
Nov. 12, 2015, 07:12 PM (This post was last modified: Nov. 12, 2015 09:16 PM by Faxopita.)
Post: #188
RE: ProxHTTPSProxyMII: Development
Hi whenever. Great suggestion, indeed. It would have make sense, but did not solve my issue. I'll fix my problem and get back to you after I solved it.
Add Thank You Quote this message in a reply
Nov. 16, 2015, 10:12 PM (This post was last modified: Nov. 16, 2015 10:15 PM by kik0s.)
Post: #189
RE: ProxHTTPSProxyMII: Development
hey whenever. thanks a lot for the great tool. i have a couple of questions. python is not my strongest friend Wink does your version support multi core cpus? is there any way to let the programm run in the background and somehow add support for a log file? so we can decide which it should log? like only errors and other stuff?
Add Thank You Quote this message in a reply
Nov. 19, 2015, 12:27 PM (This post was last modified: Nov. 19, 2015 12:29 PM by cattleyavns.)
Post: #190
RE: ProxHTTPSProxyMII: Development
(Nov. 16, 2015 10:12 PM)kik0s Wrote:  hey whenever. thanks a lot for the great tool. i have a couple of questions. python is not my strongest friend Wink does your version support multi core cpus? is there any way to let the programm run in the background and somehow add support for a log file? so we can decide which it should log? like only errors and other stuff?

As far as I know, Windows version of Python can only use ThreadingMixIn which support only multi threading, but Linux is perfect at both multiprocessing and multi threading and can use ForkingMixIn and ThreadingMixIn.

The only way to make ForkingMixIn work on Windows is to use Cygwin version of Python.

So you can choose which method is good for you.

If you want to test, edit this line:
class ProxyServer(ThreadingMixIn, HTTPServer):

to

class ProxyServer(ForkingMixIn, HTTPServer):

And don't forget to import ForkingMixIn
Add Thank You Quote this message in a reply
Dec. 10, 2015, 11:43 PM (This post was last modified: Dec. 11, 2015 10:59 AM by kik0s.)
Post: #191
RE: ProxHTTPSProxyMII: Development
hey guys. so i tried to work with that error
Code:
[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:600)" while trying to establish local SSL tunnel for [some.site.net:443]

it seems that python establishes its connections with tlsv23 as stated here. so to fix that i found this:
Code:
import ssl
from functools import wraps
def sslwrap(func):
    @wraps(func)
    def bar(*args, **kw):
        kw['ssl_version'] = ssl.PROTOCOL_TLSv1
        return func(*args, **kw)
    return bar

ssl.wrap_socket = sslwrap(ssl.wrap_socket)

i added it to the ProxHTTPS.py file. it works with more sites now. but some sites still won't work. idk why?! maybe some one with more python skills can help here?!

more thoughts:
i guess some sites user tlsv1 and some other use tlsv23 or maybe something newer. so i guess proxhttps needs to check for the version fitst and then encrypt the connection. is that possible? Smile!
Add Thank You Quote this message in a reply
Dec. 20, 2015, 06:28 PM
Post: #192
RE: ProxHTTPSProxyMII: Development
When I try to run ProxHTTPSProxy.py on Linux Debian, I get this:
Traceback (most recent call last):
File "./proxhttpsproxy.py", line 27, in <module>
from ProxyTool import ProxyRequestHandler, get_cert, counter
File "/home/margie/ProxHTTPSProxy/ProxyTool.py", line 17, in <module>
import selectors
ImportError: No module named selectors


What's wrong and how can I fix it? ProxHTTPSProxy is version:
ProxHTTPSProxyMII 1.3.1 2015.10.01
Add Thank You Quote this message in a reply
Dec. 21, 2015, 08:59 AM
Post: #193
RE: ProxHTTPSProxyMII: Development
I got this error too but in my case i was running from the wrong folder. When i run it within the folder wich holds config.ini, CertTool,Certs it do start.

My problem is that it do not filter https sites yet
Add Thank You Quote this message in a reply
Dec. 22, 2015, 03:57 AM
Post: #194
RE: ProxHTTPSProxyMII: Development
(Dec. 21, 2015 08:59 AM)rogern Wrote:  I got this error too but in my case i was running from the wrong folder. When i run it within the folder wich holds config.ini, CertTool,Certs it do start.

My problem is that it do not filter https sites yet

That's not my problem, I am running it from the same folder.
cd /home/margie/ProxHTTPSProxy
./proxhttpsproxy.py

So what is my problem?
Add Thank You Quote this message in a reply
Dec. 22, 2015, 08:51 AM (This post was last modified: Dec. 22, 2015 08:53 AM by Faxopita.)
Post: #195
RE: ProxHTTPSProxyMII: Development
(Dec. 22, 2015 03:57 AM)Aunt Elsie Wrote:  ./proxhttpsproxy.py

Could you please try running the script this way…
Code:
python_version proxhttpsproxy.py

To know which Python version, input python, then press TAB and select your version.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: