From 2ff0f3fb56798f6482e2a5b4e126b4f93bc957fd Mon Sep 17 00:00:00 2001 From: julioverne Date: Sat, 20 Aug 2022 15:28:51 -0300 Subject: [PATCH] Fix Login Fixes Login Account from Insecure App --- uYouPlus.xm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 68d89be..ad6537e 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -374,6 +374,23 @@ BOOL hidePaidPromotionCard() { } %end +%hook NSJSONSerialization ++ (id)dataWithJSONObject:(id)arg1 options:(unsigned long long)arg2 error:(id*)arg3 +{ + @try { + if(arg1 && ([arg1 isKindOfClass:[NSDictionary class]] || [arg1 isKindOfClass:[NSMutableDictionary class]]) ) { + if(arg1[@"device_challenge_request"] != nil) { + NSMutableDictionary *MutRet = [arg1 mutableCopy]; + [MutRet removeObjectForKey:@"device_challenge_request"]; + arg1 = MutRet; + } + } + }@catch(NSException*e){ + } + return %orig(arg1, arg2, arg3); +} +%end + # pragma mark - OLED dark mode by BandarHL UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:1.0]; %group gOLED @@ -773,4 +790,4 @@ static void replaceTab(YTIGuideResponse *response) { if (@available(iOS 16, *)) { %init(iOS16); } -} \ No newline at end of file +}