Jump to content

Need help creating tweak or patching jailbreak detection IDA Pro and Theos


saulin

5 posts in this topic

Recommended Posts

Hey guys,

I have tried every anti jailbreak detection tweak in Cydia and nothing works for either Optik on the Go or Virgin TV Anywhere


Back in the days these 2 apps could be patched with Flex for jailbreak detection but now nothing works. Flex cannot see a lot of values that I can see with IDA Pro.

In fact I can clearly see that Optik on the Go checks for apps installed and some specific folders. However it seems that IDA itself cannot patch the binary, everything is done through a Hex Editor and it gets very confusing trying to figure out which value to patch at what address.

Then I found this post 

http://kolbi.cz/blog/?p=286

It seems that the best way to patch it is creating a Cydia tweak with Theos. Now I do have Theos installed and working. And if anyone takes a loo at the binary for Optik on the Go in IDA you will see the method use is very similar to the one used for the Citrix App that gets patched on that link that I provided above. However it has some other files it looks for.

However this is where I need help.

I do need to hook to the class object that has the jailbreak detection right?

Also if I'm trying to create a bool to reurn false, does that mean that the bool value has to exist in that section or I can just create it? because if the bool actually existed I would be able to find it with Flex right? But I cannot find it and that's why these 2 apps are impossible to patch with Flex.


If anyone has time. I can provide the decripted executable for both of these apps. I need help creating the tweak.xm file, then I think I can probbaly build the deb file once I have the propper tweak.xm file.

Here is the ipa I created with Clutch2

https://www.dropbox.com/s/ru23fx3pttczuam/com.telus.nscreen-iOS7.0-(Clutch-2.0.4).ipa?dl=0

I whish I could just change bools and other values in IDA and save the changes back to the executable and replace the executable but it seems that IDA is not able to do that. Every guide I have checked shows how to find values, but then you need to convert some code to hex and patch it with a hex editor; and that's where it gets complicated because no one explains how they actually got the hex values to patch.

That's the nice thing about Flex that you can void stuff and change bool values so easy but it just doesn't work for jailbreak detection in  a few apps.

 

If anyone wants to help I can provide login information for the apps as well.

They are Cable Providers apps that allow you to stream live TV or episodes and movies.

Much like Comcast Xfinity Stream or the DirecTV app. Downgrading does not help because the versions that are hackable by Flex are not longer supported and not compatible with IOS 9/10

 

6 hours ago, saulin said:

 

However this is where I need help.

 

Also if I'm trying to create a bool to reurn false, does that mean that the bool value has to exist in that section or I can just create it? because if the bool actually existed I would be able to find it with Flex right? But I cannot find it and that's why these 2 apps are impossible to patch with Flex.....

 I whish I could just change bools and other values in IDA and save the changes back to the executable and replace the executable but it seems that IDA is not able to do that. Every guide I have checked shows how to find values, but then you need to convert some code to hex and patch it with a hex editor; and that's where it gets complicated because no one explains how they actually got the hex values to patch.

That's the nice thing about Flex that you can void stuff and change bool values so easy but it just doesn't work for jailbreak detection in  a few apps.

 

There aren't any simple bool variables in Flex to change, and ya can't just make them up because the code is still being executed, you just don't see it in Flex.  

 Flex just shows the headers,  not the implementation logic, or specific function(s)/ subfunctions that need modified.  That's where IDA comes in.

If you find where it has the jailbreak check, you'll find a branch to a dead end one way, or back to the main flow the other way. 

Basically you need to find the address of the correct subfunction, then tell it to jump to the address where the sub-function branches to if it's not jailbroken, ( to the main flow) and then void the rest of the subfunction, so it never has a chance to branch to the dead end that having a jailbreak would send ya to.

With the right offsets/addresses, and instructions, you can patch the binary, and with armconverter.com get what you need to make a tweak.

It takes some patience (and a nice learning curve) tho to get there. There's some good tutorials on here for using IDA. Good luck. 

I wish someone would post a tut on any of these 2 apps. I can find lots of references to jailbreak and jailbroken but what to patch is the big question. Also since there is no true of false values to change makes it a lot harder than altering the money value on a game lol

I swear these 2 apps are more protected than bank apps. They have some crazy jailbreak protection, nothing seems to work

Oh well back to smali code hacking on Android for me. I was able to patch the Android version of Optik on the Go but the Virgin TV Anywhere App is showing to be a real challenge as well.

 

***EDIT**

 

Watching this video

 

It looks like this guy is able to NOP the values that send the jailbreak message right in the program and then he's able to save a new executable?

At  around 10:30 on the video he starts explaining how the jailbreak is called

Can IDA in Windows do the same?

Otherwise do I just need a virtual machine with Mac software to install that Hopper software he's using?

This is exactly what I was hopping I would be able to do with IDA

The patch function does nothing in IDA for me. I can seem to be able to remove stuff but the changes are not reflected in the Hex area and also, I'm not able to save any changes or the difference of the changes for ARM64 IOS games and apps anyways.

Also I was trying to patch a game to get the items for free. I thought I had found the correct subs entry and I tried to NOP it with a hex editor in Windows. After I made the changes and transferred the modified executable back to the game.app folder on the device, the app just crashes, even though the permissions were set exactly the same as the other files in the folder. What is the proper way to to transferred the modified files back to the app or game?

However if I modify the hex values right on the phone itself with the Hex Editor built into Filza File Manager, the app doesn't crash but it looks like I got the wrong entry or I was not supposed to NOP it anyways because the app crashes when I try to make the purchase.

 

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Matchington Mansion Cheats v1.175.0 +5
      Modded/Hacked App: Matchington Mansion by Baklava Entertainment Societe Anonyme
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://itunes.apple.com/us/app/matchington-mansion/id1216575026?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Moves
      - Infinite Lives
      - Infinite Booster
      - Infinite Coin (Spend some/ Get some)
      - Infinite Stars (Complete task without needing Stars)



      Hack Download Link: https://iosgods.com/topic/75127-arm64-matchington-mansion-cheats-v131-5/
      • 789 replies
    • Matchington Mansion v1.175.0 Jailed Cheats +3
      Modded/Hacked App: Matchington Mansion By Magic Tavern, Inc.
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://apps.apple.com/us/app/matchington-mansion/id1216575026?uo=4


      Hack Features:
      - Infinite Moves
      - Infinite Booster
      - Infinite Lives
       


      Jailbreak required hack(s): https://iosgods.com/topic/75127-arm64-matchington-mansion-cheats-all-versions-5/#


      Hack Download Link: https://iosgods.com/topic/75130-arm64-matchington-mansion-v1970-jailed-cheats-3/
      • 629 replies
    • The Crown Saga: Pi’s Adventure Cheats v1.0.17 +6
      Modded/Hacked App: The Crown Saga: Pi’s Adventure By SuperPlanet corp.
      Bundle ID: com.superplanet.crown
      iTunes Store Link: https://apps.apple.com/us/app/the-crown-saga-pis-adventure/id6636483923?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
      - Instant Skills
      - Infinite MP
      - Custom Move Speed


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
       


      iOS Hack Download Link: https://iosgods.com/topic/188573-the-crown-saga-pi%E2%80%99s-adventure-cheats-v107-6/
      • 63 replies
    • Demon Squad: Idle RPG Cheats v1.69 +2
      Modded/Hacked App: Demon Squad: Idle RPG By SuperPlanet corp.
      Bundle ID: com.superplanet.demonsquad
      iTunes Store Link: https://apps.apple.com/us/app/demon-squad-idle-rpg/id6504470907?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/185576-demon-squad-idle-rpg-cheats-v139-2/
      • 80 replies
    • Smurfs' Village Cheats v2.75.0 +1 [ Freeze Currencies ]
      Modded/Hacked App: Smurfs' Village By Garden City Games Ltd
      Bundle ID: com.capcommobile.smurfs
      iTunes Store Link: https://apps.apple.com/us/app/smurfs-village/id399648212?uo=4

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Freeze Currencies


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/75947-smurfs-village-v2741-jailed-cheats-1-freeze-currencies/

       

      📥 iOS Hack Download Link: https://iosgods.com/topic/75948-smurfs-village-cheats-v2741-1-freeze-currencies/
      • 440 replies
    • Hungry Hearts Restaurant v1.0.9 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hungry Hearts Restaurant By GAGEX Co.,Ltd.
      Bundle ID: jp.co.gagex.rigel
      iTunes Store Link: https://apps.apple.com/us/app/hungry-hearts-restaurant/id6504782640?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Spend some.
      - Unlimited Hearts -> Will not decrease.


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Hungry Hearts Restaurant v1.0.7 +2 Cheats [ Unlimited Currencies ] - Free Jailbreak Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 5 replies
    • Hungry Hearts Restaurant v1.0.9 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hungry Hearts Restaurant By GAGEX Co.,Ltd.
      Bundle ID: jp.co.gagex.rigel
      iTunes Store Link: https://apps.apple.com/us/app/hungry-hearts-restaurant/id6504782640?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Spend some.
      - Unlimited Hearts -> Will not decrease.


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Hungry Hearts Restaurant v1.0.7 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 7 replies
    • Train of Hope: Survival Game v1.1.0 +3 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
      - Free In-App Purchases
      • 4 replies
    • Train of Hope: Survival Game v1.1.0 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Train of Hope: Survival Game By Samfinaco LLC
      Bundle ID: com.samfinaco.tos
      iTunes Store Link: https://apps.apple.com/us/app/train-of-hope-survival-game/id6636482655?uo=4

       
       

      🤩 Hack Features

      - Unlimited Resources -> Will increase instead of decrease.
      - Unlimited Hero Experience -> Will increase instead of decrease.
      - Free In-App Purchases
      • 9 replies
    • [Exclusive] Archero 2 v1.0.13 +3++ Mod
      Modded/Hacked App: Archero 2 By HABBY PTE. LTD.
      Bundle ID: com.xq.archeroii
      iTunes Store Link: https://apps.apple.com/us/app/archero-2/id6502820653?uo=4

      ATTENTION!


      using cheats can lead to account ban
      USE IT ON UR OWN RISK

      CHEATS NOT TESTED FOR BANS

       

      🤩 Hack Features

      - Load Mod - after activation or deactivation need restart app
      - Boost Skill Quality - better quality skills for learn
      - Block Rush - disable rusher also works for boss rush
      - Spawn Center - mobs fixed spawn at center
      - Boost Knockback - much more powerful knockback
      - Replace skill on learn - replacing skill (if this skill not yet learned) on learning - u can activate one before learning or activate all and they will be learnt in order they are in list
      - Account Switcher - activate and u got 0-9 accounts
      • 10 replies
    • Top Troops: Adventure v2.2.3 +2 Jailed Cheats
      Modded/Hacked App: Top Troops: Adventure RPG By Zynga Inc.
      Bundle ID: game.socialempiresmerge
      iTunes Store Link: https://apps.apple.com/us/app/top-troops-adventure-rpg/id1574634455?uo=4

      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - x4 currency earn
      • 327 replies
    • Top Troops v2.2.3 Cheats +2 Cheats
      Modded/Hacked App: Top Troops: Adventure RPG By Zynga Inc.
      Bundle ID: game.socialempiresmerge
      iTunes Store Link: https://apps.apple.com/us/app/top-troops-adventure-rpg/id1574634455?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Frozen currency
      - x4 currency earn
      • 289 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines