ProxHTTPSProxyMII: Reloaded

新手入门、经验交流

Moderator: cre

Forum rules
  • 软件自带帮助是最好的入门教程,请仔细阅读;在您掌握最基本知识前,我们没法帮助您
  • 提问前请先查阅软件帮助文件和论坛相关讨论
  • 查阅软件帮助和论坛相关讨论即可解决的问题帖将直接删除,以免浪费他人时间
  • 请学会如何提问,尽量将问题描述清楚,不明确的提问将被直接删除
Post Reply
User avatar
phoenix
Site Admin
Posts: 524
Joined: Dec 29 2007, 16:27

ProxHTTPSProxyMII: Reloaded

Post by phoenix » Oct 27 2014, 17:28

这是第二代程序。关于这个程序的前世今生,请访问第一代的介绍页面: http://forum.proxomitron.cn/viewtopic.php?f=2&t=330

工作原理
Image

安装

- 解压缩 ProxHTTPSProxyMII,并将其中的根证书 "CA.crt" 安装到浏览器的可信任证书区域。

下载
http://proxfilter.net/proxhttpsproxy/Pr ... oxyMII.zip

配置

ProxHTTPSProxyMII 默认监听 8079 端口,并转发 HTTPS 请求到 Proxomitron 默认监听端口 8080。

可编辑 "Config.ini" 文件修改默认监听端口。

更新历史

Code: Select all

Version 1.3.1 (20151001)
--------------
* Certifications are now signed via SHA256 instead of SHA1

Version 1.3 (20150114)
--------------
+ Each request has a number ranged from 001 to 999 for reference. 000 is reserved for SSL requests not MITMed like those in [BLACKLIST] and [SSL Pass-Thru] sections.
+ Log window now displays the length of the bytes submitted in POST method

Version 1.2 (20141221)
--------------
+ Content is streamed to client, while not cached before sending
* Fix config auto reload
* Less exception traceback dumped
* Tagged header changed from "Tagged:Proxomitron FrontProxy/*" to "Tagged:ProxHTTPSProxyMII FrontProxy/*"

Version 1.1 (20141024)
--------------
+ Support URL bypass
+ Handle both HTTP and HTTPS
+ Auto reload config upon chagnes

Version 1.0 (20140729)
--------------
Initial release
Proxomitron Tips

Code: Select all

To use
----

* Add the ProxHTTPSProxy rear server to the Proxomitron's list of external proxies

  `127.0.0.1:8081 ProxHTTPSProxyMII`

* Add to Proxomitron's "Bypass URLs that match this expression" field if it is empty

  `$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)$SETPROXY(127.0.0.1:8081)(^)`

* Add to the beginning of the entry in Proxomitron's "Bypass URLs that match this expression" field if it is **not** empty

  `$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)$SETPROXY(127.0.0.1:8081)(^)|` 

Tips
----

* Proxomitron always executes some commands in "Bypass URLs that match this expression" field. Adding the entry there allows the Proxomitron to use the rear server when in Bypass mode.

  This undocumented feature brings many possibilities but remember, an actual match triggers bypass of filtering!
  
  - `$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)` checks for the header that indicates an https request.
  - `$SETPROXY(127.0.0.1:8081)` is executed when found.
  - `(^)` expression never matches. 

* Identify https connections by testing for the "Tagged" request header that the ProxHTTPSProxy front server adds to the request. 

  `$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)`

* For local file requests, use an expression like 

  `$USEPROXY(false)$RDIR(http://local.ptron/killed.gif)`

* Before redirecting "Tagged" connections to external resources consider removing the "Tagged" header. 

* If needed, the Proxomitron can still do https. After adding the ssl files to the Proxomitron, use a header filter like

  ```
  [HTTP headers]
  In = FALSE
  Out = TRUE
  Key = "Tagged: Use Proxomitron for https://badcert.com"
  URL = "badcert.com$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)$USEPROXY(false)$RDIR(https://badcert.com)"
  ```
  This filter also removes the "Tagged" header. 

For the current sidki set
----

1. Add the following two lines to Exceptions-U

  ```
  $OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)$SET(keyword=$GET(keyword)i_proxy:3.)(^)
  ~(^$TST(keyword=i_proxy:[03].))$OHDR(Tagged:ProxHTTPSProxyMII FrontProxy/*)$SET(keyword=$GET(keyword)i_proxy:3.)(^)
  ```

2. Redirect connections to http resources with an expression like

  `$USEPROXY(false)$SET(keyword=i_proxy:0.)$RDIR(http://local.ptron/killed.gif)`

User avatar
phoenix
Site Admin
Posts: 524
Joined: Dec 29 2007, 16:27

Re: ProxHTTPSProxyMII: Reloaded

Post by phoenix » Dec 28 2014, 17:53

Code: Select all

Version 1.2 (20141221)
--------------
+ Content is streamed to client, while not cached before sending
* Fix config auto reload
* Less exception traceback dumped
* Tagged header changed from "Tagged:Proxomitron FrontProxy/*" to "Tagged:ProxHTTPSProxyMII FrontProxy/*"
由于 Tagged 值的变化,必须修改 Proxomitron 、 Privoxy 或其他代理的相应设置。
已内置 Openssl ,无需再手动安装 Openssl,程序现在完全便携了。 :D

下载:http://www.proxfilter.net/proxhttpsprox ... %201.2.zip

8905438
Posts: 2
Joined: Feb 12 2014, 20:25

Re: ProxHTTPSProxyMII: Reloaded

Post by 8905438 » Sep 27 2015, 18:18

已用上1.3a版,配合privoxy使用没问题。就是程序签发的证书是sha1的,浏览器会提示证书不安全。
删除自带的ca.crt,使用自己生成的sha256的证书,但签发出来的还是sha1的。
在github上看到CertTool.py的源代码,搜索所有的sha1替换成sha256,测试通过。
T_T还是打包版好啊,很方便,望更新。
倒是想去prxbx.com那里回复,无奈英文实在渣。

User avatar
phoenix
Site Admin
Posts: 524
Joined: Dec 29 2007, 16:27

Re: ProxHTTPSProxyMII: Reloaded

Post by phoenix » Oct 02 2015, 00:15

Code: Select all

Version 1.3.1 (20151001)
--------------
* Certifications are now signed via SHA256 instead of SHA1
重新打包了,下载地址 http://proxfilter.net/proxhttpsproxy/Pr ... oxyMII.zip

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest