Skip to content

About

An enterprise-grade, OWASP MASTG-aligned Frida instrumentation arsenal & Anti-Frida evasion framework. Featuring 54+ zero-guesswork scripts for multi-framework SSL unpinning, VFS-level anti-detection, in-memory crypto/DEX dumping, and native JNI tracing across Android & iOS.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ Frida-Scripts Arsenal

The Authoritative Dynamic Instrumentation & Reverse Engineering Toolkit

Frida Platform Standard Verified License

Quick Start β€’ Script Catalog β€’ OWASP Standards β€’ Python Automation β€’ License


πŸ“Œ Overview

Frida-Scripts is a comprehensive, strictly-verified collection of 54 production-grade Frida scripts crafted for mobile security researchers, penetration testers, and reverse engineers.

Every script in this repository is built on verified Android (AOSP/ART), Linux VFS, and iOS runtime internals β€” 100% verified, zero guesswork, zero unstable hacks.


πŸ“š Authoritative Standards & References

All bypasses, hooks, and interceptors are mapped directly to official industry testing guidelines:

  • πŸ›‘οΈ OWASP MASTG (Mobile Application Security Testing Guide):
  • 🐧 Linux Kernel & POSIX VFS: proc(5), ptrace(2), prctl(2), pipe(2), memfd_create(2).
  • πŸ€– Android AOSP ART Internals: libart.so JNI RegisterNatives, libc.so Bionic syscall wrappers, android.security.keystore.
  • 🎯 Google BoringSSL / Flutter Engine: Pattern-based ssl_crypto_x509_session_verify_cert_chain & SSL_CTX_set_custom_verify.

πŸ“‚ Complete Script Catalog

🌐 1. SSL & TLS Pinning Bypasses (ssl-pinning/)

Script Target / Protocol Description
universal-android-ssl-bypass.js TrustManager, OkHttp3/4, Conscrypt, TrustKit, NetSecConfig Universal multi-framework TLS unpinning
flutter-ssl-pinning-bypass.js Flutter Engine (libflutter.so) Offset-independent pattern scanner for ARM64/ARM32
boringssl-custom-verify-bypass.js BoringSSL / OpenSSL C Export Hooks SSL_set_custom_verify / SSL_CTX_set_custom_verify
okhttp-unpinning.js OkHttp 3.x & 4.x (Kotlin bytecode) Dedicated CertificatePinner and check$okhttp bypass
cronet-ssl-unpinning.js Chromium Cronet Networking Engine Bypasses local trust anchor public key pinning
apache-httpclient-unpinning.js Apache HttpClient SSLSocketFactory Enforces ALLOW_ALL_HOSTNAME_VERIFIER
webview-ssl-bypass.js Android WebView Automatically handles onReceivedSslError -> proceed()

πŸ›‘οΈ 2. Anti-Analysis & Protection Bypasses (anti-analysis/)

Script Target / Mechanism Description
anti-frida-bypass.js Frida Detection, Maps, Ports, Strings VFS pipe virtualizer (/proc/self/maps), port & thread mask
anti-root-bypass.js Magisk, KernelSU, APatch, SuperSU, test-keys Complete Root, Su binary, and build property evasion
anti-debugging-bypass.js isDebuggerConnected, ptrace, PR_SET_DUMPABLE Fakes PTRACE_TRACEME success and TracerPid: 0
developer-options-bypass.js adb_enabled, development_settings_enabled Neutralizes ADB and developer settings queries
native-exit-blocker.js exit(), _exit(), abort(), kill() Blocks abrupt anti-tamper termination and logs backtrace
native-hook-detector-bypass.js mprotect, mincore, Memory Checksums Defeats inline hook and memory page integrity scanners
emulator-detection-bypass.js QEMU, Nox, BlueStacks, LDPlayer, Genymotion Fakes hardware properties, sensors, and TelephonyManager
vpn-proxy-detection-bypass.js NetworkCapabilities, tun0, Proxy properties Bypasses VPN and HTTP proxy detection checks
signature-tamper-bypass.js GET_SIGNATURES, SigningInfo, hashCode Bypasses APK signature and repackaging checks
play-integrity-hook.js Google Play Integrity & SafetyNet API Monitors and intercepts Play Integrity attestation tokens
anti-hook-bypass.js StackTrace Inspection & ART Modifiers Strips Frida/Xposed frames from Thread.getStackTrace()

πŸ” 3. Cryptography & Key Extraction (crypto/)

Script Target / Algorithm Description
aes-crypto-interceptor.js javax.crypto.Cipher (AES, DES, RSA) Dumps Keys, IVs, Plaintexts & Ciphertexts in Hex and UTF-8
rsa-key-extractor.js RSAPublicKeySpec / RSAPrivateKeySpec Dumps Modulus (N), Public Exponent (E), Private Exponent (D)
keystore-key-dumper.js java.security.KeyStore (AndroidKeyStore) Dumps KeyStore aliases, keys, certificates, and passwords
hash-digest-tracer.js java.security.MessageDigest (MD5, SHA-1/256/512) Traces hashing input buffers and resulting digest outputs
secure-random-seed-tracer.js java.security.SecureRandom Traces PRNG seed values and generated random bytes
encrypted-sharedpreferences-dump.js Google Jetpack EncryptedSharedPreferences Intercepts read/write operations and dumps plain-text values
reflection-call-decryptor.js Obfuscated Reflection Unpacks dynamic Class.forName & Method.invoke targets

πŸ’Ύ 4. In-Memory Dumping (memory-dumping/)

Script Target Format Description
in-memory-dex-dump.js InMemoryDexClassLoader / Dynamic DEX Auto-detects app storage and dumps runtime decrypted DEX files
native-so-dump.js Linux/Android ELF Shared Libraries (.so) Dumps loaded native libraries from memory to disk via RPC
objective-c-dumper.js iOS Objective-C Runtime Dumps class hierarchies, methods, properties, and protocols

πŸ“‘ 5. Network Traffic Interception (network-traffic/)

Script Target Protocol Description
okhttp3-request-logger.js OkHttp3 Client Logs full URLs, headers, and request/response bodies without proxy/CA
websocket-traffic-monitor.js OkHttp & Java WebSockets Intercepts outgoing and incoming WebSocket frames
urlconnection-request-logger.js HttpURLConnection / HttpsURLConnection Logs connection URLs, methods, and response status codes

πŸ‘οΈ 6. Monitoring, Logging & Privacy (monitoring-logging/)

Script Target Feature Description
android-native-logger.js __android_log_print, printf, puts Intercepts hidden native C/C++ logging output
android-location-spoofer.js GPS & Network Location Spoofs Latitude, Longitude, Altitude with real-time RPC controls
flag-secure-bypass.js FLAG_SECURE / Screen Capture Enables screenshots and screen recordings in protected apps
clipboard-monitor.js ClipboardManager Monitors copied and pasted clipboard data to detect leaks
intent-activity-monitor.js Intent, startActivity, sendBroadcast Dumps target components, actions, and serialized Bundle extras
broadcast-receiver-monitor.js Context.registerReceiver Captures dynamic BroadcastReceivers and IntentFilters
ipc-binder-tracer.js Android IPC BinderProxy.transact Traces IPC transactions and Interface Descriptors
jni-method-tracer.js JNI RegisterNatives (libart.so) Resolves dynamically bound native function addresses
webview-devtools-enabler.js Android WebView Forces chrome://inspect remote debugging for all WebViews
file-io-monitor.js FileInputStream / FileOutputStream Logs all file paths read or written by the application
audio-screen-recorder-monitor.js MediaRecorder / AudioRecord Detects when application initiates audio or screen recordings
sensor-spoofing.js SensorEventListener Spoofs accelerometer, gyroscope, and motion sensors

πŸ‘† 7. Biometrics & Authentication (biometrics/)

Script Target API Description
biometric-auth-bypass.js BiometricPrompt, FingerprintManager Forces onAuthenticationSucceeded() with mock authentication result

πŸ—„οΈ 8. Storage & Databases (storage-databases/)

Script Target Database Description
sqlcipher-key-extractor.js SQLCipher / Requery SQLite Intercepts openOrCreateDatabase to dump plain-text encryption keys
realm-database-key-extractor.js Realm Database Dumps 64-byte database encryption keys
room-sqlite-query-logger.js Room / SupportSQLiteDatabase Logs all executed SQL queries and prepared statements
sharedprefs-live-watcher.js Android SharedPreferences Real-time live logger for all SharedPreferences read/write events

🍎 9. iOS Instrumentation (ios/)

Script Target Description
ios-jailbreak-bypass.js Cydia, Sileo, Zebra, Substrate, URL Schemes Universal iOS jailbreak detection bypass
ios-ssl-pinning-bypass.js SecTrustEvaluateWithError / SecTrustEvaluate Universal iOS SSL / TLS pinning bypass
ios-biometric-bypass.js LocalAuthentication (LAContext) Bypasses iOS FaceID & TouchID authentication
ios-keychain-dump.js SecItemCopyMatching, SecItemAdd Intercepts and dumps all read/written iOS Keychain credentials
ios-nsuserdefaults-watcher.js NSUserDefaults Logs all NSUserDefaults settings reads and writes

πŸš€ Quick Start

1. Installation

Ensure Frida is installed on your workstation:

pip install frida-tools

2. Usage Examples

πŸ”Ή Spawn Mode (Recommended for early instrumentation)

# Universal SSL Pinning Bypass
frida -U -f com.example.target -l ssl-pinning/universal-android-ssl-bypass.js

# Bypass Root Detection & Anti-Debugging
frida -U -f com.example.target -l anti-analysis/anti-root-bypass.js

# Capture AES Keys & Decrypted Text
frida -U -f com.example.target -l crypto/aes-crypto-interceptor.js

# Enable Screenshots / Bypass FLAG_SECURE
frida -U -f com.example.target -l monitoring-logging/flag-secure-bypass.js

πŸ”Ή Attach Mode (For running processes)

frida -U -n "Target App" -l network-traffic/okhttp3-request-logger.js

🐍 Python Automation Template

import frida
import sys

def on_message(message, data):
    if message['type'] == 'send':
        print(f"[*] {message['payload']}")
    elif message['type'] == 'error':
        print(f"[-] {message['stack']}")

TARGET_PACKAGE = "com.example.app"
SCRIPT_PATH = "ssl-pinning/universal-android-ssl-bypass.js"

device = frida.get_usb_device()
pid = device.spawn([TARGET_PACKAGE])
session = device.attach(pid)

with open(SCRIPT_PATH, "r", encoding="utf-8") as f:
    source = f.read()

script = session.create_script(source)
script.on("message", on_message)
script.load()

device.resume(pid)
print(f"[+] Hook active on {TARGET_PACKAGE} (PID: {pid}). Press Ctrl+C to stop.")
sys.stdin.read()

⚠️ Disclaimer

This repository is developed strictly for authorized security auditing, academic research, and penetration testing. Do not use these tools against targets without explicit authorization.


πŸ“„ License

Released under the MIT License.

About

An enterprise-grade, OWASP MASTG-aligned Frida instrumentation arsenal & Anti-Frida evasion framework. Featuring 54+ zero-guesswork scripts for multi-framework SSL unpinning, VFS-level anti-detection, in-memory crypto/DEX dumping, and native JNI tracing across Android & iOS.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors