Jump to content

Creating a tweak/.deb hack using CSCI patcher


Go to solution Solved by castix,

17 posts in this topic

Recommended Posts

Posted

Hey guys, the title is pretty self explaining - I'm kinda desperate. Been trying everything in te last 3 hours to make my hack finally work. I've been trying to create a hack by using this method here:  http://iosgods.com/topic/2355-updatetemplate-custom-nic-code-injection-template/

and can't get quite forward. What I did is:

 

1. Enter ''/var/theos/bin/nic.pl''

2. Select iosgods/cscipatcher

 

3. Drag the tweak.xml to my pc and edited it in the following way, I entered:

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.xxx.xxx.plist"

inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
if(GetPrefBool(@"kKey"))
{
writeData(0xOFFSET, 0xHACKEDHEX);
} else {
writeData(0xOFFSET, 0xORIGINALHEX);
}

if(GetPrefBool(@"kGems"))
{
writeData(0x10963C, 0xC0F8AC70);
} else {
writeData(0x10963C, 0xC0F8AC20);
}

if(GetPrefBool(@"kLives"))
{
writeData(0x10ACEA, 0xC0F8C871);
} else {
writeData(0x10ACEA, 0xC0F8C811);
}

if(GetPrefBool(@"kLives2"))
{
writeData(0x28F17E, 0x0120C046);
} else {
writeData(0x28F17E, 0x5FF0CDFD);
}
} 

4. Now I edited the code to the following:

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mayaxaya.rob.plist"


inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}


%ctor {
if(GetPrefBool(@"kRunes"))
{
writeData(0x00327584, 0xF0B5);
writeData(0x00327586, 0x03AF);
} else {
writeData(0x00327584, 0xC046);
writeData(0x00327586, 0x7047);
}
}

and moved it back to the project directory.

 

5. Now I typed in ''make package'' in order to get my deb file, but I'm facing a shitload of errors. Anyone seeing big mistakes in what I've done?

Quite new to this theos stuff, so pls have mercy and don't hit on me

 

 

 

cheers

 

 

m.

 

Posted

cd into your project folder and run this in terminal:

 

make package messages=yes

 

Paste the outcome here.

Posted

You can't assign more than one argument to an if conditional. Next thing is that you hack 2 times the same address but with a different original value ...

Posted

You can't assign more than one argument to an if conditional. Next thing is that you hack 2 times the same address but with a different original value ...

You're saying he should seperate them but with the same key so they'll both get activated?

 

That still shouldn't be generating an error anyways. :/

Posted

You're saying he should seperate them but with the same key so they'll both get activated?

 

That still shouldn't be generating an error anyways. :/

If he doesn't have writeData in his project folder he'll get a lot errors
Posted

If he doesn't have writeData in his project folder he'll get a lot errors

He does though because he used the template and theos would tell him he's missing it instead of that error.

 

Running that above command will help determine what's wrong.

Posted

You can't assign more than one argument to an if conditional. Next thing is that you hack 2 times the same address but with a different original value ...

The thing is that I want to have ONE Single switch in the Future tweak to enable the hack. As you can see it's not the exact Same Adress, the last one differs in one Unit (ends with 6 not 4)

In IDA I did one of the standard steps to hack the function namely:

 

Change F0B5 03AF -> C046 7047

 

While F0b5 is at the offset (not adress) 032....4, 03af is one line below (Ending with 6.)

 

 

Ill post the massages in a sec

Posted

cd into your project folder and run this in terminal:

 

make package messages=yes

 

Paste the outcome here.

 

 

This is the very outcome:

Felix-iPhone-5:~/rob root# make package messages=yes
/var/root/rob/theos/makefiles/targets/Darwin-arm/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/root/rob/theos/makefiles/targets/Darwin-arm/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak rob...
make -f Makefile --no-print-directory --no-keep-going 
                internal-library-compile 
                _THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=rob _THEOS_CURRENT_OPERATION=compile 
                THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes
make[2]: Nothing to be done for `internal-library-compile'.
Making all in rob...
make[1]: Entering directory `/private/var/root/rob/rob'
Making all for bundle rob...
mkdir -p "obj/rob.bundle/"
mkdir -p "obj/rob.bundle/"
mkdir -p "obj/rob.bundle/"
for d in Resources; do 
                if [ -d "$d" ]; then 
                        rsync -a "$d/" "./obj/rob.bundle/" --exclude "_MTN" --exclude ".git" --exclude ".svn" --exclude ".DS_Store" --exclude "._*"; 
                else 
                        echo "Warning: ignoring missing bundle resource directory $d."; 
                fi; 
        done
make -f Makefile --no-print-directory --no-keep-going 
                internal-bundle-compile 
                _THEOS_CURRENT_TYPE=bundle THEOS_CURRENT_INSTANCE=rob _THEOS_CURRENT_OPERATION=compile 
                THEOS_BUILD_DIR="." _THEOS_MAKE_PARALLEL=yes
