Jump to content

Hooking method(s) with a dot class in Flex to Tweak.xm


13 posts in this topic

Recommended Posts

Updated (edited)

In some of the apps, when you try to hack a class with a  "." or a dot function.

nKz8Kcz.png

 

Flex to Tweak.xm Tutorial:

https://iosgods.com/topic/904-tutorialvideo-hack-games-with-flex-and-convert-it-to-deb-tweak/

There are more on this kind, check them out!

 

Let's get started!

In Flex, it would work fine, but when you try to convert flex to tweak.xm and make package.

It gives you an error, "error: cannot use dot operator on a type"

*I don't hack this application, it's an example to solve this issue*

 

Using the tutorial, flex to tweak.xm.

I get this,

%hook OkCupid.OKMessage
-(BOOL)read {
return TRUE;
}
%end

It will throw me an error after "make package" command in terminal.

 

A way around the error template:

%hook AnyRandomNameHere
- (id)description {
    return %orig();
}
%end

%ctor {
    %init(AnyRandomNameHere = objc_getClass("ClassNameWithADotHere"));
}

 

Now, I will convert it in this way.

Final Code:

%hook CupidMess
-(BOOL)read {
return TRUE;
}
%end

%ctor {
    %init(CupidMess = objc_getClass("OkCupid.OKMessage"));
};

I saved the file and use "make package" command and it proceed without error!

 

 

Adding 2 or more dot functions Guide

 

  Reveal hidden contents

 

Credits:

@Amuyea for this tutorial.

@AnotherLurker for this post regard to this issue in Help & Support.

https://iosgods.com/topic/41019-theos-errorswift/?do=findComment&comment=1340552

 

Updated by Amuyea
  • Like 7
  • Winner 2
  • Thanks 2
  • Agree 1
Posted (edited)
  On 12/8/2017 at 4:31 AM, xiaov said:

i was looking for method to replace the Class Name last night. Thanks @Amuyea

Expand  

You are welcome :p

Updated by Amuyea
Posted (edited)

saved my day

P.S.: Do not use tabulator or other white spaces after "%init(", it will interpret it as an illegal classname (using theos git from 30.01.2018). After the first argument you are free to use what you want for pretty printing.

Updated by wallis

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

    • Tiny Defense - Tower Defense v0.5.0 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4

       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
        • Winner
        • Like
      • 13 replies
    • Tiny Defense - Tower Defense v0.5.0 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
        • Winner
        • Like
      • 9 replies
    • Medieval Merge v1.90.1 [Currency/SRDebug 99+ Options]
      Modded/Hacked App: Medieval Merge: Epic RPG Games By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.free.rpg.medieval.merge.puzzle.empire
      iTunes Store Link: https://apps.apple.com/us/app/medieval-merge-epic-rpg-games/id1553126598?uo=4

      Hack Features:
      - SRDebugger 99+ Toggles
      Open IGMM first and enable "Open SRDebug" then open settings in game for the UI to popup  


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 180 replies
    • Brick Out - Shoot the ball v25.0702.01 +5 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?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:
      - No Ads
      - Free Revives


      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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 113 replies
    • Brick Out - Shoot the ball v25.0702.01 +5 [Currency Hack]
      Modded/Hacked App: Brick Out - Shoot the ball By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.brickoutshoottheball
      iTunes Store Link: https://apps.apple.com/us/app/brick-out-shoot-the-ball/id1489900957?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:
      - No Ads
      - Add 10000 Rubies
      - Free Revives


      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/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 114 replies
    • State Connect: Traffic Control v1.145 +2 Jailed Cheats [SRDebugger]
      Modded/Hacked App: State Connect: Traffic Control By AI GAMES FZ LLC
      Bundle ID: state.connect.game
      iTunes Store Link: https://apps.apple.com/us/app/state-connect-traffic-control/id1590353335?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:
      - No Ads Popup
      - Free Everything


      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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 33 replies
    • State Connect: Traffic Control v1.145 +3 [SRDebugger]
      Modded/Hacked App: State Connect: Traffic Control By AI GAMES FZ LLC
      Bundle ID: state.connect.game
      iTunes Store Link: https://apps.apple.com/us/app/state-connect-traffic-control/id1590353335?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:
      - No Ads Popup
      - Free Everything


      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/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 42 replies
    • Andy Volcano: Tile Match Story v1.5.9 +7 [OP Cheats]
      Modded/Hacked App: Andy Volcano: Tile Match Story By SayGames LTD
      Bundle ID: com.playstrom.tile.match
      iTunes Store Link: https://apps.apple.com/us/app/andy-volcano-tile-match-story/id1639080259?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:
      - Infinite Health
      - Infinite Coins
      - Infinite Stars
      - Infinite Gloves
      - Infinite Boomerangs
      - Infinite Propellers
      - Infinite Bombs


      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/


        • Like
      • 20 replies
    • Andy Volcano: Tile Match Story v1.5.9 +7 [OP Cheats]
      Modded/Hacked App: Andy Volcano: Tile Match Story By SayGames LTD
      Bundle ID: com.playstrom.tile.match
      iTunes Store Link: https://apps.apple.com/us/app/andy-volcano-tile-match-story/id1639080259?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:
      - Infinite Health
      - Infinite Coins
      - Infinite Stars
      - Infinite Gloves
      - Infinite Boomerangs
      - Infinite Propellers
      - Infinite Bombs


      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/


        • Agree
        • Like
      • 18 replies
    • Tetris v7.3.1 +3 Jailed Cheats [Freeze Falldown]
      Modded/Hacked App: Tetris® By Playstudios, Inc.
      Bundle ID: com.n3twork.tetris
      iTunes Store Link: https://apps.apple.com/us/app/tetris/id1491074310?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:
      - No Ads
      - Freeze Falldown


      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
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 64 replies
    • Tetris v7.3.1 +3 [Freeze Falldown]
      Modded/Hacked App: Tetris® By Playstudios, Inc.
      Bundle ID: com.n3twork.tetris
      iTunes Store Link: https://apps.apple.com/us/app/tetris/id1491074310?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:
      - No Ads
      - Freeze Falldown


      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/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 54 replies
    • Hole.io v2.27.10 [OVERPOWERED Debugger]
      Modded/Hacked App: Hole.io By Voodoo
      Bundle ID: com.nguyenvh.holeio
      iTunes Store Link: https://apps.apple.com/us/app/hole-io/id1389111413?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:

      Overpowered Debug Menu with Cheat Panel + more




      Click "Show Debug Button" in Mod Menu. Once enabled once you can delete the deb and the TestKit will still show up as this hack adds your DeviceUID to the Test Devices list. No need to open IGM when enabled once!






      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/


        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 159 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