Jump to content

[TUTORIAL] How To Hack Using Mobile Substrate (Method Hooking)


180 posts in this topic

Recommended Posts

Posted (edited)
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Custom Title But Keep The Inverted Commas"
message:@"Same Situation Like The Title"
delegate:nil
cancelButtonTitle:@"This Can Be Thanks Or Dismiss"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

Maybe this is easier to understand for you. Also remove all the comments '//'

Updated by castix
Posted (edited)

So because this tutorials is already awesome (big shoutout to evilg00d there) I will just add some notes

 

As he already mentioned in the main topic here, you can't override void but you can NULL them = disable them

- (void)enemiesShoots {    //This is the method that calls your opponents to shoot so if we disable this, they can't anymore
}

if you want to add this in a patcher, you can simply write it like this

- (void)enemyShoots {                              //Easy isn't it ?
   if(GetPrefBool(@"kEnemyShooting")) {
   return; 
   }
   return %orig;
   }

Moving on there are some more value classes, which can be modified

- (long long)Coins {    //This can obviously be treated like int
return 2222;
}
- (double)Coins {     //You can also see here that it can be overwritten really easy
return 2222;
}

Those are just a few more function methods , so if you find something like them in FLEX/Headers/Binaries you know what do do.

 

 

 

_____________________________________________________________________________________________________________________________________

 

 

Almost there, now i am getting

 

I told you to remove all backslashs.

Updated by castix
Posted

So because this tutorials is already awesome (big shoutout to evilg00d there) I will just add some notes

 

As he already mentioned in the main topic here, you can't override void but you can NULL them = disable them

- (void)enemiesShoots {    //This is the method that calls your opponents to shoot so if we disable this, they can't anymore
}

if you want to add this in a patcher, you can simply write it like this

- (void)enemyShoots {                              //Easy isn't it ?
   if(GetPrefBool(@"kEnemyShooting")) {
   return; 
   }
   return %orig;
   }

Moving on there are some more value classes, which can be modified

- (long long)Coins {    //This can obviously be treated like int
return 2222;
}
- (double)Coins {     //You can also see here that it can be overwritten really easy
return 2222;
}

Those are just a few more function methods , so if you find something like them in FLEX/Headers/Binaries you know what do do.

 

I told you to remove all backslashs.

:goodjob:

 

Do you want me to add them to the first post?

Posted

I think o see my problem. Are the // use to comment? I am a beginner sorry for the dump question. And do i have to keep the // and ". In the code?

Not necessarily. The // are simply comments made by the author which do not get executed when you compile the project but the // are for single line comments only.

Posted

:goodjob:

Do you want me to add them to the first post?

yes that would be nice of you

 

I think o see my problem. Are the // use to comment? I am a beginner sorry for the dump question. And do i have to keep the // and ". In the code?

 

 Yes you start comments in MS with that and yes you should remove them all especially between code lines.

Not necessarily. The // are simply comments made by the author which do not get executed when you compile the project but the // are for single line comments only.

They have to be removed, trust me.

Posted

yes that would be nice of you

 

 

 Yes you start comments in MS with that and yes you should remove them all especially between code lines.

 

They have to be removed, trust me.

Oh okay :3

 

I'll add it to the first post right now :)

Posted

Thanks :- i got it and also i couldnt copy/paste properly cuz i am using taptalk and it was adding or ignoring some characters :-)

501b937c8306868e17ea9a9ac46b320c.jpg

 

I am so happy this is the start of something big for me :-)

 

I like to see how things work and then play with them. :-) my next steps will convert some of my flex tweaks and them add preferences bundle(i hope the i have the right idea of what preference bundles are, if they are the menus that add to setting and you can turn on/off the tweak k got it right lol) :-)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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