Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure remote listening #17

Open
Numenorean opened this issue Aug 19, 2021 · 3 comments
Open

Configure remote listening #17

Numenorean opened this issue Aug 19, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@Numenorean
Copy link

As i know, by default, frida listens on the localhost but not on 0.0.0.0. How can i do it manually?

@Manouchehri
Copy link

To add to this, it would be handy if we could provide configuration to allow TLS connections with a user-provided token (maybe generate a random one and write it to a file owned and readable only be root).

@ViRb3 ViRb3 changed the title How to configurate for remote connecting? Configure remote listening Jan 13, 2022
@ViRb3 ViRb3 added the enhancement New feature or request label Jan 13, 2022
@kafroc
Copy link

kafroc commented Jan 31, 2022

I implemented magisk-Frida remote debugging by performing the following steps.

Step1: adb login android, and get root shell.
cmder λ adb shell
sagit:/ $ su

Step2: find the main directory of magisk-frida, and cd into it.
sagit:/ # cd /data/adb/modules/magisk-frida
sagit:/data/adb/modules/magisk-frida # ls
module.prop service.sh system

Step3: edit service.sh, change "frida-server" to "frida-server -l 0.0.0.0:27042"
sagit:/data/adb/modules/magisk-frida # cat service.sh

#!/system/bin/sh                                           
......                                            
                                                           
# restart on crash                                         
while true; do                                             
    frida-server -l 0.0.0.0:27042    # change this line, from "frida-server" to "frida-server -l 0.0.0.0:27042"       
    sleep 1                                                
done        

@Horjer
Copy link

Horjer commented Apr 16, 2024

Before installing MagiskFrida.zip from the releases, you can customize the startup configuration of frida-server by modifying the /common/service.sh file within the MagiskFrida.zip archive.

# restart on crash
while true; do
    frida-server -l 0.0.0.0:27042
    sleep 1
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants