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

Why can't I find the libQBDI.so file #244

Open
gtict112 opened this issue Sep 8, 2023 · 2 comments
Open

Why can't I find the libQBDI.so file #244

gtict112 opened this issue Sep 8, 2023 · 2 comments

Comments

@gtict112
Copy link

gtict112 commented Sep 8, 2023

Now I'm doing some work with frida+qbdi, I wrote a js file, but I can't find libQBDI.so, the file has been put into the phone directory /data/local/tmp;
My mobile phone is customized. I named it myself instead of using su to elevate my rights. Is it related to this?


21992351-391a-4d54-ab9e-46adadda99d7 estrace re.frida.server trace.log
android_x64_server fr16.0.1.64 libQBDI.so stackplz xx
dalvik-cache frstr perfd stackplz_tmp.log
flame:/data/local/tmp #

-------------------log
Spawning com.xxx.xxxxxxxxxxxxxxxx... libQBDI.so library not found... Spawned com.tencent.mobileqq`. Resuming main thread!
Error: libQBDI.so library not found...
at load (QBDI/usr/local/share/qbdiAARCH64/frida-qbdi.js:89)
at load (QBDI/usr/local/share/qbdiAARCH64/frida-qbdi.js:145)
at (QBDI/usr/local/share/qbdiAARCH64/frida-qbdi.js:195)
at call (native)
at o (node_modules/browser-pack/_prelude.js:1)
at (node_modules/browser-pack/_prelude.js:1)
at (utils/FCAnd.ts:13)
at call (native)

@gtict112
Copy link
Author

gtict112 commented Sep 8, 2023

t’s ok to change the name of the right to su

@nsurbay
Copy link
Member

nsurbay commented Sep 8, 2023

Hello,

To verify if the file exist, the binding try to open the library file with File(cpath, "rb"); here.

I recommand to run a single script to verify that frida is able to read the file.

Java.perform(function() {
    var cpath = '/data/local/tmp/libQBDI.so';
    try {
        var fp = new File(cpath, "rb");
        fp.close();
        found = true;
        console.log('Found ' + cpath);
    } catch(e) {
        console.error(cpath + ' not found...');
    }
})

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