From 6f32e5a8ff99ef78bfb659d96a0bb0f746e4e40f Mon Sep 17 00:00:00 2001 From: Spirtix Date: Sun, 18 Jun 2023 11:03:13 +0200 Subject: [PATCH] don't encrypt ValidateName response; update mitm endpoints --- mitm-redirect.py | 4 ++-- src/Controllers/Common/ContentController.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mitm-redirect.py b/mitm-redirect.py index 91a8547..ec99e3f 100644 --- a/mitm-redirect.py +++ b/mitm-redirect.py @@ -3,7 +3,7 @@ import mitmproxy.http def routable(path): - methods = ['GetRules', 'LoginParent', 'RegisterParent', 'GetSubscriptionInfo', 'GetUserInfoByApiToken', 'IsValidApiToken_V2'] + methods = ['GetRules', 'LoginParent', 'RegisterParent', 'GetSubscriptionInfo', 'GetUserInfoByApiToken', 'IsValidApiToken_V2', 'ValidateName', 'GetDefaultNameSuggestion', 'RegisterChild', 'GetProfileByUserId', 'LoginChild', 'GetUserProfileByUserID'] for method in methods: if method in path: return True @@ -15,7 +15,7 @@ class LocalRedirect: print('Loaded redirect addon') def request(self, flow: mitmproxy.http.HTTPFlow): - if 'common.api.jumpstart.com' in flow.request.pretty_host and routable(flow.request.path): + if 'api.jumpstart.com' in flow.request.pretty_host and routable(flow.request.path): flow.request.host = "localhost" flow.request.scheme = 'http' flow.request.port = 5000 diff --git a/src/Controllers/Common/ContentController.cs b/src/Controllers/Common/ContentController.cs index 848f903..c9b31a7 100644 --- a/src/Controllers/Common/ContentController.cs +++ b/src/Controllers/Common/ContentController.cs @@ -28,7 +28,6 @@ public class ContentController : Controller { [HttpPost] [Produces("application/xml")] [Route("V2/ContentWebService.asmx/ValidateName")] - [EncryptResponse] public IActionResult ValidateName([FromForm] string apiToken,[FromForm] string nameValidationRequest) { User? user = ctx.Sessions.FirstOrDefault(e => e.ApiToken == apiToken)?.User; if (user is null) {