Jump to content

How to use syslog to your advantage


Guest

63 posts in this topic

Recommended Posts

Printing return values and arguments to syslog is a great way to use MSHookFunction to your advantage. I have done this many times now and have re-wrote some functions based on what the output was in syslog.

Requirements:
Flexible (from BigBoss)
syslogd to /var/log/syslog (saurik's repo, but I think that's optional)
Hopper

 

Hidden Content

    Instructions:
    1. Go into Settings, and enable Flexible to show in your app.

    2. Find the function you want to hook and hook it normally. Example:

    float (*speedOld)(void *self, int arg0);
    
    float speed(void *self, int arg0){
    //function body
    }
    
    %ctor{
    MSHookFunction(bla bla bla);
    }

    3. Make the call to NSLog to tell the device to start printing what you want to syslog. Here's how it would look:

    float (*speedOld)(void *self, int arg0);
    
    float speed(void *self, int arg0){
    NSLog(@"return value: %f, arg0: %d", speedOld(self, arg0), arg0);
    
    return speedOld(self, arg0); //always return the function pointer, or the old function so the game functions normally
    }
    
    %ctor{
    MSHookFunction(bla bla bla);
    }

    4. Go into your game, and Flexible should appear. On Flexible, tap Menu -> System Log.

    5. Preform the action that the function handles, go into syslog from Flexible, and see the return values! This is very useful when you know how to hack something but you can't find the exact offsets because you're able to re-write functions.

    One more thing:
    In NSLog, you can add more than two things to print. In fact, you can add as many as you want.

    In the NSLog call, %f = float and %d = int. Replace them accordingly to the function.
    %d: int
    %f: float
    %s: const char* (c string) or char* (you will 99% use this instead of NSString)
    %@: NSString (you will rarely use this)

