From 44c66531baf4e6c80502d853885a36732064d29c Mon Sep 17 00:00:00 2001 From: Izabella Melo Date: Thu, 20 Jan 2022 11:19:05 -0300 Subject: [PATCH] Fix Frida set userdefaults command --- Module-4/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Module-4/README.md b/Module-4/README.md index 889de3d..ae1b282 100644 --- a/Module-4/README.md +++ b/Module-4/README.md @@ -467,8 +467,8 @@ If you've played around with the `CoinZa` application, you've probably noticed t - Up until this point all you've done is following the same steps that you did with `Cydia` but with `Frida`'s interactive console. But you have one step left, enabling the pro version: ```javascript function setProVersion() { - var userDefaultsClass = ObjC.classes.NSUserDefaults; - userDefaultsClass.setObject_forKey_(true,'isProVersion'); + var userDefaultsClass = ObjC.classes.NSUserDefaults.standardUserDefaults(); + userDefaultsClass.setObject_forKey_('YES', 'isProVersion'); } ``` - Now if you increase the balance of any wallet you'll get an extra 20% for free!