Post Reply 
ProxHTTPSProxy, a Proxomitron SSL Helper Program
May. 20, 2010, 06:01 AM
Post: #12
RE: ProxHTTPSProxy, a Proxomitron SSL Helper Program
Of course, 64bit Python 2.6.5.

This time with Proxo filtering ssl

Code:
BlockList 1665: in Exceptions-U, line 976
GET 1665 : User Keywords: .i_proxy:3.
BlockList 1665: in User-Agents, line 45

+++GET 1665+++
Using Proxy - 127.0.0.1:8081
GET http://ssl.scroogle.org:443/ HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Host: ssl.scroogle.org:443
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
Connection: keep-alive
BlockList 1666: in Exceptions-U, line 976
GET 1666 : User Keywords: .i_proxy:3.

+++GET 1666+++
Using Proxy - 127.0.0.1:8081
CONNECT https://ssl.scroogle.org:443/ HTTP/1.0
BlockList 1666: in Exceptions-U, line 976
GET 1666 : User Keywords: .i_proxy:3.
BlockList 1666: in User-Agents, line 45

+++SSL:GET 1666+++
Using Proxy - 127.0.0.1:8081
SSL cipher TLSv1 AES256-SHA (256 bits)
GET https://ssl.scroogle.org:443/ HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Host: ssl.scroogle.org:443
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
Connection: keep-alive
HTTP/1.0 200 Connection established
HTTP/1.0 Proxy-agent: ProxHTTPSProxy/0.1 Python/2.6.5

+++SSL:RESP 1666+++
SSL cipher TLSv1 AES256-SHA (256 bits)
HTTP/1.1 307 Moved Temporarily
Location: http://ssl.scroogle.org:443/
+++CLOSE 1666+++

and repeats till I end ProxHTTPSProxy.

http://local.ptron/.pinfo/urls/ shows

Code:
Closed    1673    000        0    http://ssl.scroogle.org:443/
Closed    1672    307        0    https://ssl.scroogle.org:443/
Closed    1671    000        0    http://ssl.scroogle.org:443/
Closed    1670    307        0    https://ssl.scroogle.org:443/
Closed    1669    000        0    http://ssl.scroogle.org:443/
Closed    1668    307        0    https://ssl.scroogle.org:443/
Closed    1667    000        0    http://ssl.scroogle.org:443/
Closed    1666    307        0    https://ssl.scroogle.org:443/
Closed    1665    000        0    http://ssl.scroogle.org:443/

ProxHTTPSProxy's log window shows

Code:
ProxHTTPSProxy/0.1 serving on localhost:8081, <Ctrl-C> to stop ...
E3-PC - - [19/May/2010 23:06:41] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:47] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:47] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:47] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:48] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:48] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:48] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:48] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:48] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:49] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:49] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:49] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:49] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:49] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:50] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:50] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:50] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:50] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:50] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:51] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:51] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:51] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:51] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:51] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:52] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:53] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:53] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
E3-PC - - [19/May/2010 23:06:53] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
Traceback (most recent call last):
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 78, in <module>
    server.serve_forever()
  File "C:\Python26amd64\lib\SocketServer.py", line 224, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
KeyboardInterrupt

Well... All 4 possibilities are now showing something like

Code:
E3-PC - - [19/May/2010 23:37:04] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 52659)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 57, in do_CONNECT
    ssl_sock = ssl.wrap_socket(self.connection, certfile=cert_file, server_side=
True)
  File "C:\Python26\lib\ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "C:\Python26\lib\ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_
PrivateKey_file:system lib
----------------------------------------

Time for restart

And now...

32 bit no ssl filtering by Proxo

Code:
E3-PC - - [20/May/2010 00:06:47] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 49165)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 57, in do_CONNECT
    ssl_sock = ssl.wrap_socket(self.connection, certfile=cert_file, server_side=
True)
  File "C:\Python26\lib\ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "C:\Python26\lib\ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_
PrivateKey_file:system lib
----------------------------------------


BlockList 1: in Exceptions-U, line 976
GET 1 : User Keywords: .i_proxy:3.
BlockList 1: in User-Agents, line 45

+++GET 1+++
Using Proxy - 127.0.0.1:8081
CONNECT https://ssl.scroogle.org:443/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Proxy-Connection: keep-alive
Host: ssl.scroogle.org
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang

+++SSL 1:+++
SSL Pass-Thru: CONNECT https://ssl.scroogle.org:443/
HTTP/1.0 200 Connection established
HTTP/1.0 Proxy-agent: ProxHTTPSProxy/0.1 Python/2.6.5
+++CLOSE 1+++

and repeats but slower now.

32 bit Proxo filtering ssl

Code:
E3-PC - - [20/May/2010 00:15:26] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 49207)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 57, in do_CONNECT
    ssl_sock = ssl.wrap_socket(self.connection, certfile=cert_file, server_side=
True)
  File "C:\Python26\lib\ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "C:\Python26\lib\ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_
