chobits / ngx_http_proxy_connect_module

A forward proxy module for CONNECT request handling
BSD 2-Clause "Simplified" License
1.84k stars 498 forks source link

Is there a function that can combine this module with OpenResty to implement the approximate functionality of Burp? #306

Closed Paper-Dragon closed 2 months ago

Paper-Dragon commented 5 months ago

Does anyone know how to do it?

chobits commented 4 months ago

Use lua to modify the contents of the body, and then proxy_pass to an address

This goes against the module's design philosophy. This module is intended to be a traffic proxy, not to unpack and manipulate traffic.

So i guess if you wanna meet this, you need to rewrite the CONNECT tunnel proxy and modify logic in pure lua within stream module. This module is only design to proxy.