Updated by Guest
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • [ Dragon Ball Legends Japan ] ドラゴンボール レジェンズ  v5.5.1 - [ Enemies Don't Attack & More]
      Modded/Hacked App: ドラゴンボール レジェンズ By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0333
      iTunes Store Link: https://itunes.apple.com/jp/app/ドラゴンボール-レジェンズ/id1358232022?mt=8


      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Enemies Don't Attack
      - No Ki Cost
      - Unlimited Ki
      - No Character Swap CoolDown
      - No Vanish CoolDown
      - Auto Complete All Challenges - Currency/Chrono Crystals Hack! 
      - Always Critical
      - All Cards Give DragonBall 

       This hack only works on x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
      • 2,941 replies
    • [ DBL ]ドラゴンボール レジェンズ v5.5.1 - [ Instant - Win & More ]
      Modded/Hacked App: ドラゴンボール レジェンズ By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0333
      iTunes Store Link: https://itunes.apple.com/jp/app/ドラゴンボール-レジェンズ/id1358232022


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - x Player Damage - x1 - 20 
      - x Player Defense - x1 - 20 
      - One Hit Kill
      - God Mode 
      - 1 Enemy Per Quest
      - Instant - Win - Enable It When You In Battle
      - No Swap CoolDown
      - No Vanish CoolDown
      - No KI Cost
      - Auto Complete All Challenges-> Currency/Chrono Crystals Hack!
      - Always Critical
      - Tutorial Bypass
      - All Cards Give DragonBalls

      All functions are unlinked and only for player, you!
      • 1,580 replies
    • Harry Potter: Hogwarts Mystery v5.9.6 - [ Unlimited Energy & More ]
      Modded/Hacked App: Harry Potter: Hogwarts Mystery By Jam City, Inc.
      Bundle ID: com.tinyco.potter
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-hogwarts-mystery/id1333256716


      Hack Features:
      - Unlimited Energy
      - Max Attributes Level
      - Free Shop - Energy & Some Pets 
      - Max Creature Mastery Level
      - Unlimited Gems - Do Task And You'll Gain Gems
      - Feeding Button Enabled
      • 434 replies
    • Harry Potter: Hogwarts Mystery v5.9.6 - [ Unlimited Energy & More ]
      Modded/Hacked App: Harry Potter: Hogwarts Mystery By Jam City, Inc.
      Bundle ID: com.tinyco.potter
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-hogwarts-mystery/id1333256716


      Hack Features:
      - Unlimited Energy
      - Max Attributes Level
      - Free Shop - Energy & Some Pets 
      - Max Creature Mastery Level
      - Unlimited Gems - Do Task And You'll Gain Gems
      - Feeding Button Enabled
      • 814 replies
    • Adorimon: Arena of Ancient v1.3.568 Cheats +4
      Modded/Hacked App: Adorimon: Arena of Ancient By Mai Duc
      Bundle ID: com.ubiplay.petfi.adorimon
      iTunes Store Link: https://apps.apple.com/us/app/adorimon-arena-of-ancient/id6443480229?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:
      - Unlimited currents
      - Vip lv 15
      - Unlimited point upgrade
      - Feed max
      • 69 replies
    • Adorimon: Arena of Ancient v1.3.568 Cheats +4
      Modded/Hacked App: Adorimon: Arena of Ancient By Mai Duc
      Bundle ID: com.ubiplay.petfi.adorimon
      iTunes Store Link: https://apps.apple.com/us/app/adorimon-arena-of-ancient/id6443480229?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:
      - Unlimited currents
      - Vip lv 15
      - Unlimited point upgrade
      - Feed max
      • 110 replies
    • Fashion Universe v1.9 Cheats +2
      Modded/Hacked App: Fashion Universe By Voodoo
      Bundle ID: com.hypnocatstudio.fashionuniverse
      iTunes Store Link: https://apps.apple.com/us/app/fashion-universe/id1597104322?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:
      - Premium: Setting -> Vibration -> Float icon -> In-App Purchase -> VoodooPremium
      - Unlimited currency
      • 0 replies
    • Fashion Universe v1.9 Cheats +2
      Modded/Hacked App: Fashion Universe By Voodoo
      Bundle ID: com.hypnocatstudio.fashionuniverse
      iTunes Store Link: https://apps.apple.com/us/app/fashion-universe/id1597104322?uo=4


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


      Hack Features:
      - Premium: Setting -> Vibration -> Float icon -> In-App Purchase -> VoodooPremium
      - Unlimited currency
      • 0 replies
    • Sew 3D v2.4.8 Cheats +2
      Modded/Hacked App: Sew 3D By Voodoo
      Bundle ID: com.friendsgamesincubator.sewit
      iTunes Store Link: https://apps.apple.com/us/app/sew-3d/id1614461317?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:
      - Premium: Setting -> Restore purchases -> Float icon -> In-App Purchase -> VoodooPremium
      - Unlock all skins
      • 0 replies
    • Sew 3D v2.4.8 Cheats +2
      Modded/Hacked App: Sew 3D By Voodoo
      Bundle ID: com.friendsgamesincubator.sewit
      iTunes Store Link: https://apps.apple.com/us/app/sew-3d/id1614461317?uo=4


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


      Hack Features:
      - Premium: Setting -> Restore purchases -> Float icon -> In-App Purchase -> VoodooPremium
      - Unlock all skins
      • 0 replies
    • Word Web! v5.7 Cheats +3
      Modded/Hacked App: Word Web! By Voodoo
      Bundle ID: com.Axis.WordWeb
      iTunes Store Link: https://apps.apple.com/us/app/word-web/id1618681059?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:
      - Premium: Setting -> Haptic ->Float Icon -> VoodooPremium
      - SR Debug: Setting -> Sound
      - Unlimited coin (spend) 
      • 0 replies
    • Word Web! v5.7 Cheats +3
      Modded/Hacked App: Word Web! By Voodoo
      Bundle ID: com.Axis.WordWeb
      iTunes Store Link: https://apps.apple.com/us/app/word-web/id1618681059?uo=4

       

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


      Hack Features:
      - Premium: Setting -> Haptic ->Float Icon -> VoodooPremium
      - SR Debug: Setting -> Sound
      - Unlimited coin (spend) 
      • 0 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