Jump to content

Help hooking function


batchh

6 posts in this topic

Recommended Posts

How can i call this function and change the energy?
 

Token(Token = "0x2000150")]
public class CheatAccountSetEnergy : RequestPacket
{
	[Token(Token = "0x4000351")]
	[FieldOffset(Offset = "0x30")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x13955C", Offset = "0x13955C")]
	private int <Energy>k__BackingField;

	[Token(Token = "0x17000321")]
	public int Energy
	{
		[Token(Token = "0x60007A9")]
		[Address(RVA = "0x3742160", Offset = "0x3742160", VA = "0x3742160")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14001C", Offset = "0x14001C")]
		get
		{
			return default(int);
		}
		[Token(Token = "0x60007AA")]
		[Address(RVA = "0x3742168", Offset = "0x3742168", VA = "0x3742168")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14002C", Offset = "0x14002C")]
		set
		{
		}
	}

	[Token(Token = "0x60007AB")]
	[Address(RVA = "0x3742170", Offset = "0x3742170", VA = "0x3742170")]
	public CheatAccountSetEnergy()
	{
	}
}

 

Link to comment
Share on other sites

15 hours ago, batchh said:

How can i call this function and change the energy?
 

Token(Token = "0x2000150")]
public class CheatAccountSetEnergy : RequestPacket
{
	[Token(Token = "0x4000351")]
	[FieldOffset(Offset = "0x30")]
	[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x13955C", Offset = "0x13955C")]
	private int <Energy>k__BackingField;

	[Token(Token = "0x17000321")]
	public int Energy
	{
		[Token(Token = "0x60007A9")]
		[Address(RVA = "0x3742160", Offset = "0x3742160", VA = "0x3742160")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14001C", Offset = "0x14001C")]
		get
		{
			return default(int);
		}
		[Token(Token = "0x60007AA")]
		[Address(RVA = "0x3742168", Offset = "0x3742168", VA = "0x3742168")]
		[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x14002C", Offset = "0x14002C")]
		set
		{
		}
	}

	[Token(Token = "0x60007AB")]
	[Address(RVA = "0x3742170", Offset = "0x3742170", VA = "0x3742170")]
	public CheatAccountSetEnergy()
	{
	}
}

 

If I understood you correctly, you want to make a tweak, in this case the code will be like this:
 

%hook CheatAccountSetEnergy
- (int)Energy {
    int Energy = 9999999; 
    return Energy;
}
%end


I may be wrong, but I think you should look for another class where there will be values for example GetEnergy or get_Energy, because in this example I think you can't do for example offset patch from 0x3742160 on 00F0271EC0035FD6.
Like in this example:
 

[Token(Token = "0x6000356")]
    [Address(RVA = "0x25D0B6C", Offset = "0x25D0B6C", VA = "0x25D0B6C")]
    public int GetGold()
    {
        return 0;
    }

We can make offset patch with Custom Live Offset Patcher on offset 25D0B6C and change it to 00F0271EC0035FD6
But you should try, it'll be really nice if it does work out :)

Updated by hikiasi
  • Like 1
Link to comment
Share on other sites

19 minutes ago, hikiasi said:

If I understood you correctly, you want to make a tweak, in this case the code will be like this:
 

%hook CheatAccountSetEnergy
- (int)Energy {
    int Energy = 9999999; 
    return Energy;
}
%end


I may be wrong, but I think you should look for another class where there will be values for example GetEnergy or get_Energy, because in this example I think you can't do for example offset patch from 0x3742160 on 00F0271EC0035FD6.
Like in this example:
 

[Token(Token = "0x6000356")]
    [Address(RVA = "0x25D0B6C", Offset = "0x25D0B6C", VA = "0x25D0B6C")]
    public int GetGold()
    {
        return 0;
    }

We can make offset patch with Custom Live Offset Patcher on offset 25D0B6C and change it to 00F0271EC0035FD6
But you should try, it'll be really nice if it does work out :)

Thanks for responding, but that’s not what I meant. 
My idea was, set the energy to a high value and then call the CheatAccountSetEnergy that is a request packet for the server, I have no idea on how to do that :(

Any ideas?

Link to comment
Share on other sites

2 minutes ago, batchh said:

Thanks for responding, but that’s not what I meant. 
My idea was, set the energy to a high value and then call the CheatAccountSetEnergy that is a request packet for the server, I have no idea on how to do that :(

Any ideas?

I get your point, in that case you could try this

%hook CheatAccountSetEnergy

- (int)Energy
{
    int Energy = 99999999;  // Replace the original value with 999999
    return Energy; 
}

%end

%hook CheatAccountSetEnergy

- (void)sendRequestToServer
{
    %orig; // Call the original method to send the request to the server
}

%end

but I'm not sure about it to be honest, because I've never encountered it myself

  • Like 1
Link to comment
Share on other sites

21 minutes ago, hikiasi said:

I get your point, in that case you could try this

%hook CheatAccountSetEnergy

- (int)Energy
{
    int Energy = 99999999;  // Replace the original value with 999999
    return Energy; 
}

%end

%hook CheatAccountSetEnergy

- (void)sendRequestToServer
{
    %orig; // Call the original method to send the request to the server
}

%end

but I'm not sure about it to be honest, because I've never encountered it myself

I will try :) thank you so much 

  • Like 1
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

    • Nonstop Knight 2 Cheats v3.0.8 +4 [ God Mode & More ]
      Modded/Hacked App: Nonstop Knight 2 by Flaregames GmbH
      Bundle ID: com.koplagames.kopla02
      iTunes Store Link: https://itunes.apple.com/au/app/nonstop-knight-2/id1444887980?mt=8&uo=4&at=1010lce4



      Hack Features:
      - God Mode
      - OHK
      - Instant Skill
      - Infinite MP
       

      Hack Download Link: https://iosgods.com/topic/99783-arm64-nonstop-knight-2-cheats-v130-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,542 replies
    • Gangstar Vegas Cheats v7.2.0 +4
      Modded/Hacked App: Gangstar Vegas By Gameloft
      Bundle ID: com.gameloft.gangstar4
      iTunes Store Link: https://apps.apple.com/us/app/gangstar-vegas/id571393580?uo=4


      Hack Features:
      - Infinite Currencies
      - Infinite Run ( To stop running turn off in menu then click run again )
      - Infinite Ammo / No Reload ( Required re-launching the game after purchasing new gun and enabled in menu before load into the game )
      - No Cops


      NOTE: Turn off wifi before playing

      iOS Hack Download Link: https://iosgods.com/topic/147734-gangstar-vegas-cheats-v530-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 925 replies
    • PewDiePie's Tuber Simulator Cheats v2.29.0 +3
      Modded/Hacked App: PewDiePie's Tuber Simulator by Outerminds Inc.
      Bundle ID: com.outerminds.tubular
      iTunes Store Link: https://itunes.apple.com/us/app/pewdiepies-tuber-simulator/id1093190533?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Infinite Subscriber
      - Infinite Views
      - Infinite Bux


      Hack Download Link: https://iosgods.com/topic/86366-arm64-pewdiepies-tuber-simulator-cheats-v1310-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,121 replies
    • June’s Journey: Hidden Objects v3.13.6 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 23 replies
    • Tanks A Lot - 3v3 Brawls Cheats v6.700 +6
      Modded/Hacked App: Tanks A Lot - 3v3 Brawls by BoomBit, Inc.
      Bundle ID: com.boombitgames.TanksALot
      iTunes Store Link: https://apps.apple.com/us/app/tanks-a-lot-3v3-brawls/id1344713773?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - Infinite Ammo
      - No Reload
      - Speed Hacks
      - Disable Enemy Shield
      - No Skill Cooldown


      Hack Download Link: https://iosgods.com/topic/76001-arm64-tanks-a-lot-3v3-brawls-cheats-v190-6/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,009 replies
    • The Battle Cats v13.4.0 Jailed Cheats +2
      Modded/Hacked App: The Battle Cats by ponos corporation
      Bundle ID: jp.co.ponos.battlecatsen
      iTunes Store Link: https://apps.apple.com/us/app/the-battle-cats/id850057092?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - OHK Linked


      Jailbreak required hack(s): https://iosgods.com/topic/124448-arm64-the-battle-cats-cheats-all-versions-2/


      iOS Hack Download Link: https://iosgods.com/topic/124447-arm64-the-battle-cats-v1070-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 753 replies
    • Botworld Adventure Cheats v1.22.3 +7
      Modded/Hacked App: Botworld Adventure By Featherweight Games Pty Limited
      Bundle ID: com.featherweightgames.fx
      iTunes Store Link: https://apps.apple.com/au/app/botworld-adventure/id1456063997?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Infinite Coins
      - Infinite Gems
      - Infinite Items
      - Instant Skill
      - Freeze Mana


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148273-botworld-adventure-v01617-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/148270-botworld-adventure-cheats-v01617-7/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 526 replies
    • Dead Trigger 2 Cheats v1.10.7 +10 [ God Mode & More ]
      Modded/Hacked App: DEAD TRIGGER 2 Zombie Shooter By MADFINGER Games, a.s.
      Bundle ID: com.madfingergames.deadtrigger2
      iTunes Store Link: https://itunes.apple.com/us/app/dead-trigger-2-zombie-shooter/id720063540?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Ammo
      - No Reload
      - God Mode
      - Infinite Consumable
      - OHK
      - Drop Hacks
      - Instant Win
      - Better Aim
      - Aimbot
      - Kill All Zombies with 1 Tap


      Hack Download Link: https://iosgods.com/topic/78126-arm64-dead-trigger-2-cheats-v150-4/


      Credits:
      - @Laxus
      - @shmoo
      - @DiDA

      #Hack #Jailbreak #Cydia #Cheat #Apple #Android #iOSGods
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,795 replies
    • Cafeland - World Kitchen v2.24.4 Jailed Cheats +1
      Modded/Hacked App: Cafeland - World Kitchen by Gamegos Internet Teknolojileri Ltd Sti.
      Bundle ID: com.gamegos.mobile.cafeland
      iTunes Store Link: https://apps.apple.com/us/app/cafeland-world-kitchen/id1147665432?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      iOS Hack Download Link: https://iosgods.com/topic/100703-arm64-cafeland-world-kitchen-v2182-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 461 replies
    • Puzzle & Dragons (English) v21.5.0 Jailed Cheats +2
      Modded/Hacked App: Puzzle & Dragons (English) By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padEN
      iTunes Store Link: https://apps.apple.com/us/app/puzzle-dragons-english/id563474464?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/135066-puzzle-dragons-english-v1931-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 289 replies
    • [ Puzzle & Dragons KR ] 퍼즐앤드래곤 v21.5.0 Jailed Cheats +2
      Modded/Hacked App: 퍼즐앤드래곤 By GungHo Online Entertainment, INC.
      Bundle ID: jp.gungho.padKO
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%8D%BC%EC%A6%90%EC%95%A4%EB%93%9C%EB%9E%98%EA%B3%A4/id588637521?uo=4


      Hack Features:
      - God Mode
      - One Hit Kill


      Jailbreak required hack(s): https://iosgods.com/topic/133984-puzzle-dragons-japan-english-cheats-all-versions-3/


      iOS Hack Download Link: https://iosgods.com/topic/146388-puzzle-dragons-korea-%ED%8D%BC%EC%A6%90%EC%95%A4%EB%93%9C%EB%9E%98%EA%B3%A4-v1920-jailed-cheats-2/
        • Agree
        • Thanks
        • Winner
        • Like
      • 11 replies
    • Gran Saga Idle:KNIGHTSxKNIGHTS Cheats v1.1.6 +2
      Modded/Hacked App: Gran Saga Idle:KNIGHTSxKNIGHTS By Kakao Games Corp.
      Bundle ID: com.piedpixels.gransagaidle
      iTunes Store Link: https://apps.apple.com/us/app/gran-saga-idle-knightsxknights/id6482985104?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/182761-gran-saga-idleknightsxknights-cheats-v101-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 51 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