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

[SERIOUS BUG] frida.InvalidOperationError: script has been destroyed #1127

Open
DefinitlyEvil opened this issue Dec 17, 2024 · 0 comments
Open

Comments

@DefinitlyEvil
Copy link

This problem has wasted me totally 48 hours in front of the screen doing useless trials and errors.
Nothing worked, it gave no useful errors at all, just destroyed.

const fReadFilePtr = Module.getExportByName("kernel32", "ReadFile");
const fReadFileParamTypes = ['pointer', 'pointer', 'uint32', 'pointer', 'pointer'];
const fReadFile = new NativeFunction(fReadFilePtr, 'bool', fReadFileParamTypes);

Interceptor.replace(fReadFilePtr, new NativeCallback((a1, a2, a3, a4, a5) => {
    console.log('enter ReadFile, #' + args[0]);
    return fReadFile(a1, a2, a3, a4, a5);
}, 'bool', fReadFileParamTypes));
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

1 participant