PrivateKey_file:system lib
----------------------------------------


BlockList 25: in Exceptions-U, line 976
GET 25 : User Keywords: .i_proxy:3.
BlockList 25: in User-Agents, line 45

+++GET 25+++
Using Proxy - 127.0.0.1:8081
CONNECT https://ssl.scroogle.org:443/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Proxy-Connection: keep-alive
Host: ssl.scroogle.org
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
BlockList 25: in Exceptions-U, line 976
GET 25 : User Keywords: .i_proxy:3.
BlockList 25: in User-Agents, line 45

+++SSL:GET 25+++
Using Proxy - 127.0.0.1:8081
SSL cipher SSLv3 AES256-SHA (256 bits)
GET https://ssl.scroogle.org:443/ HTTP/1.1
Host: ssl.scroogle.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
HTTP/1.0 200 Connection established
HTTP/1.0 Proxy-agent: ProxHTTPSProxy/0.1 Python/2.6.5

and repeats.

64 bit no ssl filtering by Proxo

Code:
Exception happened during processing of request from ('127.0.0.1', 49215)
Traceback (most recent call last):
  File "C:\Python26amd64\lib\SocketServer.py", line 558, in process_request_thre
ad
    self.finish_request(request, client_address)
  File "C:\Python26amd64\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26amd64\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26amd64\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26amd64\lib\BaseHTTPServer.py", line 323, in handle_one_request

    method()
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 57, in do_CONNECT
    ssl_sock = ssl.wrap_socket(self.connection, certfile=cert_file, server_side=
True)
  File "C:\Python26amd64\lib\ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "C:\Python26amd64\lib\ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_
PrivateKey_file:system lib
----------------------------------------


+++CLOSE 30+++
BlockList 31: in Exceptions-U, line 976
GET 31 : User Keywords: .i_proxy:3.
BlockList 31: in User-Agents, line 45

+++GET 31+++
Using Proxy - 127.0.0.1:8081
CONNECT https://ssl.scroogle.org:443/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Proxy-Connection: keep-alive
Host: ssl.scroogle.org
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang

+++SSL 31:+++
SSL Pass-Thru: CONNECT https://ssl.scroogle.org:443/
HTTP/1.0 200 Connection established
HTTP/1.0 Proxy-agent: ProxHTTPSProxy/0.1 Python/2.6.5

no repeating seen.

64 bit Proxo filtering ssl

Code:
E3-PC - - [20/May/2010 00:26:38] "CONNECT ssl.scroogle.org:443 HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 49217)
Traceback (most recent call last):
  File "C:\Python26amd64\lib\SocketServer.py", line 558, in process_request_thre
ad
    self.finish_request(request, client_address)
  File "C:\Python26amd64\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26amd64\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26amd64\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26amd64\lib\BaseHTTPServer.py", line 323, in handle_one_request

    method()
  File "C:\Users\E3\Programs\PrxBlx\ProxHTTPSProxy.py", line 57, in do_CONNECT
    ssl_sock = ssl.wrap_socket(self.connection, certfile=cert_file, server_side=
True)
  File "C:\Python26amd64\lib\ssl.py", line 350, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)
  File "C:\Python26amd64\lib\ssl.py", line 113, in __init__
    cert_reqs, ssl_version, ca_certs)
SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_
PrivateKey_file:system lib
----------------------------------------


BlockList 32: in Exceptions-U, line 976
GET 32 : User Keywords: .i_proxy:3.
BlockList 32: in User-Agents, line 45

+++GET 32+++
Using Proxy - 127.0.0.1:8081
CONNECT https://ssl.scroogle.org:443/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Proxy-Connection: keep-alive
Host: ssl.scroogle.org
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
BlockList 32: in Exceptions-U, line 976
GET 32 : User Keywords: .i_proxy:3.
GET 32 : Cache-Control killed: max-age=0
BlockList 32: in User-Agents, line 45

+++SSL:GET 32+++
Using Proxy - 127.0.0.1:8081
SSL cipher SSLv3 AES256-SHA (256 bits)
GET https://ssl.scroogle.org:443/ HTTP/1.1
Host: ssl.scroogle.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.9.9
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://slashdot.org/search/referrer-karma.php?q=Big+Bang
HTTP/1.0 200 Connection established
HTTP/1.0 Proxy-agent: ProxHTTPSProxy/0.1 Python/2.6.5

no repeating seen.

Quote:I didn't get your point. ProxHTTPSProxy doesn't keep a list.

Probably too late for me to think straight but wouldn't the user be expected to maintain a list?

Quote:This is how it look like in sidki's Exceptions-U.ptxt

Proxo could build a list for you, I think. Some sort of tag might remove the need.

What happens when https and http share an address or part of one?

Sorry for the lengthy post folks. I may shorten it after whenever reads it.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ProxHTTPSProxy, a Proxomitron SSL Helper Program - JJoe - May. 20, 2010 06:01 AM

Forum Jump: