Skip to content

Commit b4f9c27

Browse files
authored
Merge pull request #141 from riyadmondol2006/main
Add Android root detection bypass script from external repository
2 parents 1385cf7 + 2c440d3 commit b4f9c27

File tree

2 files changed

+409
-1
lines changed

2 files changed

+409
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The scripts can automatically handle:
1212
* Injecting a given CA certificate into the system trust stores so they're trusted in connections by default.
1313
* Patching many (all?) known certificate pinning and certificate transparency tools, to allow interception by your CA certificate even when this is actively blocked.
1414
* On Android, as a fallback: auto-detection of remaining pinning failures, to attempt auto-patching of obfuscated certificate pinning (in fully obfuscated apps, the first request may fail, but this will trigger additional patching so that all subsequent requests work correctly).
15+
* Disabling many common root & jailbreak detections.
1516

1617
## Android Getting Started Guide
1718

@@ -38,6 +39,7 @@ The scripts can automatically handle:
3839
-l ./android/android-system-certificate-injection.js \
3940
-l ./android/android-certificate-unpinning.js \
4041
-l ./android/android-certificate-unpinning-fallback.js \
42+
-l ./android/disable-root-detection.js \
4143
-f $PACKAGE_ID
4244
```
4345
7. Explore, examine & modify all the traffic you're interested in! If you have any problems, please [open an issue](https://github.com/httptoolkit/frida-interception-and-unpinning/issues/new) and help make these scripts even better.
@@ -61,6 +63,7 @@ The scripts can automatically handle:
6163
frida -U \
6264
-l ./config.js \
6365
-l ./ios/ios-connect-hook.js \
66+
-l ./ios/ios-disable-detection.js \
6467
-l ./native-tls-hook.js \
6568
-l ./native-connect-hook.js \
6669
-f $APP_ID
@@ -127,6 +130,14 @@ Each script includes detailed documentation on what it does and how it works in
127130

128131
Detects unhandled certificate validation failures, and attempts to handle unknown unrecognized cases with auto-generated fallback patches. This is more experimental and could be slightly unpredictable, but is very helpful for obfuscated cases, and in general will either fix pinning issues (after one initial failure) or will at least highlight code for further reverse engineering in the Frida log output. This script shares some logic with `android-certificate-unpinning.js`, and cannot be used standalone - if you want to use this script, you'll need to include the non-fallback unpinning script too.
129132
133+
* `android-disable-root-detection.js`
134+
135+
Disables common root detection checks across native and Java layers to prevent detection of rooted Android devices.
136+
137+
This script intercepts file system access, shell commands, and package lookups for known root indicators (like `su`, Magisk, and related apps), and fakes key system properties (`ro.secure`, `ro.debuggable`, etc.) to simulate a production environment.
138+
139+
It blocks suspicious behavior like file existence checks and shell command execution, helping evade detection in apps using both standard and advanced root checks.
140+
130141
* `ios/`
131142
132143
* `ios-connect-hook.js`
@@ -135,13 +146,16 @@ Each script includes detailed documentation on what it does and how it works in
135146
136147
This is a low-level hook that applies to _all_ network connections. This ensures that all connections are forcibly redirected to the target proxy server, even those which ignore proxy settings or make other raw socket connections.
137148
149+
* `ios-disable-detection.js`
150+
151+
Disables JailMonkey jailbreak detection.
152+
138153
* `utilities/test-ip-connectivity.js`
139154
140155
You probably don't want to use this normally as part of interception itself, but it can be very useful as part of your configuration setup.
141156

142157
This script allows you to configure a list of possible IP addresses and a target port, and have the process test each address, and send a message to the Frida client for the first reachable address provided. This can be useful for automated configuration processes, if you don't know which IP address is best to use to reach the proxy server (your computer) from the target device (your phone).
143158
144-
---
145159
146160
These scripts are part of [a broader HTTP Toolkit project](https://httptoolkit.com/blog/frida-mobile-interception-funding/), funded through the [NGI Zero Entrust Fund](https://nlnet.nl/entrust), established by [NLnet](https://nlnet.nl) with financial support from the European Commission's [Next Generation Internet](https://ngi.eu) program. Learn more on the [NLnet project page](https://nlnet.nl/project/F3-AppInterception#ack).
147161

0 commit comments

Comments
 (0)