Skip to content

csrgxtu/middleman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

middleman

middle man, a proxy use cloud functions as an traffic proxy, cuz some cloud functions are running in foreign regions which don't have network limitations like China mainland.

here is the traffic flow:

browser(url: google.com) -> local-proxy(mitmproxy) -> remote-proxy(cloud functions in foreign regions) -> google.com -> remote-proxy(cloud functions) -> local-proxy(mitmproxy) -> browser

Quick Start

1st, create an cloud function in Tencent Cloud and deploy it. (set SCF_TOKEN same as 2nd step in code remote_proxy.py)

create_scf_http_proxy_1.png create_scf_http_proxy_2.png create_scf_http_proxy_3.png

2nd, start local proxy (set SCF_TOKEN and SCF_SERVERS as following in local_proxy.py)

create_scf_http_proxy_4.png

mitmdump -s local_proxy.py -p 8081 --no-http2 --ssl-insecure 

3rd, now point your brower to this local proxy and surf the internet!!!

local proxy address: localhost:8081

About

Use cloud functions as man in the middle to proxy traffics, used for learning only!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages