Search for a command to run...
A gift shop app offers different membership tiers, but only the legendary "Frost King" tier holders can see the ultimate prize. Can you climb to the top?
basic_tier, premium_tier, and frost_kinggift_tierFlagProvider class provides the flag when tier is frost_kingassets/debug.html with a JavaScript bridgeThe app includes a debug WebView interface that exposes a javaScript interface, allowing interaction with the native android code from javaScript.
SnowGiftBridgeUsing the JavaScript bridge console:
Set Tier to Frost King
SnowGiftBridge.setTier("frost_king");
Or check current tier first:
SnowGiftBridge.getCurrentTier(); // Returns current tier
Retrieve the Flag
SnowGiftBridge.getFlag(); // Returns the flag when tier is frost_king
From SharedPreferences modification:
adb shell "run-as com.sehno.frozengift sh -c 'mkdir -p shared_prefs && echo \"<map><string name=\\\"gift_tier\\\">frost_king</string></map>\" > shared_prefs/frozen_gift_prefs.xml'"
Then navigate to the gift shop screen in the app to see the flag.