clang++ -x objective-c++ -c -DTARGET_IPHONE=1 -O2 -I/var/root/rob/theos/include -include /var/root/rob/theos/Prefix.pch -Wall -Werror -isysroot "/var/root/rob/theos/sdks/iPhoneOS7.0.sdk" -arch armv7 -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_3_0 -miphoneos-version-min=3.0    -F/var/root/rob/theos/sdks/iPhoneOS7.0.sdk/System/Library/PrivateFrameworks             rob.mm -o obj/rob.mm.27f2d2dc.o
rob.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.
make[3]: *** [obj/rob.mm.27f2d2dc.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [rob.all.bundle.variables] Error 2
make[1]: Leaving directory `/private/var/root/rob/rob'
make: *** [internal-all] Error 2
Felix-iPhone-5:~/rob root# 
  • Solution
Posted

This is the very outcome:

rob.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.

Why is this even a .mm file ? Anyway download the iPhone headers from rptrich on his Github repo (Do not replace the substrate.h)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Monster Legends: Collect all Cheats v17.8.5 +8
      Modded/Hacked App: Monster Legends: Merge RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-merge-rpg/id653508448?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

      - 1 Hit Kill
      - Skip Enemy Turn
      - Multiply Attack
      - Multiply Defense
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win
      - Auto Play Battle Enabled for All Maps


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/140543-monster-legends-collect-all-v1778-5-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-cheats-v1779-8/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 324 replies
    • Township: Farm & City Building v27.0.0 Jailed Cheats +2
      Modded/Hacked App: Township by PLR Worldwide Sales Limited
      Bundle ID: com.playrix.township-ios
      iTunes Store Link: https://apps.apple.com/us/app/township/id638689075?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      EDIT: Please be aware that this maybe cause your account banned, please use with caution and don’t abuse


      iOS Hack Download Link: https://iosgods.com/topic/116584-arm64-township-farm-city-building-v852-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,662 replies
    • Tower of God: NEW WORLD Cheats v2.09.00 +4
      Modded/Hacked App: Tower of God: NEW WORLD By Netmarble Corporation
      Bundle ID: com.netmarble.tog
      iTunes Store Link: https://apps.apple.com/us/app/tower-of-god-new-world/id1599435437?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Critical
      - Skip Battle Intro


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186202-tower-of-god-new-world-cheats-v20101-4/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 86 replies
    • Magical Girl : Idle Pixel Hero v6.31 +2 Jailed Cheats
      Modded/Hacked App: Magical Girl : Idle Pixel Hero By SuperPlanet corp.
      Bundle ID: com.superplanet.magical
      App Store Link: https://apps.apple.com/us/app/magical-girl-idle-pixel-hero/id6450410750?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Loot Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
        • Like
      • 4 replies
    • Heroes vs. Hordes: Survivor v3.7.1 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Thanks
        • Winner
        • Like
      • 54 replies
    • Heroes vs. Hordes: Survivor v3.7.1 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       

       

      Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
        • Agree
        • Thanks
        • Winner
        • Like
      • 67 replies
    • Adventure Bay - Farm Games v1.37.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Like
      • 8 replies
    • Adventure Bay - Farm Games v1.37.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 12 replies
    • Pocket Necromancer v1.4.1 [ +11 Cheats ] Gold Unlimited
      Modded/Hacked App: Pocket Necromancer By Sandsoft Publishing Company
      Bundle ID: com.quicksand.pocketnecromancer
      iTunes Store Link: https://apps.apple.com/us/app/pocket-necromancer/id6450004790?uo=4


      Hack Features:
      - ADS NO [ Reward Fee ]

      - Premium Active

      - Energy Cost 0

      - Energy Increaser

      - Gold Unlimited [ Win Battle ] Rewards

      - Stage Unlocked

      - Chapter Unlocked +2

      - Play Any [ Stage & Ch ]

      - Never Die

      - DMG

      - Speed Mov

      - Bullet Max [ Works With Weapon Only Just Equip ]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Winner
        • Like
      • 43 replies
    • Pocket Necromancer v1.4.1 [ +11 Jailed ] Gold Unlimited
      Modded/Hacked App: Pocket Necromancer By Sandsoft Publishing Company
      Bundle ID: com.quicksand.pocketnecromancer
      iTunes Store Link: https://apps.apple.com/us/app/pocket-necromancer/id6450004790?uo=4


      Hack Features:

      - ADS NO [ Reward Fee ]

      - Premium Active

      - Energy Cost 0

      - Energy Increaser

      - Gold Unlimited [ Win Battle ] Rewards

      - Stage Unlocked

      - Chapter Unlocked +2

      - Play Any [ Stage & Ch ]

      - Never Die

      - DMG

      - Speed Mov

      - Bullet Max [ Works With Weapon Only Just Equip ]

       
      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App
        • Informative
        • Agree
        • Winner
        • Like
      • 44 replies
    • Galaxy Attack Alien Shooter v5.12.0 [ +3 Jailed ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By DINO GAME LIMITED
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?uo=4


      Hack Features:
      - Max Bullet
      - Max Life
      - DMG



      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Winner
        • Like
      • 36 replies
    • Galaxy Attack Alien Shooter v5.12.0 [ +3 Cheats ] Never Die
      Modded/Hacked App: Galaxy Attack: Alien Shooter By ABIGAMES PTE. LTD
      Bundle ID: com.alien.shooter.galaxy.attack
      iTunes Store Link: https://apps.apple.com/us/app/galaxy-attack-alien-shooter/id1176011642?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:
      - Max Life 
      - Damage Multi [PvP Use Only Boss ] 
      - Max Bullet



      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content

      Download Hack
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 192 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