forked from SoDOff-Project/sodoff
don't encrypt ValidateName response; update mitm endpoints
This commit is contained in:
parent
4c811cff42
commit
6f32e5a8ff
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user