[ERROR] 28/Mar/2022 07:17:11 - Error Connecting to Frida
That's mean frida server was not started in Emulator, we need put frida-server into emulator and run it. please select your own version. There was 2 options, first one, you can start it manually, and second one, you can download the frida-server directly and put it into ~/.MobSF/downloads
adb push frida-server /data/local/tmp
adb shell
su
cd /data/local/tmp
chmod 755 frida-server
nohup ./frida-server &
0x00 Prepare ENV
My ENV:
Windows 11
WSL2
Docker Desktop
:4.6.1
0x01 Install Mobsf
Create a customized python Env for Mobsf, and if there was any network issues, you should configure a proxy to solve that.
0x02 Install Android Emulator Within WSL2
Add those environment variable into
~/.bashrc
or~/.zshrc
0x03 Create AVD (Android Virtual Device) and Run it
you can delete avd with
# avdmanager delete avd -n yourdevicename
0x04 Start Mobsf with Android Emulator
change the ADB path to
ADB_BINARY = '~/Android/platform-tools/adb'
within~/.MobSF/config.py
0x05 Issues
frida.NotSupportedError: need Gadget to attach on jailed Android; its default location is: /home/xxxx/.cache/frida/gadget-android-arm64.so
That' mean
gadget
was not exists, so we need to download the correctly version and put it into~/.cache/frida
folder[ERROR] 28/Mar/2022 07:17:11 - Error Connecting to Frida
That's mean frida server was not started in Emulator, we need putfrida-server
into emulator and run it. please select your own version. There was 2 options, first one, you can start it manually, and second one, you can download thefrida-server
directly and put it into~/.MobSF/downloads