Jump to content

HELP in making MS HACK


Go to solution Solved by castix,

9 posts in this topic

Recommended Posts

Posted

So i was trying to return the argument(id) for target class as NULL, can anyone help me out please?

 

 

- (void)sendReadReceiptsForConversation:(id)fp8;

Posted (edited)

return = NULL;

 

just a guess

I'll check brb  :yes:

EDIT: hmm doesn't work...

Updated by Vegito
Posted (edited)

how did you check?

by changing the code in tweak.xm and running the command in terminal again 'make package install'

 

 

EDIT: i checked in flex 

it shows 

 

Unit for -(void)sendReadReceiptsForConversation:(id)

 

TargetClass

abc

 

TargetMethod

- (void)sendReadReceiptsForConversation:(id);

 

Return Value(void)

Pass-through

 

Argument#1 (id)

(NULL)

Updated by Vegito
  • Solution
Posted (edited)

%hook abc

- (void)sendreadReceiptsForConversation:(id)fp8 {

    fp8 = nil;

    %orig;

}

%end

Updated by castix
Posted

%hook abc

- (void)sendreadReceiptsForConversation:(id)fp8 {

    fp8 = nil;

    %orig;

}

%end

hmmmm interesting, let's give it a shot

Posted

It would be like

 

%hook abc
- (void)sendreadReceiptsForConversation:(id)arg {
    arg = NULL;  (NIL or NULL)
    %orig;
}
%end
Posted

%hook abc

- (void)sendreadReceiptsForConversation:(id)fp8 {

    fp8 = nil;

    %orig;

}

%end

Damn man! Thanks man! It worked! :yes:

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