Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opNames匹配不到 #25

Closed
Girpex opened this issue Mar 24, 2024 · 5 comments
Closed

opNames匹配不到 #25

Girpex opened this issue Mar 24, 2024 · 5 comments

Comments

@Girpex
Copy link

Girpex commented Mar 24, 2024

opNames(Arrays.asList("new-instance", "invoke-direct", "invoke-virtual", "invoke-virtual", "move-result-object", "if-eqz", "return-object", "new-instance", "invoke-direct", "throw"))

@teble
Copy link
Contributor

teble commented Mar 24, 2024

反编译的smali跟dex一个都没提供,这是让我算命吗

@Dev4Mod
Copy link

Dev4Mod commented Apr 16, 2024

The opnames are not working, I have done several tests but it always returns that no method was found

@teble
Copy link
Contributor

teble commented Apr 16, 2024

The opnames are not working, I have done several tests but it always returns that no method was found

Can you provide a reproducible example? dex/apk and query examples

@Dev4Mod
Copy link

Dev4Mod commented Apr 16, 2024

APK: https://www.apkmirror.com/apk/whatsapp-inc/whatsapp/whatsapp-2-24-7-79-release/
hooked class: X.1ii
hooked method: A0b(I)V
disassembly:

0000: iget v0, v1, LX/1ii;->A17:I
0002: or-int/2addr v2, v0
0003: iput v2, v1, LX/1ii;->A17:I
0005: return-void

code used:

var result = dexkitInstance.findMethod(new FindMethod().matcher(new MethodMatcher().opCodes(
            new OpCodesMatcher().opNames(List.of("iget","or-int/2addr","iput","return-void"))
        )));
XposedBridge.log("Found: " + result.size()); // always return 0

@teble
Copy link
Contributor

teble commented Apr 16, 2024

2.0.1 Fixed

@teble teble closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants