risporce / Supercell-jailbreak

A script to automatically remove the protection in Supercell games
212 stars 13 forks source link

How to install and use it now? #67

Closed HarryPD168 closed 2 weeks ago

Alzentane commented 3 weeks ago

Use TrollStore

risporce commented 3 weeks ago

You have to use the script now, no IPAs will be uploaded from now on.

follow instructions here starting at the prerequisites here

If you are stuck at some steps, dm me, tell me which and what have you tried so far so that i will be able to guide you

HarryPD168 commented 3 weeks ago

starting

I don’t know much about the code. Can you provide deb/dylib files so that I can import them into the application?

risporce commented 3 weeks ago

you don't really need to understand anything about the code, all you need to do is follow the instructions in the usage section.

I'm well aware this is hard for a lot of people, many never used a terminal before which is why i'm willing to help and improve next weekend how to use it step by step with pictures, i'm preparing that right now

snam11 commented 3 weeks ago

you don't really need to understand anything about the code, all you need to do is follow the instructions in the usage section.

I'm well aware this is hard for a lot of people, many never used a terminal before which is why i'm willing to help and improve next weekend how to use it step by step with pictures, i'm preparing that right now

i guess it was an easy task but seems i get stuck at the very first stage... i've installed python, updated pip, installed frida, but when it comes to machlib there is no way i can make it work. I've tested on 2 different machines but i get the same error: pip install machlib
ERROR: Could not find a version that satisfies the requirement machlib (from versions: none) ERROR: No matching distribution found for machlib

any tips on how to solve this issue?

risporce commented 3 weeks ago

you don't really need to understand anything about the code, all you need to do is follow the instructions in the usage section. I'm well aware this is hard for a lot of people, many never used a terminal before which is why i'm willing to help and improve next weekend how to use it step by step with pictures, i'm preparing that right now

i guess it was an easy task but seems i get stuck at the very first stage... i've installed python, updated pip, installed frida, but when it comes to machlib there is no way i can make it work. I've tested on 2 different machines but i get the same error: pip install machlib ERROR: Could not find a version that satisfies the requirement machlib (from versions: none) ERROR: No matching distribution found for machlib

any tips on how to solve this issue?

I am so sorry, I made a little typo for the name of it, the package name should be macholib, so pip install macholib, I’ll go fix that right now

Thank you for telling me about this

snam11 commented 3 weeks ago

actually i've fixed the issue by downloading the files from github and installing it manually with: python3 -m pip install -e pathtodownloadedfolder

but now i have a different issue. i've dowloaded latest ipa, renamed to zip, and extracted the .app file. opened the app file (show package content), extracted the bin from there and placed it in the python script folder. i get this error: python3 sc_protector_file_parser.py --game "laser"
Found LC_DYLD_INFO_ONLY at offset at : 0x11c8 Found string table fixing address at: 0x1152f30 Found symbol table start address at: 0x12bc570 Found protector loader at: 0x1300 zsh: segmentation fault python3 sc_protector_file_parser.py --game "laser"

risporce commented 3 weeks ago

It looks like to have a problem exiting the frida session on your OS. I'll try to look into the issue, can you tell me what Operating System you are using? I only have a windows 11 pc and that's it

snam11 commented 3 weeks ago

so my setup is a 2012 imac, on catalina, no windows. btw the main issue is the supercell apps detecting my phone x as jailbroken (but is not, i just have trollstore). so since i didn't find a way to fix this false positive detection i'm doomed to fix the app on every update

btw i've downloaded latest ipa from a site, extracted the app using a zip manager, and a mac feature (show package content) to extract the bin from the app

risporce commented 3 weeks ago

It's possible that the updated version of the protector Supercell is now shipping in their client since a week is now capable of detecting TrollStore even without jailbreak

However, to execute this script, you must have jailbreak, or else it won't work.

snam11 commented 3 weeks ago

well, i have 2 iphone x on 16.6, both with trollstore and just one has this weird behaviour with the app crashing, btw, what can be the issue? i mean, i didn't rip the ipa from the phone but i've downloaded from a site. is it mandatory to install the ipa on the phone and transfer it to the pc/mac (and from there script+sideload/install with trollstore)?

risporce commented 3 weeks ago

I believe there's something else you can do, but it's a little more complicated.

Frida-Server needs to be installed in other for the script to gather the necessary information from the protector executing at runtime. But you could try to setup Frida-Gadget in the application, you will also need to change the command to launch the application on your iPhone in the script: https://frida.re/docs/ios/#without-jailbreak

I am not comfortable with this method i probably won't be able to help you there, but it should work in the end

snam11 commented 3 weeks ago

thnx i'll have a look in the afternoon. sorry for the dumb question: why is the phone needed since the ipa(s) can be downloaded from internet and files can be extracted from there? and right after the patch with your script, packed back to ipa and sideloaded to the phone?

risporce commented 3 weeks ago

the script to gather the necessary information from the protector executing at runtime

Basically for this reason, in runtime the protector is decrypting the encrypted data used to build back the executable binary, so the script is used to gather the decrypted data and then use the information to rebuild the binary

HarryPD168 commented 3 weeks ago

image

There is no module with this name (macholib.MachO)

risporce commented 3 weeks ago

You need to install it with pip install macholib

rldv1 commented 3 weeks ago

simple guide, i hope this will be clear to many:

lets imagine that we dont have the original IPA, lets use the igamegod utility

  1. jailbreak your iphone (rootfully) (in my case with iPhone X on iOS 16: palera1n -f -c -vv -V)
  2. download brawl stars in appstore, then install igamegod in sileo and extract decrypted binary from game
  3. move decrypted binary (for example: laser for brawl stars) to your pc and put it into same folder with script
  4. make sure that frida is discover your phone (check by frida-ps -U) and run the script
  5. while script running - app on iphone should open and crash, but that's how it should be
  6. your binary now must be patched, nice, now just repack IPA and install it with sideloadly or whatever suits you

(i can do a complete rewrite of script xd, i appreciate his work)