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

Cannot trace any function - java.lang.ClassNotFoundException #8

Open
Aldenar opened this issue Dec 4, 2021 · 1 comment
Open

Cannot trace any function - java.lang.ClassNotFoundException #8

Aldenar opened this issue Dec 4, 2021 · 1 comment

Comments

@Aldenar
Copy link

Aldenar commented Dec 4, 2021

I'm trying to trace functions of a specific class of an old old game with broken in-apps.

Having decompiled the game through apktool, I found a class I'm interested.
But no matter how I run the trace function, the game launches, then frida throws an error: Error: java.lang.ClassNotFoundException: Didn't find class "com.game.tka" on path: DexPathList[[zip file "/data/app/~~tnL0853xrVQX1h4toIMrDA==/com.game.tka-aq3_iPPP9AhvI_iyOxSG6g==/base.apk"],nativeLibraryDirectories=[/data/app/~~tnL0853xrVQX1h4toIMrDA==/com.game.tka-aq3_iPPP9AhvI_iyOxSG6g==/lib/arm64, /system/lib64, /system_ext/lib64]]
The main app class is com.game.tka, and I'd like to trace methods of com.game.tka.Dungeons, trace("com.game.tka.Dungeons") doesn't work however.

Am I doing something wrong, or is this script no longer maintained and possibly broken?

@0xdea
Copy link
Owner

0xdea commented Dec 24, 2021

Hi, the error message you pasted seems to indicate that the class name passed to Frida is wrong. It doesn't look like a bug in the trace script; you should experiment a bit until you are able to trace what you want.

That said, I'm not actively maintaining these scripts, so they might need some tweaking in order to work properly in all cases. I suggest you to take a look at this project: https://github.com/federicodotta/Brida. Federico took my scripts (among others) for dynamic hooking and binary inspection and integrated them with the Brida project.

Good luck!

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

2 participants