Jump to content

How would I hack this? (basic ms)


Go to solution Solved by AnotherLurker,

3 posts in this topic

Recommended Posts

Posted

Treat it as an integer or boolean.

%hook ClassName

-(char)isCorrect {
%orig(true);
}
%end
  • Solution
Posted (edited)

when you see char in a header, it usually means that is a BOOL
 
the reason being, is that BOOL is a typedef for char
 
so:
 

%hook ClassName

-(BOOL)isCorrect 
{
  return true;
}
%end

@@DiDA ur answer won't do anything because that method doesn't have any BOOL arguments

Updated by RickHaks

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