Jump to content

1 post in this topic

Recommended Posts

Posted (edited)

Hi guys, i'm creating a new tweak but i'm having a problem with enabeling Status in Whatsapp.

What is this -> "\x1B[1;31m[%s] \x1B[m\x1B[0;31m%s:%d\x1B[m \x1B[0;30;41m%s:\x1B[m %@" string ?

 

If i search for className

WAServerProperties > i get  +(bool) isStatusV3Enabled

So i set 

 

 

%hook WAServerProperties
- (bool)isStatusv3Enabled{
return TRUE;
}
%end

But it wont show it off.

Can anyone help me?

 

 

 

This is the decompiled code of the project 

int __ZL15_logosLocalInitv() {
    *(r31 + 0xfffffffffffffff0) = r29;
    *(r31 + 0x0) = r30;
    r29 = r31 + 0xfffffffffffffff0;
    r31 = r31 + 0xfffffffffffffff0 - 0x40;
    *(r29 + 0xfffffffffffffff8) = objc_getClass("WAServerProperties");
    *(r29 + 0xfffffffffffffff0) = object_getClass(*(r29 + 0xfffffffffffffff8));
    if (*(r29 + 0xfffffffffffffff0) != 0x0) {
            r0 = *(r29 + 0xfffffffffffffff0);
            r1 = @[member='selectorr](isStatusV3Enabled);
            r2 = 0x7e6c;
            r3 = 0x80a0;
            r0 = MSHookMessageEx();
    }
    else {
            r10 = r31;
            r10 = "WAServerProperties";
            *(r31 + 0x20) = [0x8098 stringWithFormat:@"logos: nil class %s", r3];
            *(r31 + 0x18) = "ERROR";
            *(r31 + 0x10) = r31 | 0x8;
            *(r31 + 0x8) = "Tweak.xm";
            r8 = "WAEnabler";
            r1 = @"\x1B[1;31m[%s] \x1B[m\x1B[0;31m%s:%d\x1B[m \x1B[0;30;41m%s:\x1B[m %@";
            r0 = r31 | 0x3;
            r0 = CFLog();
    }
    r31 = r29;
    r29 = *r31;
    r30 = *(r31 + 0x10);
    r31 = r31 + 0x10;
    return r0;

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4d66cc}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #0012b5}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #1ab333}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d442a1}
span.s1 {color: #d442a1}
span.s2 {color: #000000}
span.s3 {color: #a6000a}
span.s4 {color: #0012b5}
span.s5 {color: #4d66cc}
span.s6 {color: #1ab333}
}
and a piclxG8Az.png Updated by Derewith

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