Skip to content

Instantly share code, notes, and snippets.

@raffeyang
Forked from broven/MitM All Hostnames
Last active April 15, 2024 10:50
Show Gist options
  • Save raffeyang/7ff80ec90ab387a727f539cf46b7ef46 to your computer and use it in GitHub Desktop.
Save raffeyang/7ff80ec90ab387a727f539cf46b7ef46 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=iCloud
#!desc=iCloud
[MITM]
hostname = *.icloud.com
#!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=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