Skip to content
Guest Big Announcement

MShooking help

Featured Replies

well im trying to make a hack for a game called jetpack joyride

https://apps.apple.com/us/app/jetpack-joyride/id457446957

and the code in the tweak.x i wrote :


#include <substrate.h>


int GetMoney()
{

return 99999;
}
int BankMoney()
{

return 99999;
}
int getcoinscollected()
{

return 99999;
}
int coinsearned()
{
return 99999;
}
int coinscollected()
{
return 99999;
}

//__ZN4Game14GetCurrencyQtyEPKc -- get money 
//__ZNK7Jetpack11BankService16GetCurrencyCountEv -- get money 
//__Z17GetCoinsCollectedP9lua_State -- idk 
//__ZNK7Jetpack8RunStats14GetCoinsEarnedEv-- earned 
//__ZNK7Jetpack8RunStats17GetCoinsCollectedEv



%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEPKc")),(void*)GetMoney,NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK7Jetpack11BankService16GetCurrencyCountEv")),(void*)BankMoney,NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN4Game17GetCoinsCollectedEv")),(void*)getcoinscollected,NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK7Jetpack8RunStats14GetCoinsEarnedEv")),(void*)coinsearned,NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "__ZNK7Jetpack8RunStats17GetCoinsCollectedEv")),(void*)coinscollected,NULL);

}

found the functions using ida pro

and before someone says use the coding section for templates sorry i cant since i didnt contribute(thats a complaint) 

someone made a hack for this game with source but i can see it bec im not a contributor 

thx

 

i wana know why my code doesn’t work. Is there something wrong with it ?

 

sorry idk how to reply  there’s just a button thats says answer topic

Updated by Ali123456bss
edit

On 10/5/2020 at 6:31 AM, Ali123456bss said:

i wana know why my code doesn’t work. Is there something wrong with it ?

 

sorry idk how to reply  there’s just a button thats says answer topic

Are you sure you have theses fonction in the game ? 

Use flex and search. For ex : 

int GetMoney()

is it a fonction about the game or just one from a tutorial ? 

the fonction GetMoney must be in the binary file. u can search it via flex

 

For mod menu template (require a bit of knowledge) :

 

 

i thought the function:

MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN4Game14GetCurrencyQtyEPKc")),(void*)GetMoney,NULL);

hooks the function i found with idapro (__ZN4Game14GetCurrencyQtyEPKc)

with my function 

int GetMoney()

thx for the help

Archived

This topic is now archived and is closed to further replies.

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.