Skip to content

Instantly share code, notes, and snippets.

@broven
Last active April 15, 2024 10:33
Show Gist options
  • Save broven/80370266b507dcb672f63c301ea588b2 to your computer and use it in GitHub Desktop.
Save broven/80370266b507dcb672f63c301ea588b2 to your computer and use it in GitHub Desktop.
surge module
#!name=damai-dev
#!system=mac
[URL Rewrite]
^http://waptest\.damai\.test http://127.0.0.1:6001 header
#!name=ks-add-referrer
#!desc=https://gist.github.com/[gist_user]/[gist_id]/raw/
[Header Rewrite]
^https?://wxapi.(wapa|m).taopiaopiao.com\/h5\/.*?platform%22%3A193 header-add referer https://miniapi.ksapisrv.com/ks655273746376208870/10/page-frame.html
[MITM]
hostname = %APPEND% wxapi.*.taopiaopiao.com
#!name=MitM All Hostnames
#!desc=Perform MitM on all hostnames with port 443, except those to Apple and other common sites which can't be inspected. You still need to configure a CA certificate and enable the main switch of MitM.
[MITM]
hostname = -*.apple.com, -*.icloud.com, -*.mzstatic.com, -*.crashlytics.com, -*.facebook.com, -*.instagram.com, *
#!name=mpass-change-referrer
#!desc=https://gist.github.com/[gist_user]/[gist_id]/raw/
[Header Rewrite]
^https?://wxapi.(wapa|m).taopiaopiao.com\/h5\/.*?platform%22%3A195 header-replace referer https://servicewechat.com/wx553b058aec244b78/devtools/page-frame.html
^https?://wxapi.(wapa|m).taopiaopiao.com\/h5\/.*?platform%22%3A195 header-replace x-tap wx
^https?://wxapi.(wapa|m).taopiaopiao.com\/h5\/.*?platform%22%3A197 header-replace referer https://servicewechat.com/wx553b058aec244b78/devtools/page-frame.html
^https?://wxapi.(wapa|m).taopiaopiao.com\/h5\/.*?platform%22%3A197 header-replace x-tap wx
[MITM]
hostname = %APPEND% wxapi.*.taopiaopiao.com
#!name=uic-pre-3
[Header Rewrite]
^https?://passportpre\.taopiaopiao\.com\/mini_program\/login\.do header-add EagleEye-UserData scm_project=login_stage3
[MITM]
hostname = %APPEND% passportpre.taopiaopiao.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment