Home

Awesome

<img width="544" alt="image" src="https://user-images.githubusercontent.com/31820707/108661418-60d4b500-74fe-11eb-81ed-c164df9ef4a5.png">

Frida Android hook

CodeQL python frida

📍 A tool that helps you can easy using frida. It support script for trace classes, functions, and modify the return values of methods on iOS platform.

👉 For iOS platform: frida-ios-hook

Env OS Support

OSSupportedNoted
Darwin:white_check_mark:main
Linux:white_check_mark:sub
Windows:white_check_mark:sub

Compatible with

Android ApiFridaSupported
8.0 - Api 2614.2.13:white_check_mark:
8.0 - Api 2615.0.18:white_check_mark:
13.0 - Api 3316.4.9:white_check_mark:

Feature

Running with python3.x

Support both spawn & attach script to process.

[+] Options:

	-p(--package)		Identifier of application ex: com.android.calendar
	-n(--name) 		Name of application ex: Calendar
	-s(--script) 		Using script format script.js
	-c(--check-version) 	Check for the newest version
	-u(--update) 		Update to the newest version
	
	[*] Dump memory application:
	
    	--dump-memory         Dump memory of application

	[*] Information:

	--fs-install	    Install frida server
	--fs-start          Start frida server
	--fs-stop           Stop frida server
	--list-devices      List All Devices
	--list-apps         List the installed apps
	--list-scripts      List All Scripts
	--logcat            Show system log of device
	--shell             Get the shell of connect device
	--proxy             Config global proxy ::3128 and reverse tcp 3128:8080

	[*] Quick method:

	-m(--method)    Support commonly used methods
				bypass-root(-p)
				bypass-ssl(-p)
				i-nw-req(-p)
				i-crypto(-p)

ChangeLog

Version: 1.4

	[+] Add:
	
		[-] Add new frida scrips
				
		[-] Add option `--proxy` for config global proxy on device
		
		
	[+] Change:
		
		[-] Update readme, changelog
		
		[-] Update frida-script
		
		[-] Update hook.py
	
	[+] Fix
		
		[-] Fix bug

See Full ChangeLog

Install

	[+] Latest version
	
		https://github.com/noobpk/frida-android-hook/releases
		
	[+] Develop version
	
		git clone -b dev https://github.com/noobpk/frida-android-hook.git

Build

2. cd frida-android-hook/
3. pip3 install -r requirements.txt
4. python3 setup.py
4. cd frida-android-hook

Usage For Windows:

5.1 Start Frida-server: `python3 androidhook.py --fs-start`
5.2 python3 androidhook.py --help(-h)
5.3 rebellion :))

Usage For Darwin / Linux

6.1 Start Frida-server: `./androidhook --fs-start`
6.2 ./androidhook --help(-h)
6.3 rebellion :))

See Full Usage as Wiki

If you run the script but it doesn't work, you can try the following: frida -U -f package -l script.js

📺 Demo Feature

NTitleLink
1
2
3

Frida Scripts

NSpawn/AttachScript NameScript DescriptionScript Version
1S+Aandroid-intercepts-crypto.jsAndroid Intercepts Crypto Operations1.0
2S+Aandroid-logcat.jsAndroid logcat capture1.0
3S+Acall-method-of-class.jsCall method of class1.0
4S+AdupDex.jsdupDex1.0
5S+Afingerprint-bypass-via-exception-handling.jsFingerprint bypass via Exception Handling.1.0
6S+Afingerprint-bypass.jsFingerprint bypass1.0
7S+Ahook-method-of-class.jsHook method of class1.0
8Sraptor_frida_android_bypass.jsRaptor frida android bypass1.0
9Sraptor_frida_android_debug.jsRaptor frida android debug1.0
10Sraptor_frida_android_enum.jsRaptor frida android enum1.0
11Sraptor_frida_android_findClass1.jsRaptor frida android findclass 11.0
12Sraptor_frida_android_findClass2.jsRaptor frida android findclass 21.0
13Sraptor_frida_android_lowlevel.jsRaptor frida android low level1.0
14Sraptor_frida_android_trace.jsRaptor frida android trace1.0
15S+Ashow-all-classes-methods.jsShow all class name and method1.0
16S+Ashow-all-classes.jsShow all class name1.0
17S+Ashow-module-exported-functions.jsShow module exported function1.0
18S+Ashow-modules-exports.jsShow modules exports1.0
19S+Ashow-specific-class-methods.jsShow specific class and method1.0

Disclaimer

Because I am not a developer, so my coding skills might not be the best. Therefore, if this tool have any issue or not working for you, create an issue and i will try to fix it. Any suggestions for new feature and discussions are welcome!