Jump to content

B3albakii

ViP Pro
  • Posts

    456
  • Joined

  • Last visited

Everything posted by B3albakii

  1. %ctor { MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0x),(void*)101E48CB8,(void**)&old_101E48CB8); } like this ?
  2. // Properties public int goldAvailable { get; set; } public int foodAvailable { get; set; } // Methods public void .ctor(); // RVA: 0x101E48CB8 Offset: 0x1E48CB8 public int get_goldAvailable(); // RVA: 0x101E3338C Offset: 0x1E3338C that what i got from dump.cs and in IDA i got WorldWarDotData$$set_goldAvailable WorldWarDotData$$get_goldAvailable and this is my tweak.x #import <substrate.h> #import <Foundation/Foundation.h> static void setGold() { } static int getGold() { return 9999999; } %ctor { MSHookFunction(MSFindSymbol(NULL, "__WorldWarDotData$$set_goldAvailable"),(void*)setGold, NULL); MSHookFunction(MSFindSymbol(NULL, "__WorldWarDotData$$get_goldAvailable"),(int*)getGold, NULL); } but it is not working whats wrong ?
  3. // Properties public int goldAvailable { get; set; } public int foodAvailable { get; set; } // Methods public void .ctor(); // RVA: 0x101E48CB8 Offset: 0x1E48CB8 public int get_goldAvailable(); // RVA: 0x101E3338C Offset: 0x1E3338C that what i got from dump.cs and in IDA i got WorldWarDotData$$set_goldAvailable WorldWarDotData$$get_goldAvailable and this is my tweak.x #import <substrate.h> #import <Foundation/Foundation.h> static void setGold() { } static int getGold() { return 9999999; } %ctor { MSHookFunction(MSFindSymbol(NULL, "__WorldWarDotData$$set_goldAvailable"),(void*)setGold, NULL); MSHookFunction(MSFindSymbol(NULL, "__WorldWarDotData$$get_goldAvailable"),(int*)getGold, NULL); } but it is not working whats wrong ?
  4. Thanks
  5. i know how to use %hook method but i have this code if(GetPrefBool(@"key1")) { vm_writeData(0x10092DEE8, 0x1F2003D5); // how to put it in my tweak.x ? @import Foundation; @import UIKit; #import <substrate.h> #import "vm_writeData.h" #define PLIST_PATH @"/var/mobile/Library/Preferences/com.ali.blo.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %ctor { if(GetPrefBool(@"key1")) { vm_writeData(0x10092DEE8, 0x1F2003D5); // } like this or no thx
  6. Hey i am trying to learn ida .. the game is Pou i know i can hack it with flex but as i said wanna learn ida text:000000010003D630 ; ShopItem - (int)coins __text:000000010003D630 __text:000000010003D630 ; int __cdecl -[ShopItem coins](struct ShopItem *self, SEL) __text:000000010003D630 __ShopItem_coins_ ; DATA XREF: __objc_const:0000000100534180o __text:000000010003D630 ADRP X8, #_OBJC_IVAR_$_ShopItem.coins@PAGE ; int coins; __text:000000010003D634 LDRSW X8, [X8,#_OBJC_IVAR_$_ShopItem.coins@PAGEOFF] ; int coins; __text:000000010003D638 LDR W0, [X0,X8] __text:000000010003D63C RET __text:000000010003D63C ; End of function -[ShopItem coins] and this is my tweak.x #include <substrate.h> int Money() { return 9999; } %ctor{ MSHookFunction(((void*)MSFindSymbol(NULL, "__ShopItem_coins_")),(void*)Money, NULL); } i can compile this but nothing happen in the game ... any help please
  7. did u know how to find @intell @Zahir can u explain please
  8. thx
  9. thx
  10. Thanks
×
  • 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