-
Notifications
You must be signed in to change notification settings - Fork 1
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
Replace objection with httptoolkit/frida-android-unpinning #110
Comments
I've decided to include the script as a file in our repository (and thus the |
We can spawn an app with Frida like this: const device = await frida.getUsbDevice();
const pid = await device.spawn(appId);
await device.resume(pid); The app won't actually start running until the |
The interesting question is then how we actually solve #24. For the other Frida scripts we're loading, we've used this workflow (minus the spawning): const device = await frida.getUsbDevice();
const pid = await device.spawn(appId);
const session = await device.attach(pid);
const script = await session.createScript(unpinningScript);
await script.load();
await device.resume(pid);
await session.detach(); However, detaching from the session (last line) will also unload the script and thus no requests will actually be unpinned. To confirm this, I've started mitmproxy and run the example script with an app that I know from the experiment has cert pinning that the script can solve (
On the other hand, if we don't detach, we're not actually solving #24. The Frida session will stick around and the Node process will not exit unless the app is stopped. |
However, I did find that there is a https://github.com/frida/frida-go/blob/f6834eec371c3cd8850d6e006e3b3b5c282a1cba/frida/script.go#L55 That however sounds like exactly what we're looking for. And indeed, if I load the script like this: const device = await frida.getUsbDevice();
const pid = await device.spawn(appId);
const session = await device.attach(pid);
const script = await session.createScript(unpinningScript);
await script.load();
await script.eternalize();
await device.resume(pid);
await session.detach(); I don't see any cert errors anymore in mitmproxy and the Node process still exits at the end. Happy days. |
As per tweaselORG/meta#16, we want to replace objection with https://github.com/httptoolkit/frida-android-unpinning:
The text was updated successfully, but these errors were encountered: