본문 바로가기

카테고리 없음

[iOS Frida] USB 연결 없이 무선(Wi-Fi)로 Frida 사용하기

 

Before

➜  ~  frida-ps -H 192.168.1.10
Failed to enumerate processes: unable to connect to remote frida-server: Could not connect to 192.168.1.10: Operation timed out

 

After

➜  ~  frida-ps -H 192.168.1.10
 PID  Name
----  ---------------------------------------------------
1868   Cydia
1607   Filza
1205   Gmail
1685   Safari
1840   Siri 검색
1562   메시지
1190   설정
1594   스프레드시트

 

Solution

Jailbroken-iPad:~ root# ps -ef | grep frida
    0   452     1   0  2:23PM ??         0:03.82 /usr/sbin/frida-server
    0  1075  1071   0  4:31PM ttys000    0:00.03 grep frida
    
Jailbroken-iPad:~ root# launchctl unload -w /Library/LaunchDaemons/re.frida.server.plist

Jailbroken-iPad:~ root# launchctl unload -w /Library/LaunchDaemons/re.frida.server.plist
/Library/LaunchDaemons/re.frida.server.plist: Operation now in progress

Jailbroken-iPad:~ root# vi /Library/LaunchDaemons/re.frida.server.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>re.frida.server</string>
        <key>Program</key>
        <string>/usr/sbin/frida-server</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/sbin/frida-server</string>
                <string>-l</string>                      // <---- Added
                <string>0.0.0.0</string>                 // <---- Added
        </array>
        <key>EnvironmentVariables</key>
        <dict>
                <key>_MSSafeMode</key>
                <string>1</string>
        </dict>
        <key>UserName</key>
        <string>root</string>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>ThrottleInterval</key>
        <integer>5</integer>
        <key>ExecuteAllowed</key>
        <true/>
</dict>
</plist>

Jailbroken-iPad:~ root# launchctl load -w /Library/LaunchDaemons/re.frida.server.plist

Jailbroken-iPad:~ root# ps -ef | grep frida
    0  3140     1   0 12:02PM ??         0:00.12 /usr/sbin/frida-server -l 0.0.0.0
    0  3144  1071   0 12:05PM ttys000    0:00.03 grep frida

 

Reference:

https://github.com/frida/frida/issues/582#issuecomment-451974558