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

fix: set DEBUG_MODE variable and add Conscrypt bypass #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

digiz3d
Copy link

@digiz3d digiz3d commented Dec 23, 2024

Issue

This PR #38 broke the tools, at least on my setup: DEBUG_MODE is not defined, causing a reference error.

Replicate the issue

android-unpinner all -l -f ./apks/xxxxx.apk
then
frida -U -l tools/android-unpinner/android_unpinner/scripts/hide-debugger.js -l tools/android-unpinner/android_unpinner/scripts/httptoolkit-unpinner.js MyApp
gives
Screenshot 2024-12-28 at 17 15 22

Explanation

Unlike https://github.com/httptoolkit/frida-interception-and-unpinning, we don't have a config file in this project

Defining the variable fixes it and properly allows to apply patches

Bonus

Also added brought back another common bypass (inspired by objection https://github.com/sensepost/objection/blob/master/agent/src/android/pinning.ts#L244)
edit: turns out it was also deleted in #38 , see https://github.com/mitmproxy/android-unpinner/pull/38/files#diff-523754949d164f3759f5cfd8712b416590e6e9cf60810aa1e7ddf19346428793L147

I can make a dedicated PR for the bonus if you prefer

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

Successfully merging this pull request may close these issues.

1 participant