The project enters the maintenance phase. Please submit an issue if you have any questions.
- Install configuration file for Shadowrocket.
- Enable HTTPS decryption under this configuration.
- Install the CA certificate -> Download the CA certificate -> Allow -> Settings -> Enter password at the top to install.
- Trust the newly installed certificate in
Settings - General - About - Certificate Trust Settings
. - Go back to Shadowrocket and open
Modules
. - Import the module you need (e.g., legym check-in).
- Enable Shadowrocket proxy and verify its functionality in the app.
- For Android, you need to use a superior routing method for mitm proxy similar to the one mentioned above. The principle is the same, whether it's rooted, soft-routed, or Windows. It all involves CA+rewrite.
https://blingcc.eu.org/legym/legym.module
https://blingcc.eu.org/legym/prefix_legym.module
https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/classsign.module
copy and paste
#!name=Legym
#!homepage=https://github.com/BlingCc233/MITM_modules/tree/archive
#!author=BlingCc
[Script]
Classsign=type=http-response,pattern=https://cpes.legym.cn/education/attainability/info,requires-body=1,script-path=https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/classsign.js
Legym=type=http-response,pattern=https://cpes.legym.cn/education/activity/simple/attainability/get,requires-body=1,script-path=https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/legym.js
prefixLegym=type=http-response,pattern=https://cpes.legym.cn/running/app/getRunningLimit,requires-body=1,script-path=https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/prefix_legym.js
[MITM]
hostname = %APPEND% cpes.legym.cn
Simply copy the following code configuration (excluding
[rewrite_local]
and[mitm]
) to the corresponding field.
[rewrite_local]
^https?:\/\/cpes\.legym\.cn\/running\/app\/getRunningLimit url script-response-body https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/prefix_legym.js
^https?:\/\/cpes\.legym\.cn\/education\/activity\/simple\/attainability\/get url script-response-body https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/legym.js
^https?:\/\/cpes\.legym\.cn\/education\/attainability\/info url script-response-body https://raw.githubusercontent.com/BlingCc233/MITM_modules/main/classsign.js
[mitm]
hostname = cpes.legym.cn