Jump to content

MShooking help


Guest Ali123456bss

5 posts in this topic

Recommended Posts

Guest Ali123456bss
Posted

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

 

Guest Ali123456bss
Posted

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

Posted
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) :

 

 

Guest Ali123456bss
Posted

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.

×
  • 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