Git Product home page Git Product logo

magisk-frida's Introduction

MagiskFrida

GitHub Workflow Status GitHub repo size GitHub downloads

Frida is a dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers

MagiskFrida lets you run frida-server on boot with Magisk

Supported architectures

arm64, arm, x86, x86_64

Instructions

Install MagiskFrida.zip from the releases

ℹ️ Do not use the Magisk repository, it is obsolete and no longer receives updates

How fast are frida-server updates?

Instant! This module is hooked to the official Frida build process

Issues?

Check out the troubleshooting guide

Building yourself

poetry install
poetry run python main.py
  • Release ZIP will be under /build
  • frida-server downloads will be under /downloads

magisk-frida's People

Contributors

dependabot[bot] avatar enovella avatar jm-lemmi avatar mythsman avatar randshell avatar virb3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magisk-frida's Issues

Magisk repo cloning takes increasingly longer for CI

Each commit in the Magisk repo holds all of the binaries for that release, making full cloning an increasingly slower and resource-intensive task for the CI.

Investigate pruning git history or creating a shallow clone altogether.

After installation, system broke

I install the newest release 16.0.17 on my Pixel XL, Android 8.1, Magisk Version 26. I can't get into the system now, any ideas?

adb shell logcat yields:
...
04-21 17:13:41.408 1143 1156 I [email protected]::SensorManager: getService: Will do try 141 for [email protected]::ISensorManager/default in 1s...
...

will this fix the hang on frida-server?

will this fix the hang on frida-server?

it seems like i can run 15.1.14.. but if i try 16.0.11 I can't open any app it just hangs. have to reboot. my phone is redmi note 7

Working with MagiskHide?

Any chance for frida and MagiskHide to work together? frida needs to have ptrace access and MagiskHide needs it too.

add updateJson

Please add updateJson to provide info so the Magisk app can update the module.

Thanks

[QUESTION] Difference between this module and the normal Frida Server

This is not actually an issue but just a question. What's the advantage/difference between running frida "on boot" versus manually starting it?

I observed there are some apps that can detect if Frida is running in a device and I'm curious if this will bypass the detection.

Thanks!

adb install command cannot be used.

When I installed magisk-frida,adb install command cannot be used.

Performing Streamed Install
adb: failed to install .apk: cmd: Can't find service: package

  1. Andriod 9
  2. arm64

Fix install on Magisk 20.4

The frida-server binary does not get installed. Problem detected to be the mv command from the temporary directory to actual directory. cp works, but better to avoid temporary directory altogether.

Make use of Strong-Frida

In order to avoid Frida being detected by various applications it would be beneficial if the following could be integrated:
https://github.com/feicong/strong-frida

I didn't want to create a separate, maybe related issue but I cloned the repository and wanted to adjust the URLs to point to strong-frida but now I'm getting the following error:

Last frida tag: v1.13
Last project tag: 15.0.10-1
Last commit tag: 15.0.10-1
Update needed to v1.13-1
MainThread : Creating module
arm : Filling module for arch 'arm'
arm : Downloading 'frida-server-v1.13-android-arm.xz' to '/Users/user/magisk-frida/downloads/frida-server-v1.13-android-arm.xz'
arm : Extracting 'frida-server-v1.13-android-arm.xz' to 'frida-server-arm'
arm64 : Filling module for arch 'arm64'
arm64 : Downloading 'frida-server-v1.13-android-arm64.xz' to '/Users/user/magisk-frida/downloads/frida-server-v1.13-android-arm64.xz'
arm64 : Extracting 'frida-server-v1.13-android-arm64.xz' to 'frida-server-arm64'
x86 : Filling module for arch 'x86'
x86 : Downloading 'frida-server-v1.13-android-x86.xz' to '/Users/user/magisk-frida/downloads/frida-server-v1.13-android-x86.xz'
x86 : Extracting 'frida-server-v1.13-android-x86.xz' to 'frida-server-x86'
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/Users/user/homebrew/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/process.py", line 243, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/Users/user/magisk-frida/build.py", line 87, in fill_module
    extract_file(frida_server_path, files_dir.joinpath(f"frida-server-{arch}"))
  File "/Users/user/magisk-frida/build.py", line 45, in extract_file
    file_content = f.read()
  File "/Users/user/homebrew/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lzma.py", line 200, in read
    return self._buffer.read(size)
  File "/Users/user/homebrew/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/_compression.py", line 103, in read
    data = self._decompressor.decompress(rawblock, size)
_lzma.LZMAError: Input format not supported by decoder
"""

The above exception was the direct cause of the following exception:

x86_64 : Filling module for arch 'x86_64'
x86_64 : Downloading 'frida-server-v1.13-android-x86_64.xz' to '/Users/user/magisk-frida/downloads/frida-server-v1.13-android-x86_64.xz'
Traceback (most recent call last):
  File "/Users/user/magisk-frida/main.py", line 45, in <module>
x86_64 : Extracting 'frida-server-v1.13-android-x86_64.xz' to 'frida-server-x86_64'
    main()
  File "/Users/user/magisk-frida/main.py", line 41, in main
    build.do_build(last_frida_tag, new_project_tag)
  File "/Users/user/magisk-frida/build.py", line 118, in do_build
    raise future.exception()
_lzma.LZMAError: Input format not supported by decoder

Support for Android 10

Tested successfully on Android 9, but not the same luck on Android 10. I will share my progress whenever I got time to come back to it.

Magisk-Frida Conflict with Objection

I was testing objection (https://github.com/sensepost/objection) with Frida today and worked fine using the non-magisk version of Frida but when I installed this version and tried objection I got this error:

`com.doodle.turboracing3d on (realme: 12) [usb] # frida
An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report!
'filename'

Python stack trace: Traceback (most recent call last):
File "C:\Users\Brian\AppData\Local\Programs\Python\Python310\lib\site-packages\objection\console\repl.py", line 371, in start_repl
self.run_command(document)
File "C:\Users\Brian\AppData\Local\Programs\Python\Python310\lib\site-packages\objection\console\repl.py", line 185, in run_command
exec_method(arguments)
File "C:\Users\Brian\AppData\Local\Programs\Python\Python310\lib\site-packages\objection\commands\frida_commands.py", line 38, in frida_environment
('Script Filename', frida_env['filename']),
KeyError: 'filename'`

Latest versions of MagiskFrida not working on Redmi 9

MagiskFrida doesnt respond when being used on Rooted Redmi 9 Physical Device. Running a frida script gives Timeout. I have used versions 16.4.1-1, 16.1.3-1 Bit older versions too such as 16.0.3

Attached screenshot for frida-ps -Ua

image

Run Script on Boot

To get the injection running asap so that system applications are affected too, could we make the magisk module run scripts directly when it starts frida on bootup?

No idea

Idk why all app stuck on splash screen after installation

Unable to download from magisk

Hello,
Not sure if you are responsible for this or its magisk's fault but there seems to be an error while Magisk Manager tries to download the module, probably it cant find the zip. Just wanted to let you know.

Im using the latest Magisk 20.4 on Android 9.

Thanks for the project 👍

Issue with Zygisk

I use Magisk-Delta 25.2-delta6 with Zygisk enabled this cause no app is starting after activating Magisk-frida. After disabling Zygisk it is working again

Failed to attach || frida 12.8.14

root@linux:~/frida-scripts# frida -U -p 24505
     ____
    / _  |   Frida 12.8.14 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://www.frida.re/docs/home/
Failed to attach: unexpected error while attaching to process with pid 24505

Any solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.